##// END OF EJS Templates
files: moved source path to lower position according to the design
marcink -
r3715:0edc69aa new-ui
parent child Browse files
Show More
@@ -413,19 +413,22 b''
413 413 width: 100%;
414 414 margin: 0;
415 415
416 .stats {
417 float: left;
416 .file-filename {
417 float:left;
418 418 padding: 10px;
419 419 }
420 .stats-filename {
421 font-size: 120%;
420
421 .file-stats {
422 padding: 10px;
423 float:right;
422 424 }
425
426
423 427 .stats-first-item {
424 428 padding: 0px 0px 0px 3px;
425 429 }
426 430
427 431 .stats-info {
428 margin-top: 5px;
429 432 font-size: 11px;
430 433 color: @grey4;
431 434 }
@@ -52,38 +52,49 b''
52 52 </div>
53 53
54 54 <div class="codeblock codeblock-header">
55 <div class="stats">
56 <div>
57 ${h.files_breadcrumbs(c.repo_name,c.commit.raw_id,c.file.path, request.GET.get('at'))}
58 </div>
59 55
60 % if c.lf_node:
61 <span title="${_('This file is a pointer to large binary file')}"> | ${_('LargeFile')} ${h.format_byte_size_binary(c.lf_node.size)} </span>
62 % endif
56 <div class="file-filename">
57 <i class="icon-file"></i> ${c.file}
58 </div>
59
60 <div class="file-stats">
63 61
64 62 <div class="stats-info">
65 63 <span class="stats-first-item">${c.file.lines()[0]} ${_ungettext('line', 'lines', c.file.lines()[0])}</span>
64
66 65 <span> | ${h.format_byte_size_binary(c.file.size)}</span>
66 % if c.lf_node:
67 <span title="${_('This file is a pointer to large binary file')}"> | ${_('LargeFile')} ${h.format_byte_size_binary(c.lf_node.size)} </span>
68 % endif
67 69 <span> | ${c.file.mimetype} </span>
68 70 <span> | ${h.get_lexer_for_filenode(c.file).__class__.__name__}</span>
69 71 </div>
70 72
71 73 </div>
72 <div class="pull-right stats">
73 <a id="file_history_overview" href="#loadHistory">
74 ${_('History')}
75 </a>
76 |
77 %if c.annotate:
78 ${h.link_to(_('Source'), h.route_path('repo_files', repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path))}
79 %else:
80 ${h.link_to(_('Annotation'), h.route_path('repo_files:annotated',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path))}
81 %endif
82 | ${h.link_to(_('Raw'), h.route_path('repo_file_raw',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path))}
74
75 <div class="code-body">
76
77 <div>
78 <div class="pull-left">
79 ${h.files_breadcrumbs(c.repo_name,c.commit.raw_id,c.file.path, request.GET.get('at'))}
80 </div>
83 81
84 </div>
82 <div class="pull-right stats">
83 <a id="file_history_overview" href="#loadHistory">
84 ${_('History')}
85 </a>
86 |
87 %if c.annotate:
88 ${h.link_to(_('Source'), h.route_path('repo_files', repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path))}
89 %else:
90 ${h.link_to(_('Annotation'), h.route_path('repo_files:annotated',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path))}
91 %endif
92 | ${h.link_to(_('Raw'), h.route_path('repo_file_raw',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path))}
85 93
86 <div class="code-body">
94 </div>
95 </div>
96
97
87 98 %if c.file.is_binary:
88 99 <% rendered_binary = h.render_binary(c.repo_name, c.file)%>
89 100 % if rendered_binary:
@@ -124,7 +135,8 b''
124 135 %endif
125 136 %endif
126 137 </div>
127 </div>
138
139 </div>
128 140
129 141 <script type="text/javascript">
130 142 % if request.GET.get('mark'):
General Comments 0
You need to be logged in to leave comments. Login now