Browse Source

UI compatibility

tags/v1.21.12.1
Unknwon 10 years ago
parent
commit
75cbb32b1e
10 changed files with 25 additions and 30 deletions
  1. +1
    -1
      conf/app.ini
  2. +0
    -0
      conf/locale/locale_fr-FR.ini
  3. +11
    -11
      modules/bindata/bindata.go
  4. +1
    -6
      modules/middleware/context.go
  5. +2
    -2
      templates/repo/issue/create.tmpl
  6. +2
    -2
      templates/repo/issue/list.tmpl
  7. +2
    -2
      templates/repo/issue/milestone.tmpl
  8. +2
    -2
      templates/repo/issue/milestone_edit.tmpl
  9. +2
    -2
      templates/repo/issue/milestone_new.tmpl
  10. +2
    -2
      templates/repo/issue/view.tmpl

+ 1
- 1
conf/app.ini View File

@@ -286,5 +286,5 @@ INTERVAL = 24
ARGS =

[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

conf/locale/locale_fr-CA.ini → conf/locale/locale_fr-FR.ini View File


+ 11
- 11
modules/bindata/bindata.go
File diff suppressed because it is too large
View File


+ 1
- 6
modules/middleware/context.go View File

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

ctx.Data["PageStartTime"] = time.Now()



+ 2
- 2
templates/repo/issue/create.tmpl View File

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

+ 2
- 2
templates/repo/issue/list.tmpl View File

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

+ 2
- 2
templates/repo/issue/milestone.tmpl View File

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

+ 2
- 2
templates/repo/issue/milestone_edit.tmpl View File

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

+ 2
- 2
templates/repo/issue/milestone_new.tmpl View File

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

+ 2
- 2
templates/repo/issue/view.tmpl View File

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

Loading…
Cancel
Save