[PATCH] template: link the last revision in the file browser to the changeset

Andrew Shadura andrew at shadura.me
Mon Mar 23 07:45:26 EDT 2015


# HG changeset patch
# User Andrew Shadura <andrew at shadura.me>
# Date 1426973024 -3600
#      Sat Mar 21 22:23:44 2015 +0100
# Node ID 40168326214e69da0e109968eb8e89ad9df5028a
# Parent  6783369ad0dd687c709c756f03559437d9f01dad
template: link the last revision in the file browser to the changeset

diff --git a/kallithea/public/css/style.css b/kallithea/public/css/style.css
--- a/kallithea/public/css/style.css
+++ b/kallithea/public/css/style.css
@@ -2657,6 +2657,7 @@ BIN_FILENODE = 6
 #compare_branches + .table .revision-link,
 #compare_tags + .table .revision-link,
 #compare_bookmarks + .table .revision-link,
+.table #files_data .revision-link,
 #repos_list_wrap .revision-link,
 #shortlog_data .revision-link {
     font-weight: normal !important;
diff --git a/kallithea/templates/files/files_browser.html b/kallithea/templates/files/files_browser.html
--- a/kallithea/templates/files/files_browser.html
+++ b/kallithea/templates/files/files_browser.html
@@ -97,9 +97,7 @@
                      </td>
                      <td>
                          %if node.is_file():
-                             <div class="tooltip" title="${h.tooltip(node.last_changeset.message)}">
-                              <pre>${h.show_id(node.last_changeset)}</pre>
-                             </div>
+                             <a title="${h.tooltip(node.last_changeset.message)}" href="${h.url('changeset_home',repo_name=c.repo_name,revision=node.last_changeset)}" class="tooltip revision-link">${h.show_id(node.last_changeset)}</a>
                          %endif
                      </td>
                      <td>


More information about the kallithea-general mailing list