##// 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 'repository.admin')
52 'repository.admin')
53 def __before__(self):
53 def __before__(self):
54 super(FilesController, self).__before__()
54 super(FilesController, self).__before__()
55 c.cut_off_limit = self.cut_off_limit
55
56
56 def index(self, repo_name, revision, f_path):
57 def index(self, repo_name, revision, f_path):
57 hg_model = ScmModel()
58 hg_model = ScmModel()
@@ -63,7 +63,7 b''
63 <div class="commit">"${c.file.message}"</div>
63 <div class="commit">"${c.file.message}"</div>
64 </div>
64 </div>
65 <div class="code-body">
65 <div class="code-body">
66 % if c.file.size < c.file_size_limit:
66 % if c.file.size < c.cut_off_limit:
67 ${h.pygmentize_annotation(c.file,linenos=True,anchorlinenos=True,lineanchors='S',cssclass="code-highlight")}
67 ${h.pygmentize_annotation(c.file,linenos=True,anchorlinenos=True,lineanchors='S',cssclass="code-highlight")}
68 %else:
68 %else:
69 ${_('File is to big to display')} ${h.link_to(_('show as raw'),
69 ${_('File is to big to display')} ${h.link_to(_('show as raw'),
@@ -36,7 +36,7 b''
36 <div class="commit">"${c.files_list.last_changeset.message}"</div>
36 <div class="commit">"${c.files_list.last_changeset.message}"</div>
37 </div>
37 </div>
38 <div class="code-body">
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 ${h.pygmentize(c.files_list,linenos=True,anchorlinenos=True,lineanchors='S',cssclass="code-highlight")}
40 ${h.pygmentize(c.files_list,linenos=True,anchorlinenos=True,lineanchors='S',cssclass="code-highlight")}
41 %else:
41 %else:
42 ${_('File is to big to display')} ${h.link_to(_('show as raw'),
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