summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/view_file.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl
index 9868072313..cd0caf10f9 100644
--- a/templates/repo/view_file.tmpl
+++ b/templates/repo/view_file.tmpl
@@ -41,8 +41,12 @@
<table>
<tbody>
<tr>
+ {{if .IsFileTooLarge}}
+ <td><strong>{{.i18n.Tr "repo.file_too_large"}}</strong></td>
+ {{else}}
<td class="lines-num"></td>
<td class="lines-code"><pre><code class="{{.HighlightClass}}"><ol class="linenums">{{.FileContent}}</ol></code></pre></td>
+ {{end}}
</tr>
</tbody>
</table>