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: |
|
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,23 +52,33 b'' | |||||
52 | </div> |
|
52 | </div> | |
53 |
|
53 | |||
54 | <div class="codeblock codeblock-header"> |
|
54 | <div class="codeblock codeblock-header"> | |
55 | <div class="stats"> |
|
55 | ||
56 | <div> |
|
56 | <div class="file-filename"> | |
57 | ${h.files_breadcrumbs(c.repo_name,c.commit.raw_id,c.file.path, request.GET.get('at'))} |
|
57 | <i class="icon-file"></i> ${c.file} | |
58 | </div> |
|
58 | </div> | |
59 |
|
|
59 | ||
|
60 | <div class="file-stats"> | |||
|
61 | ||||
|
62 | <div class="stats-info"> | |||
|
63 | <span class="stats-first-item">${c.file.lines()[0]} ${_ungettext('line', 'lines', c.file.lines()[0])}</span> | |||
|
64 | ||||
|
65 | <span> | ${h.format_byte_size_binary(c.file.size)}</span> | |||
60 | % if c.lf_node: |
|
66 | % 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> |
|
67 | <span title="${_('This file is a pointer to large binary file')}"> | ${_('LargeFile')} ${h.format_byte_size_binary(c.lf_node.size)} </span> | |
62 | % endif |
|
68 | % endif | |
63 |
|
||||
64 | <div class="stats-info"> |
|
|||
65 | <span class="stats-first-item">${c.file.lines()[0]} ${_ungettext('line', 'lines', c.file.lines()[0])}</span> |
|
|||
66 | <span> | ${h.format_byte_size_binary(c.file.size)}</span> |
|
|||
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> | |
|
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> | |||
|
81 | ||||
72 | <div class="pull-right stats"> |
|
82 | <div class="pull-right stats"> | |
73 | <a id="file_history_overview" href="#loadHistory"> |
|
83 | <a id="file_history_overview" href="#loadHistory"> | |
74 | ${_('History')} |
|
84 | ${_('History')} | |
@@ -82,8 +92,9 b'' | |||||
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))} |
|
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))} | |
83 |
|
93 | |||
84 | </div> |
|
94 | </div> | |
|
95 | </div> | |||
85 |
|
96 | |||
86 | <div class="code-body"> |
|
97 | ||
87 |
|
|
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,6 +135,7 b'' | |||||
124 | %endif |
|
135 | %endif | |
125 | %endif |
|
136 | %endif | |
126 | </div> |
|
137 | </div> | |
|
138 | ||||
127 | </div> |
|
139 | </div> | |
128 |
|
140 | |||
129 | <script type="text/javascript"> |
|
141 | <script type="text/javascript"> |
General Comments 0
You need to be logged in to leave comments.
Login now