##// 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 width: 100%;
413 width: 100%;
414 margin: 0;
414 margin: 0;
415
415
416 .stats {
416 .file-filename {
417 float: left;
417 float:left;
418 padding: 10px;
418 padding: 10px;
419 }
419 }
420 .stats-filename {
420
421 font-size: 120%;
421 .file-stats {
422 padding: 10px;
423 float:right;
422 }
424 }
425
426
423 .stats-first-item {
427 .stats-first-item {
424 padding: 0px 0px 0px 3px;
428 padding: 0px 0px 0px 3px;
425 }
429 }
426
430
427 .stats-info {
431 .stats-info {
428 margin-top: 5px;
429 font-size: 11px;
432 font-size: 11px;
430 color: @grey4;
433 color: @grey4;
431 }
434 }
@@ -52,38 +52,49 b''
52 </div>
52 </div>
53
53
54 <div class="codeblock codeblock-header">
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:
56 <div class="file-filename">
61 <span title="${_('This file is a pointer to large binary file')}"> | ${_('LargeFile')} ${h.format_byte_size_binary(c.lf_node.size)} </span>
57 <i class="icon-file"></i> ${c.file}
62 % endif
58 </div>
59
60 <div class="file-stats">
63
61
64 <div class="stats-info">
62 <div class="stats-info">
65 <span class="stats-first-item">${c.file.lines()[0]} ${_ungettext('line', 'lines', c.file.lines()[0])}</span>
63 <span class="stats-first-item">${c.file.lines()[0]} ${_ungettext('line', 'lines', c.file.lines()[0])}</span>
64
66 <span> | ${h.format_byte_size_binary(c.file.size)}</span>
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 <span> | ${c.file.mimetype} </span>
69 <span> | ${c.file.mimetype} </span>
68 <span> | ${h.get_lexer_for_filenode(c.file).__class__.__name__}</span>
70 <span> | ${h.get_lexer_for_filenode(c.file).__class__.__name__}</span>
69 </div>
71 </div>
70
72
71 </div>
73 </div>
72 <div class="pull-right stats">
74
73 <a id="file_history_overview" href="#loadHistory">
75 <div class="code-body">
74 ${_('History')}
76
75 </a>
77 <div>
76 |
78 <div class="pull-left">
77 %if c.annotate:
79 ${h.files_breadcrumbs(c.repo_name,c.commit.raw_id,c.file.path, request.GET.get('at'))}
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))}
80 </div>
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))}
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 %if c.file.is_binary:
98 %if c.file.is_binary:
88 <% rendered_binary = h.render_binary(c.repo_name, c.file)%>
99 <% rendered_binary = h.render_binary(c.repo_name, c.file)%>
89 % if rendered_binary:
100 % if rendered_binary:
@@ -124,7 +135,8 b''
124 %endif
135 %endif
125 %endif
136 %endif
126 </div>
137 </div>
127 </div>
138
139 </div>
128
140
129 <script type="text/javascript">
141 <script type="text/javascript">
130 % if request.GET.get('mark'):
142 % if request.GET.get('mark'):
General Comments 0
You need to be logged in to leave comments. Login now