UI compatibility

This commit is contained in:
Unknwon 2015-03-21 09:24:59 -04:00
parent b6f8b486c7
commit 75cbb32b1e
10 changed files with 25 additions and 30 deletions

View file

@ -286,5 +286,5 @@ INTERVAL = 24
ARGS = ARGS =
[i18n] [i18n]
LANGS = en-US,zh-CN,zh-HK,de-DE,fr-CA,nl-NL,lv-LV,ru-RU,ja-JP,es-ES,pt-BR LANGS = en-US,zh-CN,zh-HK,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,ja-JP,es-ES,pt-BR
NAMES = English,简体中文,繁體中文,Deutsch,Français,Nederlands,Latviešu,Русский,日本语,Español,Português NAMES = English,简体中文,繁體中文,Deutsch,Français,Nederlands,Latviešu,Русский,日本语,Español,Português

File diff suppressed because one or more lines are too long

View file

@ -180,12 +180,7 @@ func Contexter() macaron.Handler {
Session: sess, Session: sess,
} }
// Compute current URL for real-time change language. // Compute current URL for real-time change language.
link := setting.AppSubUrl + ctx.Req.RequestURI ctx.Data["Link"] = setting.AppSubUrl + ctx.Req.URL.Path
i := strings.Index(link, "?")
if i > -1 {
link = link[:i]
}
ctx.Data["Link"] = link
ctx.Data["PageStartTime"] = time.Now() ctx.Data["PageStartTime"] = time.Now()

View file

@ -1,4 +1,4 @@
{{template "base/head" .}} {{template "base/head_old" .}}
{{template "base/navbar" .}} {{template "base/navbar" .}}
{{template "repo/nav" .}} {{template "repo/nav" .}}
{{template "repo/toolbar" .}} {{template "repo/toolbar" .}}
@ -123,4 +123,4 @@
</form> </form>
</div> </div>
</div> </div>
{{template "base/footer" .}} {{template "base/footer_old" .}}

View file

@ -1,4 +1,4 @@
{{template "base/head" .}} {{template "base/head_old" .}}
{{template "base/navbar" .}} {{template "base/navbar" .}}
{{template "repo/nav" .}} {{template "repo/nav" .}}
{{template "repo/toolbar" .}} {{template "repo/toolbar" .}}
@ -117,4 +117,4 @@
}); });
}); });
</script> </script>
{{template "base/footer" .}} {{template "base/footer_old" .}}

View file

@ -1,4 +1,4 @@
{{template "base/head" .}} {{template "base/head_old" .}}
{{template "base/navbar" .}} {{template "base/navbar" .}}
{{template "repo/nav" .}} {{template "repo/nav" .}}
{{template "repo/toolbar" .}} {{template "repo/toolbar" .}}
@ -40,4 +40,4 @@
</div> </div>
</div> </div>
</div> </div>
{{template "base/footer" .}} {{template "base/footer_old" .}}

View file

@ -1,4 +1,4 @@
{{template "base/head" .}} {{template "base/head_old" .}}
{{template "base/navbar" .}} {{template "base/navbar" .}}
{{template "repo/nav" .}} {{template "repo/nav" .}}
{{template "repo/toolbar" .}} {{template "repo/toolbar" .}}
@ -58,4 +58,4 @@
}); });
}); });
</script> </script>
{{template "base/footer" .}} {{template "base/footer_old" .}}

View file

@ -1,4 +1,4 @@
{{template "base/head" .}} {{template "base/head_old" .}}
{{template "base/navbar" .}} {{template "base/navbar" .}}
{{template "repo/nav" .}} {{template "repo/nav" .}}
{{template "repo/toolbar" .}} {{template "repo/toolbar" .}}
@ -59,4 +59,4 @@
}); });
}); });
</script> </script>
{{template "base/footer" .}} {{template "base/footer_old" .}}

View file

@ -1,4 +1,4 @@
{{template "base/head" .}} {{template "base/head_old" .}}
{{template "base/navbar" .}} {{template "base/navbar" .}}
{{template "repo/nav" .}} {{template "repo/nav" .}}
{{template "repo/toolbar" .}} {{template "repo/toolbar" .}}
@ -279,4 +279,4 @@
</div> </div>
</div> </div>
</div> </div>
{{template "base/footer" .}} {{template "base/footer_old" .}}