[openstreetmap/openstreetmap-website] Hide the anonymous note creation form when the limit is exceeded (PR #6593)
Pablo Brasero
notifications at github.com
Tue Dec 9 10:49:26 UTC 2025
@pablobm commented on this pull request.
> <div class="note">
<p class="alert alert-info"><%= t(".intro") %></p>
<% if !current_user %>
- <div class="alert alert-warning pb-0">
+ <div class="alert <%= warn_class %> pb-0">
I think I can work with `warn_class` being inlined, and the other two being made into helpers.
```suggestion
<div class="alert <%= hard_anonymous_notes_limit_reached ? "alert-danger" : "alert-warning" %> pb-0">
```
You don't need to create a new file for the helpers, you can put them in `app/helpers/note_helper.rb`.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6593#pullrequestreview-3556719993
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6593/review/3556719993 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251209/f6c90063/attachment.htm>
More information about the rails-dev
mailing list