changeset 5553:60c9b8e0c49c

files: line up styling of 'File too big' message Similar messages about 'Changeset too big to display' in the changeset and pullrequest code are wrapped in an <h4> tag. Follow the same style when showing files or annotations.
author Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
date Thu, 08 Oct 2015 19:51:50 +0200
parents 1013437c997a
children 2d5f442e5abc
files kallithea/templates/files/files_source.html
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/templates/files/files_source.html	Thu Oct 08 17:45:50 2015 +0200
+++ b/kallithea/templates/files/files_source.html	Thu Oct 08 19:51:50 2015 +0200
@@ -70,12 +70,14 @@
               ${h.pygmentize(c.file,linenos=True,anchorlinenos=True,lineanchors='L',cssclass="code-highlight")}
             %endif
         %else:
+            <h4>
             ${_('File is too big to display')}
             %if c.annotate:
               ${h.link_to(_('Show full annotation anyway'), h.url.current(fulldiff=1, **request.GET.mixed()))}
             %else:
               ${h.link_to(_('Show as raw'), h.url('files_raw_home',repo_name=c.repo_name,revision=c.file_changeset.raw_id,f_path=c.f_path))}
             %endif
+            </h4>
         %endif
       %endif
     </div>