diff options
author | Unknwon <u@gogs.io> | 2015-07-28 18:01:27 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-07-28 18:01:39 +0800 |
commit | ba47306a6987cf5357a08d55e5cab75a87d2b025 (patch) | |
tree | f1731e5e87c7c1e41b8b2f850f6e9ac5ae248740 | |
parent | 678700b74d1a091c34849d17ade78e2903c08bc9 (diff) | |
download | gitea-ba47306a6987cf5357a08d55e5cab75a87d2b025.tar.gz gitea-ba47306a6987cf5357a08d55e5cab75a87d2b025.zip |
fix #1305
-rw-r--r-- | cmd/web.go | 2 | ||||
-rw-r--r-- | templates/org/settings/options.tmpl | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/cmd/web.go b/cmd/web.go index b6d41c1aaf..90e8a7de91 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -85,7 +85,7 @@ func checkVersion() { {"github.com/macaron-contrib/csrf", csrf.Version, "0.0.3"}, {"github.com/macaron-contrib/i18n", i18n.Version, "0.0.7"}, {"github.com/macaron-contrib/session", session.Version, "0.1.6"}, - {"gopkg.in/ini.v1", ini.Version, "1.2.0"}, + {"gopkg.in/ini.v1", ini.Version, "1.3.4"}, } for _, c := range checkers { ver := strings.Join(strings.Split(c.Version(), ".")[:3], ".") diff --git a/templates/org/settings/options.tmpl b/templates/org/settings/options.tmpl index 86e52fcd82..6544fb4cea 100644 --- a/templates/org/settings/options.tmpl +++ b/templates/org/settings/options.tmpl @@ -46,12 +46,10 @@ <label for="location">{{.i18n.Tr "org.settings.location"}}</label> <input class="ipt ipt-large ipt-radius {{if .Err_Location}}ipt-error{{end}}" id="location" name="location" type="text" value="{{.Org.Location}}" /> </div> - {{if not DisableGravatar}} - <div class="field"> + <div class="field {{if DisableGravatar}}hide{{end}}"> <label for="gravatar-email">Gravatar {{.i18n.Tr "email"}}</label> <input class="ipt ipt-large ipt-radius {{if .Err_Avatar}}ipt-error{{end}}" id="gravatar-email" name="avatar" type="text" value="{{.Org.AvatarEmail}}" /> </div> - {{end}} <div class="field"> <span class="form-label"></span> <button class="btn btn-green btn-large btn-radius" id="change-orgname-btn" href="#change-orgname-modal">{{.i18n.Tr "org.settings.update_settings"}}</button> |