X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/161fc8ac47f6a3435f357be9af230a5c44735a9c..0d0a9fc0044a77aa8f5b70761b7529e2191e5a3e:/app/views/changesets/show.html.erb?ds=sidebyside diff --git a/app/views/changesets/show.html.erb b/app/views/changesets/show.html.erb index d44ccfc07..a30dc8c79 100644 --- a/app/views/changesets/show.html.erb +++ b/app/views/changesets/show.html.erb @@ -37,7 +37,7 @@ :user => link_to(comment.author.display_name, comment.author) %> <% if current_user&.moderator? %> — - <%= tag.button t("javascripts.changesets.show.#{comment.visible ? 'hide' : 'unhide'}_comment"), + <%= tag.button t(".#{comment.visible ? 'hide' : 'unhide'}_comment"), :class => "btn btn-sm small btn-link link-secondary p-0 align-baseline", :data => { :method => "POST", :url => comment.visible ? changeset_comment_hide_url(comment) : changeset_comment_unhide_url(comment) } %> @@ -66,7 +66,12 @@
- + <%= tag.button t(".comment"), + :class => "btn btn-primary", + :name => "comment", + :disabled => true, + :data => { :method => "POST", + :url => changeset_comment_url(@changeset) } %>
<% else %>