From 11eca4b3c5fb7caa9a02be71c9a1782599632a44 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Tue, 1 Jul 2025 03:03:12 +0300 Subject: [PATCH] Use link_to(changeset) in changeset history and element common details --- app/views/browse/_common_details.html.erb | 2 +- app/views/changesets/_changeset.html.erb | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/views/browse/_common_details.html.erb b/app/views/browse/_common_details.html.erb index 242a18e2d..a745197db 100644 --- a/app/views/browse/_common_details.html.erb +++ b/app/views/browse/_common_details.html.erb @@ -23,7 +23,7 @@
  • <%= t "browse.in_changeset" %> - #<%= link_to common_details.changeset_id, changeset_path(common_details.changeset) %> + #<%= link_to common_details.changeset_id, common_details.changeset %>
  • <% if @type == "node" and common_details.visible? %> diff --git a/app/views/changesets/_changeset.html.erb b/app/views/changesets/_changeset.html.erb index ac80b6d7c..bc9f47701 100644 --- a/app/views/changesets/_changeset.html.erb +++ b/app/views/changesets/_changeset.html.erb @@ -1,8 +1,8 @@ <%= tag.li :id => "changeset_#{changeset.id}", :data => { :changeset => changeset_data(changeset) }, :class => "list-group-item list-group-item-action" do %>

    - + <%= link_to changeset, :class => "changeset_id link-body-emphasis stretched-link" do %> <%= changeset.tags["comment"].to_s.presence || t("browse.no_comment") %> - + <% end %>

    @@ -10,9 +10,7 @@
    - - #<%= changeset.id %> - + <%= link_to "##{changeset.id}", changeset, :class => "changeset_id link-body-emphasis me-auto" %> <%= tag.div :class => ["d-flex align-items-baseline gap-1", { "opacity-50" => changeset.comments.empty? }], :title => t(".comments", :count => changeset.comments.length) do %> <%= changeset.comments.length %> -- 2.39.5