Show More
@@ -224,14 +224,17 b' class FilesController(BaseRepoController' | |||
|
224 | 224 | c.file_tree = '' |
|
225 | 225 | if c.file.is_file(): |
|
226 | 226 | c.file_last_commit = c.file.last_commit |
|
227 | if c.annotate: # annotation has precedence over renderer | |
|
228 | c.annotated_lines = filenode_as_annotated_lines_tokens( | |
|
229 | c.file) | |
|
230 |
|
|
|
231 |
|
|
|
232 | c.renderer and h.renderer_from_filename(c.file.path)) | |
|
233 |
|
|
|
234 |
c. |
|
|
227 | if c.file.size < self.cut_off_limit_file: | |
|
228 | if c.annotate: # annotation has precedence over renderer | |
|
229 | c.annotated_lines = filenode_as_annotated_lines_tokens( | |
|
230 | c.file | |
|
231 | ) | |
|
232 | else: | |
|
233 | c.renderer = ( | |
|
234 | c.renderer and h.renderer_from_filename(c.file.path) | |
|
235 | ) | |
|
236 | if not c.renderer: | |
|
237 | c.lines = filenode_as_lines_tokens(c.file) | |
|
235 | 238 | |
|
236 | 239 | c.on_branch_head = self._is_valid_head( |
|
237 | 240 | commit_id, c.rhodecode_repo) |
General Comments 0
You need to be logged in to leave comments.
Login now