##// END OF EJS Templates
urlify the commit message in file block + small css fixes
marcink -
r2029:14d8cfb9 beta
parent child Browse files
Show More
@@ -19,20 +19,26 b' div.codeblock .code-header{'
19
19
20 div.codeblock .code-header .stats{
20 div.codeblock .code-header .stats{
21 clear: both;
21 clear: both;
22 margin-top:-3px;
22 padding: 6px 8px 6px 10px;
23 padding-left: 8px;
23 border-bottom: 1px solid rgb(204, 204, 204);
24 border-bottom: 1px solid rgb(204, 204, 204);
24 height: 23px;
25 margin-bottom: 5px; height: 23px;
25 margin-bottom: 6px;
26 }
26 }
27
27
28 div.codeblock .code-header .stats .left{
28 div.codeblock .code-header .stats .left{
29 float:left;
29 float:left;
30 }
30 }
31 div.codeblock .code-header .stats .left.img{
32 margin-top:-2px;
33 }
31 div.codeblock .code-header .stats .left.item{
34 div.codeblock .code-header .stats .left.item{
32 float:left;
35 float:left;
33 padding: 0 9px 0 9px;
36 padding: 0 9px 0 9px;
34 border-right:1px solid #ccc;
37 border-right:1px solid #ccc;
35 }
38 }
39 div.codeblock .code-header .stats .left.item pre{
40
41 }
36 div.codeblock .code-header .stats .left.item.last{
42 div.codeblock .code-header .stats .left.item.last{
37 border-right:none;
43 border-right:none;
38 }
44 }
@@ -15,10 +15,10 b''
15 <div id="body" class="codeblock">
15 <div id="body" class="codeblock">
16 <div class="code-header">
16 <div class="code-header">
17 <div class="stats">
17 <div class="stats">
18 <div class="left"><img src="${h.url('/images/icons/file.png')}"/></div>
18 <div class="left img"><img src="${h.url('/images/icons/file.png')}"/></div>
19 <div class="left item"><pre>${h.link_to("r%s:%s" % (c.file.last_changeset.revision,h.short_id(c.file.last_changeset.raw_id)),h.url('changeset_home',repo_name=c.repo_name,revision=c.file.last_changeset.raw_id))}</pre></div>
19 <div class="left item"><pre>${h.link_to("r%s:%s" % (c.file.last_changeset.revision,h.short_id(c.file.last_changeset.raw_id)),h.url('changeset_home',repo_name=c.repo_name,revision=c.file.last_changeset.raw_id))}</pre></div>
20 <div class="left item">${h.format_byte_size(c.file.size,binary=True)}</div>
20 <div class="left item"><pre>${h.format_byte_size(c.file.size,binary=True)}</pre></div>
21 <div class="left item last">${c.file.mimetype}</div>
21 <div class="left item last"><pre>${c.file.mimetype}</pre></div>
22 <div class="buttons">
22 <div class="buttons">
23 ${h.link_to(_('show annotation'),h.url('files_annotate_home',repo_name=c.repo_name,revision=c.file.last_changeset.raw_id,f_path=c.f_path),class_="ui-btn")}
23 ${h.link_to(_('show annotation'),h.url('files_annotate_home',repo_name=c.repo_name,revision=c.file.last_changeset.raw_id,f_path=c.f_path),class_="ui-btn")}
24 ${h.link_to(_('show as raw'),h.url('files_raw_home',repo_name=c.repo_name,revision=c.file.last_changeset.raw_id,f_path=c.f_path),class_="ui-btn")}
24 ${h.link_to(_('show as raw'),h.url('files_raw_home',repo_name=c.repo_name,revision=c.file.last_changeset.raw_id,f_path=c.f_path),class_="ui-btn")}
@@ -36,7 +36,7 b''
36 </div>
36 </div>
37 <div title="${c.file.last_changeset.author}" class="user">${h.person(c.file.last_changeset.author)}</div>
37 <div title="${c.file.last_changeset.author}" class="user">${h.person(c.file.last_changeset.author)}</div>
38 </div>
38 </div>
39 <div class="commit">${c.file.last_changeset.message}</div>
39 <div class="commit">${h.urlify_commit(c.file.last_changeset.message,c.repo_name)}</div>
40 </div>
40 </div>
41 <div class="code-body">
41 <div class="code-body">
42 %if c.file.is_binary:
42 %if c.file.is_binary:
General Comments 0
You need to be logged in to leave comments. Login now