aboutsummaryrefslogtreecommitdiffstats
path: root/templates/base
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2020-09-09 21:09:23 -0400
committerGitHub <noreply@github.com>2020-09-10 09:09:23 +0800
commit33ac0cc125b3f5031119e677775bf07d8c21419b (patch)
tree5d5a368873b8dfe31ba3ebb5d88467dddb734b25 /templates/base
parentfcc410c350db0241435856cfa8464a0ff01b3d0f (diff)
downloadgitea-33ac0cc125b3f5031119e677775bf07d8c21419b.tar.gz
gitea-33ac0cc125b3f5031119e677775bf07d8c21419b.zip
Set language via AJAX (#12785)
* Set language via AJAX * fix lint
Diffstat (limited to 'templates/base')
-rw-r--r--templates/base/footer_content.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/base/footer_content.tmpl b/templates/base/footer_content.tmpl
index b99a000894..ddd4f23649 100644
--- a/templates/base/footer_content.tmpl
+++ b/templates/base/footer_content.tmpl
@@ -10,9 +10,9 @@
<div class="ui language bottom floating slide up dropdown link item">
<i class="world icon"></i>
<div class="text">{{.LangName}}</div>
- <div class="menu">
+ <div class="menu language-menu">
{{range .AllLangs}}
- <a lang="{{.Lang}}" class="item {{if eq $.Lang .Lang}}active selected{{end}}" href="{{if eq $.Lang .Lang}}#{{else}}{{$.Link}}?lang={{.Lang}}{{end}}">{{.Name}}</a>
+ <a lang="{{.Lang}}" data-url="{{AppSubUrl}}/?lang={{.Lang}}" class="item {{if eq $.Lang .Lang}}active selected{{end}}">{{.Name}}</a>
{{end}}
</div>
</div>