diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-04-01 21:11:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-01 21:11:30 +0800 |
commit | 751997ad34fdd52b9f3956b14395560b059c9ac1 (patch) | |
tree | ed31804eaad6dd0d85593e7457da8974c7106b0f /templates/shared | |
parent | a008486f5c5acfe2d2acb009f41dc660ee8348eb (diff) | |
download | gitea-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.tmpl | 4 |
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> |