[openstreetmap/openstreetmap-website] Truncate if necessary and set dir=auto for note usernames (PR #5377)

Anton Khorev notifications at github.com
Wed Dec 4 11:03:12 UTC 2024


Similar to #5371 but for notes.

Fixes #3964.

Before:
![image](https://github.com/user-attachments/assets/44d859dc-20de-43b3-a46f-0095dcf48196)
note "43 (part of username) minutes ago", this is issue #3964

After:
![image](https://github.com/user-attachments/assets/084ec00e-cf3c-4552-898f-d14daf7acda4)

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

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

-- Commit Summary --

  * Truncate if necessary and set dir=auto for note usernames

-- File Changes --

    M app/helpers/note_helper.rb (3)
    M app/views/notes/show.html.erb (24)
    M test/helpers/note_helper_test.rb (34)

-- Patch Links --

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

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

Message ID: <openstreetmap/openstreetmap-website/pull/5377 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20241204/824d454f/attachment-0001.htm>


More information about the rails-dev mailing list