Changeset - 26602c8a9bed
[Not reviewed]
beta
0 2 0
Marcin Kuzminski - 15 years ago 2010-12-03 22:06:11
marcin@python-works.com
added tooltip into changelog files affected
2 files changed with 17 insertions and 3 deletions:
0 comments (0 inline, 0 general)
rhodecode/public/css/style.css
Show inline comments
 
@@ -1564,6 +1564,7 @@ display:block;
 
float:right;
 
text-align:center;
 
min-width:15px;
 
cursor: help;
 
}
 
 
.right .changes .added {
rhodecode/templates/changelog/changelog.html
Show inline comments
 
@@ -58,9 +58,22 @@ ${c.repo_name} ${_('Changelog')} - ${c.r
 
						</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">
0 comments (0 inline, 0 general)