Mercurial > kallithea
changeset 805:26602c8a9bed beta
added tooltip into changelog files affected
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 03 Dec 2010 22:06:11 +0100 |
parents | b92d9a0321e0 |
children | 499fa8e87c90 |
files | rhodecode/public/css/style.css rhodecode/templates/changelog/changelog.html |
diffstat | 2 files changed, 17 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/public/css/style.css Fri Dec 03 21:23:20 2010 +0100 +++ b/rhodecode/public/css/style.css Fri Dec 03 22:06:11 2010 +0100 @@ -1564,6 +1564,7 @@ float:right; text-align:center; min-width:15px; +cursor: help; } .right .changes .added {
--- a/rhodecode/templates/changelog/changelog.html Fri Dec 03 21:23:20 2010 +0100 +++ b/rhodecode/templates/changelog/changelog.html Fri Dec 03 22:06:11 2010 +0100 @@ -58,9 +58,22 @@ </div> <div class="right"> <div class="changes"> - <span class="removed" title="${_('removed')}: ${' | '.join([x.name for x in cs.removed])}">${len(cs.removed)}</span> - <span class="changed" title="${_('changed')}: ${' | '.join([x.name for x in cs.changed])}">${len(cs.changed)}</span> - <span class="added" title="${_('added')}: ${' | '.join([x.name for x in cs.added])}">${len(cs.added)}</span> + + <%! + def changed_tooltip(cs): + if cs: + pref = ': ' + suf = '' + if len(cs) > 30: + suf='<br/> and %s more' % (len(cs) - 30) + return pref+'<br/> '.join([x.path for x in cs[:30]]) + suf + else: + return 'No Files' + %> + + <span class="removed tooltip" tooltip_title="${_('removed')} ${h.literal(changed_tooltip(cs.removed))}">${len(cs.removed)}</span> + <span class="changed tooltip" tooltip_title="${_('changed')} ${h.literal(changed_tooltip(cs.changed))}">${len(cs.changed)}</span> + <span class="added tooltip" tooltip_title="${_('added')} ${h.literal(changed_tooltip(cs.added))}">${len(cs.added)}</span> </div> %if len(cs.parents)>1: <div class="merge">