[openstreetmap/openstreetmap-website] Add machine-readable category and time to report template (PR #4382)

Anton Khorev notifications at github.com
Thu Nov 30 18:06:54 UTC 2023


Before I'm able to change [how report categories look](https://github.com/openstreetmap/openstreetmap-website/pull/4370#issuecomment-1826874270), I have to update [my browser extension](https://github.com/AntonKhorev/osm-dwg-helper). Currently categories are not marked in any machine-readable way, so my extension looks for substrings like "vandal" or "spam". If we start localizing categories, these substrings could be missing from reports html. To address that, I'm adding report categories as data attributes here. And I also wrap report dates in `<time>` with `datetime` attrs.

I've already released the new version of the extension. Now I'm waiting for it to propagate to users. Then I'll remove the draft status of this pull request.

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

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

-- Commit Summary --

  * Add machine-readable category and time to report template

-- File Changes --

    M app/views/issues/_reports.html.erb (4)

-- Patch Links --

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

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

Message ID: <openstreetmap/openstreetmap-website/pull/4382 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231130/93a8c271/attachment.htm>


More information about the rails-dev mailing list