##// END OF EJS Templates
files: handle long paths in nicer UI.
marcink -
r3136:7a1508b5 default
parent child Browse files
Show More
@@ -247,13 +247,19 b''
247 display: block;
247 display: block;
248 width: 100%;
248 width: 100%;
249 margin: 0;
249 margin: 0;
250 padding: @space 0 @padding 0;
250 padding: @space 0 10px 0;
251 border-top: @border-thickness solid @border-default-color;
251 border-top: @border-thickness solid @border-default-color;
252
252
253 .stats {
253 .stats {
254 float: left;
254 float: left;
255 width: 50%;
255 width: 50%;
256 }
256 }
257 .stats-filename {
258 font-size: 120%;
259 }
260 .stats-first-item {
261 padding: 0px 0px 0px 3px;
262 }
257
263
258 .buttons {
264 .buttons {
259 float: right;
265 float: right;
@@ -3,20 +3,24 b''
3 <div id="codeblock" class="codeblock">
3 <div id="codeblock" class="codeblock">
4 <div class="codeblock-header">
4 <div class="codeblock-header">
5 <div class="stats">
5 <div class="stats">
6 <span>
6 <span class="stats-filename">
7 <strong>
7 <strong>
8 <i class="icon-file-text"></i>
8 <i class="icon-file-text"></i>
9 ${c.file.unicode_path_safe}
9 ${c.file.unicode_path_safe}
10 </strong>
10 </strong>
11 </span>
11 </span>
12 <span class="item last"><i class="tooltip icon-clipboard clipboard-action" data-clipboard-text="${c.f_path}" title="${_('Copy the full path')}"></i></span>
13 <br/>
14
12 % if c.lf_node:
15 % if c.lf_node:
13 <span title="${_('This file is a pointer to large binary file')}"> | ${_('LargeFile')} ${h.format_byte_size_binary(c.lf_node.size)} </span>
16 <span title="${_('This file is a pointer to large binary file')}"> | ${_('LargeFile')} ${h.format_byte_size_binary(c.lf_node.size)} </span>
14 % endif
17 % endif
15 <span> | ${c.file.lines()[0]} ${_ungettext('line', 'lines', c.file.lines()[0])}</span>
18
19 <span class="stats-first-item">${c.file.lines()[0]} ${_ungettext('line', 'lines', c.file.lines()[0])}</span>
16 <span> | ${h.format_byte_size_binary(c.file.size)}</span>
20 <span> | ${h.format_byte_size_binary(c.file.size)}</span>
17 <span> | ${c.file.mimetype} </span>
21 <span> | ${c.file.mimetype} </span>
18 <span> | ${h.get_lexer_for_filenode(c.file).__class__.__name__}</span>
22 <span> | ${h.get_lexer_for_filenode(c.file).__class__.__name__}</span>
19 <span class="item last"> | <i class="tooltip icon-clipboard clipboard-action" data-clipboard-text="${c.f_path}" title="${_('Copy the full path')}"></i></span>
23
20 </div>
24 </div>
21 <div class="buttons">
25 <div class="buttons">
22 <a id="file_history_overview" href="#">
26 <a id="file_history_overview" href="#">
General Comments 0
You need to be logged in to leave comments. Login now