[openstreetmap/openstreetmap-website] Provide a truncated view of recent diaries (PR #5121)

David Tsiklauri notifications at github.com
Thu Apr 10 07:19:49 UTC 2025


nertc left a comment (openstreetmap/openstreetmap-website#5121)

PR was updated.
@AntonKhorev `truncate_html` was moved to be done after `linkify` and `sanitize`.
@tomhughes visual of `See full entry` link was changed. Now it is separate from other links and easier to see (see screenshots).
Logic of checking if HTML was truncated, was changed and now it is saved in the object instead of doing additional truncation.

Screenshots:
![image](https://github.com/user-attachments/assets/5f94f3b5-be9a-4f7c-ab79-5d8376f2f24f)
![image](https://github.com/user-attachments/assets/88630f78-bb83-41e6-976b-8f6430e03732)


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

Message ID: <openstreetmap/openstreetmap-website/pull/5121/c2791793826 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250410/36b4ac71/attachment.htm>


More information about the rails-dev mailing list