X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/231177aa29c8c09135d9921956341a5f477cbb7b..52bfc5708939125fff6309aaeb8f884f4315e276:/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 167bcb5cb..3f1aeb201 100644 --- a/app/views/changesets/show.html.erb +++ b/app/views/changesets/show.html.erb @@ -49,9 +49,15 @@ — <%= 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) } %> + :data => { :method => comment.visible ? "DELETE" : "POST", + :url => api_changeset_comment_visibility_path(comment) } %> <% end %> + + + + + +
<%= comment.body.to_html %> @@ -81,7 +87,7 @@ :name => "comment", :disabled => true, :data => { :method => "POST", - :url => changeset_comment_url(@changeset) } %> + :url => api_changeset_changeset_comments_path(@changeset) } %>
<% else %> @@ -105,9 +111,9 @@
- <%= link_to(t(".changesetxml"), :controller => "api/changesets", :action => "show") %> + <%= link_to t(".changesetxml"), api_changeset_path(@changeset) %> · - <%= link_to(t(".osmchangexml"), :controller => "api/changesets", :action => "download") %> + <%= link_to t(".osmchangexml"), api_changeset_download_path(@changeset) %>
<% if @next_by_user || @prev_by_user %>