[openstreetmap/openstreetmap-website] Displays profile links for messaging and socialization only if user is singed in (PR #5203)

Nenad Vujicic notifications at github.com
Thu Sep 12 11:58:45 UTC 2024


PR proposes displaying "Send Message", "Add Friend" and "Unfriend" links (buttons) on user profile page only if user is signed in. Previously, these links (buttons) were always displayed.

Fixes #5199 

Signed In:
![image](https://github.com/user-attachments/assets/9456879b-e3f7-4cc6-8706-43685f8f7cc0)

Signed Out:
![image](https://github.com/user-attachments/assets/8e65cd0c-eb62-4d18-84b5-ae01d6b7f495)

You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5203

-- Commit Summary --

  * Displays profile links only if user is singed in

-- File Changes --

    M app/views/users/show.html.erb (26)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5203.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5203.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5203
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5203 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240912/605824a8/attachment.htm>


More information about the rails-dev mailing list