[PATCH 1 of 2 V2] summary: add tooltip and link to status change icons (same as on changelog page)

Angel Ezquerra angel.ezquerra at gmail.com
Sun Feb 21 11:10:20 UTC 2016


# HG changeset patch
# User Angel Ezquerra <angel.ezquerra at gmail.com>
# Date 1456047833 -3600
#      Sun Feb 21 10:43:53 2016 +0100
# Branch stable
# Node ID 1b8fa58fddda34e218c31f61bc571a342f7e96fc
# Parent  511aa91947fe31ae4b123a483fac7f2fb1408af2
summary: add tooltip and link to status change icons (same as on changelog page)

This change makes the changeset list on the summary page more similar to the one
on the changeset list. It adds the same tooltip ("Changeset status") to the
changeset status change icons that is already found on the changelog page. It
also adds a link to the first comment (as in the changelog page).

diff --git a/kallithea/templates/changelog/changelog_summary_data.html b/kallithea/templates/changelog/changelog_summary_data.html
--- a/kallithea/templates/changelog/changelog_summary_data.html
+++ b/kallithea/templates/changelog/changelog_summary_data.html
@@ -21,7 +21,9 @@
                     <i class="icon-circle changeset-status-${c.statuses.get(cs.raw_id)[0]}"></i>
                   </a>
                 %else:
-                  <i class="icon-circle changeset-status-${c.statuses.get(cs.raw_id)[0]}"></i>
+                  <a class="tooltip" title="${_('Changeset status: %s') % c.statuses.get(cs.raw_id)[1]}" href="${c.comments[cs.raw_id][0].url()}">
+                    <i class="icon-circle changeset-status-${c.statuses.get(cs.raw_id)[0]}"></i>
+                  </a>
                 %endif
                 </span>
               %endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kallithea-1.patch
Type: text/x-patch
Size: 1494 bytes
Desc: not available
URL: <http://lists.sfconservancy.org/pipermail/kallithea-general/attachments/20160221/12268ab2/attachment.bin>


More information about the kallithea-general mailing list