Commits

Marcin Kuzminski  committed 3555c56

Changeset range shows branch/tags/bookmarks

  • Participants
  • Parent commits 381eea2

Comments (0)

Files changed (2)

File rhodecode/public/css/style.css

 	text-decoration: underline;
 }
 
-h1,h2,h3,h4,h5,h6 {
+h1,h2,h3,h4,h5,h6,
+div.h1,div.h2,div.h3,div.h4,div.h5,div.h6 {
 	color: #292929;
 	font-weight: 700;
 }
 
-h1 {
+h1,div.h1 {
 	font-size: 22px;
 }
 
-h2 {
+h2,div.h2 {
 	font-size: 20px;
 }
 
-h3 {
+h3,div.h3 {
 	font-size: 18px;
 }
 
-h4 {
+h4,div.h4 {
 	font-size: 16px;
 }
 
-h5 {
+h5,div.h5 {
 	font-size: 14px;
 }
 
-h6 {
+h6,div.h6 {
 	font-size: 11px;
 }
 
 	text-decoration: none;
 }
 
-#content div.box h1,#content div.box h2,#content div.box h3,#content div.box h4,#content div.box h5,#content div.box h6
+#content div.box h1,#content div.box h2,#content div.box h3,#content div.box h4,#content div.box h5,#content div.box h6,
+#content div.box div.h1,#content div.box div.h2,#content div.box div.h3,#content div.box div.h4,#content div.box div.h5,#content div.box div.h6
+
 	{
 	clear: both;
 	overflow: hidden;

File rhodecode/templates/changeset/changeset_range.html

      %for cs in c.cs_ranges:
           ##${comment.comment_inline_form(cs)}
           ## diff block
-          <h3 style="padding-top:8px;">
+          <div class="h3">
           <a class="tooltip" title="${h.tooltip(cs.message)}" href="${h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id)}">${'r%s:%s' % (cs.revision,h.short_id(cs.raw_id))}</a>
-           <div class="gravatar">
-               <img alt="gravatar" src="${h.gravatar_url(h.email_or_none(cs.author),20)}"/>
+             <div class="gravatar">
+                 <img alt="gravatar" src="${h.gravatar_url(h.email_or_none(cs.author),20)}"/>
+             </div>
+             <div class="right">
+              <span class="logtags">
+                %if len(cs.parents)>1:
+                <span class="merge">${_('merge')}</span>
+                %endif
+                %if cs.branch:
+                <span class="branchtag" title="${'%s %s' % (_('branch'),cs.branch)}">
+                   ${h.link_to(h.shorter(cs.branch),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}
+                </span>
+                %endif
+                %if h.is_hg(c.rhodecode_repo):
+                  %for book in cs.bookmarks:
+                  <span class="bookbook" title="${'%s %s' % (_('bookmark'),book)}">
+                     ${h.link_to(h.shorter(book),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}
+                  </span>
+                  %endfor
+                %endif
+                %for tag in cs.tags:
+                    <span class="tagtag"  title="${'%s %s' % (_('tag'),tag)}">
+                    ${h.link_to(h.shorter(tag),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}</span>
+                %endfor
+              </span>        
+            </div>   
            </div>
-           </h3>
           ${diff_block.diff_block(c.changes[cs.raw_id])}
           ##${comment.comments(cs)}