diff options
author | Unknwon <u@gogs.io> | 2015-07-25 00:49:40 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-07-25 00:49:40 +0800 |
commit | 54b58e988d4fac4a3f67feef39d62134352fb07c (patch) | |
tree | db32c6c6860f6b6bacb0c90c32a25b5a3b7c8002 /templates | |
parent | dc4aab9925b46f8ad4b18f7926e2904163c1c5b5 (diff) | |
parent | 70d44e9565e372c73d4f0f42273d4899e8e07f75 (diff) | |
download | gitea-54b58e988d4fac4a3f67feef39d62134352fb07c.tar.gz gitea-54b58e988d4fac4a3f67feef39d62134352fb07c.zip |
Merge branch 'develop' of github.com:gogits/gogs into feature/page_issues
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin/user/edit.tmpl | 4 | ||||
-rw-r--r-- | templates/base/head.tmpl | 1 | ||||
-rw-r--r-- | templates/base/head_old.tmpl | 1 | ||||
-rw-r--r-- | templates/install.tmpl | 4 | ||||
-rw-r--r-- | templates/ng/base/head.tmpl | 1 | ||||
-rw-r--r-- | templates/repo/view_file.tmpl | 5 |
6 files changed, 14 insertions, 2 deletions
diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl index bdc0e3343f..4f4cc727ab 100644 --- a/templates/admin/user/edit.tmpl +++ b/templates/admin/user/edit.tmpl @@ -33,6 +33,10 @@ <label class="text-left">{{.User.Name}}</label> </div> <div class="field"> + <label for="full-name">{{.i18n.Tr "settings.full_name"}}</label> + <input class="ipt ipt-large ipt-radius {{if .Err_FullName}}ipt-error{{end}}" id="full-name" name="fullname" type="text" value="{{.User.FullName}}" /> + </div> + <div class="field"> <label class="req" for="email">{{.i18n.Tr "email"}}</label> <input class="ipt ipt-large ipt-radius {{if .Err_Email}}ipt-error{{end}}" id="email" name="email" type="email" value="{{.User.Email}}" required/> </div> diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index cdd9da4106..9c05b02a9b 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -6,6 +6,7 @@ <meta name="author" content="Gogs - Go Git Service" /> <meta name="description" content="Gogs(Go Git Service) a painless self-hosted Git Service written in Go" /> <meta name="keywords" content="go, git, self-hosted, gogs"> + <meta name="referrer" content="no-referrer" /> <meta name="_csrf" content="{{.CsrfToken}}" /> {{if .GoGetImport}} <meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}"> diff --git a/templates/base/head_old.tmpl b/templates/base/head_old.tmpl index e04fe2e1a7..fc2a86788d 100644 --- a/templates/base/head_old.tmpl +++ b/templates/base/head_old.tmpl @@ -8,6 +8,7 @@ <meta name="author" content="Gogs - Go Git Service" /> <meta name="description" content="Gogs(Go Git Service) is a GitHub-like clone in the Go Programming Language" /> <meta name="keywords" content="go, git"> + <meta name="referrer" content="no-referrer" /> <meta name="_csrf" content="{{.CsrfToken}}" /> {{if .GoGetImport}}<meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">{{end}} diff --git a/templates/install.tmpl b/templates/install.tmpl index 01c2224a45..d82a1e4083 100644 --- a/templates/install.tmpl +++ b/templates/install.tmpl @@ -185,7 +185,7 @@ </div> <div class="inline field {{if .Err_AdminPasswd}}error{{end}}"> <label for="admin_passwd">{{.i18n.Tr "install.admin_password"}}</label> - <input id="admin_passwd" name="admin_passwd" value="{{.admin_passwd}}"> + <input id="admin_passwd" name="admin_passwd" type="password" value="{{.admin_passwd}}"> </div> <div class="inline field {{if .Err_AdminPasswd}}error{{end}}"> <label for="admin_confirm_passwd">{{.i18n.Tr "install.confirm_password"}}</label> @@ -208,4 +208,4 @@ </div> </div> </div> -{{template "base/footer" .}}
\ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/ng/base/head.tmpl b/templates/ng/base/head.tmpl index f2a235bd43..6d5001a9cb 100644 --- a/templates/ng/base/head.tmpl +++ b/templates/ng/base/head.tmpl @@ -6,6 +6,7 @@ <meta name="author" content="Gogs - Go Git Service" /> <meta name="description" content="Gogs(Go Git Service) a painless self-hosted Git Service written in Go" /> <meta name="keywords" content="go, git, self-hosted, gogs"> + <meta name="referrer" content="no-referrer" /> <meta name="_csrf" content="{{.CsrfToken}}" /> {{if .GoGetImport}}<meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">{{end}} diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index d33cc95023..4d11170bd0 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -12,6 +12,11 @@ <strong class="file-name">{{.FileName}}</strong><span class="file-size">{{FileSize .FileSize}}</span> {{end}} {{if not .ReadmeInList}} + {{if not .IsCommit}} + <a class="right" href="{{.RepoLink}}/src/{{.CommitId}}/{{.TreeName}}"> + <button class="btn btn-medium btn-gray btn-right-radius btn-comb">{{.i18n.Tr "repo.file_permalink"}}</button> + </a> + {{end}} <a class="right" href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}/{{.TreeName}}"> <button class="btn btn-medium btn-gray btn-right-radius btn-comb">{{.i18n.Tr "repo.file_history"}}</button> </a> |