aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/migrating.tmpl2
-rw-r--r--templates/repo/settings/webhook/list.tmpl14
-rw-r--r--templates/repo/settings/webhook/new.tmpl14
-rw-r--r--templates/repo/view_file.tmpl2
4 files changed, 16 insertions, 16 deletions
diff --git a/templates/repo/migrating.tmpl b/templates/repo/migrating.tmpl
index 34031d5653..0057325e91 100644
--- a/templates/repo/migrating.tmpl
+++ b/templates/repo/migrating.tmpl
@@ -9,7 +9,7 @@
<div class="ui stackable middle very relaxed page grid">
<div id="repo_migrating" class="sixteen wide center aligned centered column" repo="{{.Repo.Repository.FullName}}">
<div>
- <img src="{{AppSubUrl}}/img/loading.png"/>
+ <img src="{{StaticUrlPrefix}}/img/loading.png"/>
</div>
</div>
</div>
diff --git a/templates/repo/settings/webhook/list.tmpl b/templates/repo/settings/webhook/list.tmpl
index 8fdae45b1b..d1784564dc 100644
--- a/templates/repo/settings/webhook/list.tmpl
+++ b/templates/repo/settings/webhook/list.tmpl
@@ -6,25 +6,25 @@
<div class="ui blue tiny button">{{.i18n.Tr "repo.settings.add_webhook"}}</div>
<div class="menu">
<a class="item" href="{{.BaseLink}}/gitea/new">
- <img class="img-10" src="{{AppSubUrl}}/img/gitea-sm.png">Gitea
+ <img class="img-10" src="{{StaticUrlPrefix}}/img/gitea-sm.png">Gitea
</a>
<a class="item" href="{{.BaseLink}}/gogs/new">
- <img class="img-10" src="{{AppSubUrl}}/img/gogs.ico">Gogs
+ <img class="img-10" src="{{StaticUrlPrefix}}/img/gogs.ico">Gogs
</a>
<a class="item" href="{{.BaseLink}}/slack/new">
- <img class="img-10" src="{{AppSubUrl}}/img/slack.png">Slack
+ <img class="img-10" src="{{StaticUrlPrefix}}/img/slack.png">Slack
</a>
<a class="item" href="{{.BaseLink}}/discord/new">
- <img class="img-10" src="{{AppSubUrl}}/img/discord.png">Discord
+ <img class="img-10" src="{{StaticUrlPrefix}}/img/discord.png">Discord
</a>
<a class="item" href="{{.BaseLink}}/dingtalk/new">
- <img class="img-10" src="{{AppSubUrl}}/img/dingtalk.ico">Dingtalk
+ <img class="img-10" src="{{StaticUrlPrefix}}/img/dingtalk.ico">Dingtalk
</a>
<a class="item" href="{{.BaseLink}}/telegram/new">
- <img class="img-10" src="{{AppSubUrl}}/img/telegram.png">Telegram
+ <img class="img-10" src="{{StaticUrlPrefix}}/img/telegram.png">Telegram
</a>
<a class="item" href="{{.BaseLink}}/msteams/new">
- <img class="img-10" src="{{AppSubUrl}}/img/msteams.png">Microsoft Teams
+ <img class="img-10" src="{{StaticUrlPrefix}}/img/msteams.png">Microsoft Teams
</a>
</div>
</div>
diff --git a/templates/repo/settings/webhook/new.tmpl b/templates/repo/settings/webhook/new.tmpl
index 358827c0f8..1d5d849738 100644
--- a/templates/repo/settings/webhook/new.tmpl
+++ b/templates/repo/settings/webhook/new.tmpl
@@ -8,19 +8,19 @@
{{if .PageIsSettingsHooksNew}}{{.i18n.Tr "repo.settings.add_webhook"}}{{else}}{{.i18n.Tr "repo.settings.update_webhook"}}{{end}}
<div class="ui right">
{{if eq .HookType "gitea"}}
- <img class="img-13" src="{{AppSubUrl}}/img/gitea-sm.png">
+ <img class="img-13" src="{{StaticUrlPrefix}}/img/gitea-sm.png">
{{else if eq .HookType "gogs"}}
- <img class="img-13" src="{{AppSubUrl}}/img/gogs.ico">
+ <img class="img-13" src="{{StaticUrlPrefix}}/img/gogs.ico">
{{else if eq .HookType "slack"}}
- <img class="img-13" src="{{AppSubUrl}}/img/slack.png">
+ <img class="img-13" src="{{StaticUrlPrefix}}/img/slack.png">
{{else if eq .HookType "discord"}}
- <img class="img-13" src="{{AppSubUrl}}/img/discord.png">
+ <img class="img-13" src="{{StaticUrlPrefix}}/img/discord.png">
{{else if eq .HookType "dingtalk"}}
- <img class="img-13" src="{{AppSubUrl}}/img/dingtalk.ico">
+ <img class="img-13" src="{{StaticUrlPrefix}}/img/dingtalk.ico">
{{else if eq .HookType "telegram"}}
- <img class="img-13" src="{{AppSubUrl}}/img/telegram.png">
+ <img class="img-13" src="{{StaticUrlPrefix}}/img/telegram.png">
{{else if eq .HookType "msteams"}}
- <img class="img-13" src="{{AppSubUrl}}/img/msteams.png">
+ <img class="img-13" src="{{StaticUrlPrefix}}/img/msteams.png">
{{end}}
</div>
</h4>
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl
index e3d346db3e..e490fc123b 100644
--- a/templates/repo/view_file.tmpl
+++ b/templates/repo/view_file.tmpl
@@ -67,7 +67,7 @@
<strong>{{.i18n.Tr "repo.audio_not_supported_in_browser"}}</strong>
</audio>
{{else if .IsPDFFile}}
- <iframe width="100%" height="600px" src="{{AppSubUrl}}/vendor/plugins/pdfjs/web/viewer.html?file={{EscapePound $.RawFileLink}}"></iframe>
+ <iframe width="100%" height="600px" src="{{StaticUrlPrefix}}/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}}