From dfd494c113cfa2a25ee0c2f5a12c6403f24742a4 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 11 Jun 2018 21:06:24 +0800 Subject: repo: minor improve for PR #5219 and support UTF-8 byte count --- templates/.VERSION | 2 +- templates/base/footer.tmpl | 3 +++ templates/base/head.tmpl | 4 +--- templates/repo/create.tmpl | 11 +---------- templates/repo/settings/options.tmpl | 11 +---------- 5 files changed, 7 insertions(+), 24 deletions(-) (limited to 'templates') diff --git a/templates/.VERSION b/templates/.VERSION index 73c982eb..485ba71e 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.11.55.0609 \ No newline at end of file +0.11.56.0611 \ No newline at end of file diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index 46cb676e..68595568 100644 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -49,6 +49,9 @@ {{end}} +{{if .RequireAutosize}} + +{{end}} diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index a7579680..1c8aa8c1 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -41,9 +41,7 @@ - {{if .RequireAutosize}} - - {{end}} + {{if .IsIPythonNotebook}} diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 89fe133c..a7580d72 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -52,7 +52,7 @@
- + {{.i18n.Tr "repo.repo_description_helper" | Safe}} {{.i18n.Tr "repo.repo_description_length"}}:
@@ -116,13 +116,4 @@ - - {{template "base/footer" .}} diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 976c6b21..83966254 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -19,7 +19,7 @@
- +

{{.i18n.Tr "repo.settings.description_desc"}}

{{.i18n.Tr "repo.settings.description_length"}}:

@@ -417,13 +417,4 @@ {{end}} {{end}} - - {{template "base/footer" .}} -- cgit v1.2.3