mirror of
https://github.com/go-gitea/gitea
synced 2025-08-12 04:28:21 +00:00
Move 3rd party js/css into public/vendor
and document sources (#2383)
This commit cherry picks the following commits (master -> v1.2):a915a09
874f9be
233bbcf
Ref: https://github.com/go-gitea/gitea/issues/1484 Signed-off-by: Michael Lustfield <michael@lustfield.net>
This commit is contained in:
committed by
Lunny Xiao
parent
e13eef8cfe
commit
9df0eafa25
@@ -48,7 +48,7 @@
|
||||
<strong>{{.i18n.Tr "repo.video_not_supported_in_browser"}}</strong>
|
||||
</video>
|
||||
{{else if .IsPDFFile}}
|
||||
<iframe width="100%" height="600px" src="{{AppSubUrl}}/plugins/pdfjs-1.4.20/web/viewer.html?file={{EscapePound $.RawFileLink}}"></iframe>
|
||||
<iframe width="100%" height="600px" src="{{AppSubUrl}}/vendor/plugins/pdfjs/web/viewer.html?file={{EscapePound $.RawFileLink}}"></iframe>
|
||||
{{else}}
|
||||
<a href="{{EscapePound $.RawFileLink}}" rel="nofollow" class="btn btn-gray btn-radius">{{.i18n.Tr "repo.file_view_raw"}}</a>
|
||||
{{end}}
|
||||
|
Reference in New Issue
Block a user