[PATCH 3 of 3] files: treat messages about 'File too big' as sentences and add a dot
Thomas De Schampheleire
patrickdepinguin at gmail.com
Fri Oct 9 19:32:22 UTC 2015
# HG changeset patch
# User Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>
# Date 1444327416 -7200
# Thu Oct 08 20:03:36 2015 +0200
# Node ID 0636a44926ba7bf8a1798a931371683842c2e648
# Parent 0252389702c09e1b8bddcc742199da1de212f5ec
files: treat messages about 'File too big' as sentences and add a dot.
Make it more easy to read:
File is too big to display Show full annotation anyway
by treating them as two sentences:
File is too big to display. Show full annotation anyway.
and likewise for regular file display.
diff --git a/kallithea/templates/files/files_source.html b/kallithea/templates/files/files_source.html
--- a/kallithea/templates/files/files_source.html
+++ b/kallithea/templates/files/files_source.html
@@ -71,11 +71,11 @@
%endif
%else:
<h4>
- ${_('File is too big to display')}
+ ${_('File is too big to display.')}
%if c.annotate:
- ${h.link_to(_('Show full annotation anyway'), h.url.current(fulldiff=1, **request.GET.mixed()))}
+ ${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))}
+ ${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
More information about the kallithea-general
mailing list