summaryrefslogtreecommitdiffstats
path: root/templates/shared
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-04-01 21:11:30 +0800
committerGitHub <noreply@github.com>2024-04-01 21:11:30 +0800
commit751997ad34fdd52b9f3956b14395560b059c9ac1 (patch)
treeed31804eaad6dd0d85593e7457da8974c7106b0f /templates/shared
parenta008486f5c5acfe2d2acb009f41dc660ee8348eb (diff)
downloadgitea-751997ad34fdd52b9f3956b14395560b059c9ac1.tar.gz
gitea-751997ad34fdd52b9f3956b14395560b059c9ac1.zip
Refactor file view & render (#30227)
The old code is inconsistent and fragile, and the UI isn't right.
Diffstat (limited to 'templates/shared')
-rw-r--r--templates/shared/filetoolarge.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/shared/filetoolarge.tmpl b/templates/shared/filetoolarge.tmpl
new file mode 100644
index 0000000000..8842fb1b91
--- /dev/null
+++ b/templates/shared/filetoolarge.tmpl
@@ -0,0 +1,4 @@
+<div class="tw-p-4">
+ {{ctx.Locale.Tr "repo.file_too_large"}}
+ {{if .RawFileLink}}<a href="{{.RawFileLink}}" rel="nofollow">{{ctx.Locale.Tr "repo.file_view_raw"}}</a>{{end}}
+</div>