##// END OF EJS Templates
fixed small issue made on latest patches
marcink -
r813:e8b5be26 beta
parent child Browse files
Show More
@@ -52,6 +52,7 b' class FilesController(BaseController):'
52 52 'repository.admin')
53 53 def __before__(self):
54 54 super(FilesController, self).__before__()
55 c.cut_off_limit = self.cut_off_limit
55 56
56 57 def index(self, repo_name, revision, f_path):
57 58 hg_model = ScmModel()
@@ -63,7 +63,7 b''
63 63 <div class="commit">"${c.file.message}"</div>
64 64 </div>
65 65 <div class="code-body">
66 % if c.file.size < c.file_size_limit:
66 % if c.file.size < c.cut_off_limit:
67 67 ${h.pygmentize_annotation(c.file,linenos=True,anchorlinenos=True,lineanchors='S',cssclass="code-highlight")}
68 68 %else:
69 69 ${_('File is to big to display')} ${h.link_to(_('show as raw'),
@@ -36,7 +36,7 b''
36 36 <div class="commit">"${c.files_list.last_changeset.message}"</div>
37 37 </div>
38 38 <div class="code-body">
39 % if c.files_list.size < c.file_size_limit:
39 % if c.files_list.size < c.cut_off_limit:
40 40 ${h.pygmentize(c.files_list,linenos=True,anchorlinenos=True,lineanchors='S',cssclass="code-highlight")}
41 41 %else:
42 42 ${_('File is to big to display')} ${h.link_to(_('show as raw'),
General Comments 0
You need to be logged in to leave comments. Login now