X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0dae690c06fd32a03cea3d45c53f52d29439e4da..0d0a9fc0044a77aa8f5b70761b7529e2191e5a3e:/app/views/changesets/show.html.erb diff --git a/app/views/changesets/show.html.erb b/app/views/changesets/show.html.erb index 3ba3968f7..a30dc8c79 100644 --- a/app/views/changesets/show.html.erb +++ b/app/views/changesets/show.html.erb @@ -31,13 +31,13 @@ <% @comments.each do |comment| %> <% next unless comment.visible || current_user&.moderator? %>
  • - + <%= t comment.visible ? ".comment_by_html" : ".hidden_comment_by_html", :time_ago => friendly_date_ago(comment.created_at), :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 %>