]> git.openstreetmap.org Git - rails.git/commitdiff
Make changeset id also a link so it can be displayed over the stretched link and...
authorAnton Khorev <tony29@yandex.ru>
Fri, 2 Sep 2022 13:13:52 +0000 (16:13 +0300)
committerAnton Khorev <tony29@yandex.ru>
Fri, 2 Sep 2022 13:13:52 +0000 (16:13 +0300)
app/views/changesets/_changeset.html.erb

index fa1761954afd7a7fd687bb7a994ebdc53484d9d3..a59c85ec4ba18632e8d9a27dcfd4c0a1606d406d 100644 (file)
@@ -20,7 +20,9 @@
     <div class="col">
       <%= changeset_details(changeset) %>
       &middot;
     <div class="col">
       <%= changeset_details(changeset) %>
       &middot;
-      #<%= changeset.id %>
+      <a class="changeset_id text-dark" href="<%= changeset_path(changeset) %>">
+        #<%= changeset.id %>
+      </a>
     </div>
     <div class="col-auto comments comments-<%= changeset.comments.length %>">
       <%= changeset.comments.length %>
     </div>
     <div class="col-auto comments comments-<%= changeset.comments.length %>">
       <%= changeset.comments.length %>