[openstreetmap/openstreetmap-website] Explain to anonymous users they need to log in to comment on notes (#2761)

Michael Booth notifications at github.com
Wed Aug 24 14:38:15 UTC 2022


Looking at the changeset page this seems to be the code which adds the log in text: https://github.com/openstreetmap/openstreetmap-website/blob/d3388abe51a946ae0abc645d831a93b1b2cc6749/app/views/browse/changeset.html.erb#L69

` <% unless current_user %>
    <p class="notice">
      <%= link_to(t(".join_discussion"), login_path(:referer => request.fullpath)) %>
    </p>
  <% end %>`

Could the same be added to the note.html.erb file?

Guessing the **.join_discussion** text would need to be different - something like "Log in to comment or resolve this note" if the note is open, and "Log in to reactivate this note" if the note is closed?

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

Message ID: <openstreetmap/openstreetmap-website/issues/2761/1225816994 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220824/e59813fa/attachment.htm>


More information about the rails-dev mailing list