# HG changeset patch # User Marcin Kuzminski # Date 2019-06-01 08:46:42 # Node ID 0edc69aa0f0fd2c63583dc1c1a76dca1fc16842b # Parent 52e30a8fa6c8514e25de968e57f598cea58f8b8e files: moved source path to lower position according to the design diff --git a/rhodecode/public/css/summary.less b/rhodecode/public/css/summary.less --- a/rhodecode/public/css/summary.less +++ b/rhodecode/public/css/summary.less @@ -413,19 +413,22 @@ width: 100%; margin: 0; - .stats { - float: left; + .file-filename { + float:left; padding: 10px; } - .stats-filename { - font-size: 120%; + + .file-stats { + padding: 10px; + float:right; } + + .stats-first-item { padding: 0px 0px 0px 3px; } .stats-info { - margin-top: 5px; font-size: 11px; color: @grey4; } diff --git a/rhodecode/templates/files/files_source.mako b/rhodecode/templates/files/files_source.mako --- a/rhodecode/templates/files/files_source.mako +++ b/rhodecode/templates/files/files_source.mako @@ -52,38 +52,49 @@
-
-
- ${h.files_breadcrumbs(c.repo_name,c.commit.raw_id,c.file.path, request.GET.get('at'))} -
- % if c.lf_node: - | ${_('LargeFile')} ${h.format_byte_size_binary(c.lf_node.size)} - % endif +
+ ${c.file} +
+ +
${c.file.lines()[0]} ${_ungettext('line', 'lines', c.file.lines()[0])} + | ${h.format_byte_size_binary(c.file.size)} + % if c.lf_node: + | ${_('LargeFile')} ${h.format_byte_size_binary(c.lf_node.size)} + % endif | ${c.file.mimetype} | ${h.get_lexer_for_filenode(c.file).__class__.__name__}
-
- - ${_('History')} - - | - %if c.annotate: - ${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))} - %else: - ${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))} - %endif - | ${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))} + +
+ +
+
+ ${h.files_breadcrumbs(c.repo_name,c.commit.raw_id,c.file.path, request.GET.get('at'))} +
-
+
+ + ${_('History')} + + | + %if c.annotate: + ${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))} + %else: + ${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))} + %endif + | ${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))} -
+
+
+ + %if c.file.is_binary: <% rendered_binary = h.render_binary(c.repo_name, c.file)%> % if rendered_binary: @@ -124,7 +135,8 @@ %endif %endif
-
+ +