From da2585c11e11023ffa7a8c69d21c6fecac520a8e Mon Sep 17 00:00:00 2001 From: Adam Strzelecki Date: Mon, 7 Dec 2015 23:30:52 +0100 Subject: [PATCH] Indent all templates with tabs This commit improves templates readability, since all of them use consistent indent with all template command blocks indented too. 1. Indents both HTML containers such as
,

and Go HTML template blocks such as {{if}} {{with}} 2. Cleans all trailing white-space 3. Adds trailing last line-break to each file --- templates/admin/auth/edit.tmpl | 304 +++++------ templates/admin/auth/list.tmpl | 82 +-- templates/admin/auth/new.tmpl | 296 +++++----- templates/admin/config.tmpl | 374 ++++++------- templates/admin/dashboard.tmpl | 234 ++++---- templates/admin/monitor.tmpl | 122 ++--- templates/admin/nav.tmpl | 28 +- templates/admin/navbar.tmpl | 50 +- templates/admin/notice.tmpl | 192 +++---- templates/admin/org/list.tmpl | 106 ++-- templates/admin/repo/list.tmpl | 94 ++-- templates/admin/user/edit.tmpl | 188 +++---- templates/admin/user/list.tmpl | 132 ++--- templates/admin/user/new.tmpl | 122 ++--- templates/base/alert.tmpl | 20 +- templates/base/delete_modal_actions.tmpl | 18 +- templates/base/footer.tmpl | 49 +- templates/base/head.tmpl | 201 +++---- templates/explore/navbar.tmpl | 2 +- templates/explore/repo_list.tmpl | 42 +- templates/explore/repos.tmpl | 40 +- templates/home.tmpl | 232 ++++---- templates/install.tmpl | 414 +++++++------- templates/mail/auth/activate.tmpl | 16 +- templates/mail/auth/activate_email.tmpl | 18 +- templates/mail/auth/register_notify.tmpl | 14 +- templates/mail/auth/reset_passwd.tmpl | 18 +- templates/mail/notify/collaborator.tmpl | 16 +- templates/mail/notify/mention.tmpl | 18 +- templates/org/create.tmpl | 52 +- templates/org/header.tmpl | 40 +- templates/org/home.tmpl | 154 +++--- templates/org/member/invite.tmpl | 30 +- templates/org/member/members.tmpl | 92 ++-- templates/org/settings/delete.tmpl | 74 +-- templates/org/settings/hook_new.tmpl | 48 +- templates/org/settings/hooks.tmpl | 14 +- templates/org/settings/navbar.tmpl | 18 +- templates/org/settings/options.tmpl | 104 ++-- templates/org/team/members.tmpl | 64 +-- templates/org/team/new.tmpl | 150 ++--- templates/org/team/repositories.tmpl | 62 +-- templates/org/team/sidebar.tmpl | 80 +-- templates/org/team/teams.tmpl | 56 +- templates/repo/bare.tmpl | 98 ++-- templates/repo/commits.tmpl | 8 +- templates/repo/commits_table.tmpl | 124 ++--- templates/repo/create.tmpl | 218 ++++---- templates/repo/diff.tmpl | 82 +-- templates/repo/diff_box.tmpl | 180 +++--- templates/repo/forks.tmpl | 36 +- templates/repo/header.tmpl | 162 +++--- templates/repo/home.tmpl | 216 ++++---- templates/repo/issue/comment_tab.tmpl | 26 +- templates/repo/issue/label_precolors.tmpl | 2 +- templates/repo/issue/labels.tmpl | 126 ++--- templates/repo/issue/list.tmpl | 164 +++--- templates/repo/issue/milestone_new.tmpl | 88 +-- templates/repo/issue/milestones.tmpl | 180 +++--- templates/repo/issue/navbar.tmpl | 6 +- templates/repo/issue/new.tmpl | 2 +- templates/repo/issue/new_form.tmpl | 118 ++-- templates/repo/issue/view.tmpl | 18 +- templates/repo/issue/view_content.tmpl | 516 +++++++++--------- templates/repo/issue/view_title.tmpl | 52 +- templates/repo/migrate.tmpl | 158 +++--- templates/repo/pulls/commits.tmpl | 6 +- templates/repo/pulls/compare.tmpl | 80 +-- templates/repo/pulls/files.tmpl | 6 +- templates/repo/pulls/fork.tmpl | 110 ++-- templates/repo/pulls/tab_menu.tmpl | 32 +- templates/repo/release/list.tmpl | 154 +++--- templates/repo/release/new.tmpl | 184 +++---- templates/repo/settings/collaboration.tmpl | 60 +- templates/repo/settings/deploy_keys.tmpl | 94 ++-- templates/repo/settings/githook_edit.tmpl | 40 +- templates/repo/settings/githooks.tmpl | 30 +- .../repo/settings/hook_delete_modal.tmpl | 36 +- templates/repo/settings/hook_gogs.tmpl | 52 +- templates/repo/settings/hook_history.tmpl | 128 ++--- templates/repo/settings/hook_list.tmpl | 74 +-- templates/repo/settings/hook_new.tmpl | 24 +- templates/repo/settings/hook_settings.tmpl | 102 ++-- templates/repo/settings/hook_slack.tmpl | 50 +- templates/repo/settings/hooks.tmpl | 4 +- templates/repo/settings/nav.tmpl | 26 +- templates/repo/settings/navbar.tmpl | 34 +- templates/repo/settings/options.tmpl | 300 +++++----- templates/repo/view_file.tmpl | 98 ++-- templates/repo/view_list.tmpl | 104 ++-- templates/repo/watchers.tmpl | 104 ++-- templates/repo/wiki/new.tmpl | 60 +- templates/repo/wiki/pages.tmpl | 44 +- templates/repo/wiki/start.tmpl | 20 +- templates/repo/wiki/view.tmpl | 128 ++--- templates/status/404.tmpl | 10 +- templates/status/500.tmpl | 10 +- templates/user/auth/activate.tmpl | 68 +-- templates/user/auth/forgot_passwd.tmpl | 60 +- templates/user/auth/reset_passwd.tmpl | 54 +- templates/user/auth/signin.tmpl | 78 +-- templates/user/auth/signup.tmpl | 104 ++-- templates/user/dashboard/dashboard.tmpl | 218 ++++---- templates/user/dashboard/feeds.tmpl | 136 ++--- templates/user/dashboard/issues.tmpl | 164 +++--- templates/user/dashboard/navbar.tmpl | 94 ++-- templates/user/profile.tmpl | 132 ++--- templates/user/settings/applications.tmpl | 158 +++--- templates/user/settings/delete.tmpl | 72 +-- templates/user/settings/email.tmpl | 128 ++--- templates/user/settings/navbar.tmpl | 36 +- templates/user/settings/password.tmpl | 64 +-- templates/user/settings/profile.tmpl | 126 ++--- templates/user/settings/sshkeys.tmpl | 154 +++--- 114 files changed, 5559 insertions(+), 5551 deletions(-) diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index e1d1d7660a..5c99af3a38 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -1,164 +1,164 @@ {{template "base/head" .}}

-
-
- {{template "admin/navbar" .}} -
- {{template "base/alert" .}} -

- {{.i18n.Tr "admin.auths.edit"}} -

-
-
- {{.CsrfTokenHtml}} - -
- - - {{.Source.TypeName}} -
-
- - -
+
+
+ {{template "admin/navbar" .}} +
+ {{template "base/alert" .}} +

+ {{.i18n.Tr "admin.auths.edit"}} +

+
+ + {{.CsrfTokenHtml}} + +
+ + + {{.Source.TypeName}} +
+
+ + +
- - {{if or .Source.IsLDAP .Source.IsDLDAP}} - {{ $cfg:=.Source.LDAP }} -
- - -
-
- - -
- {{if .Source.IsLDAP}} -
- - -
- -
- - -

{{.i18n.Tr "admin.auths.bind_password_helper"}}

-
-
- - -
- {{end}} - {{if .Source.IsDLDAP}} -
- - -
- {{end}} -
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
- {{end}} + + {{if or .Source.IsLDAP .Source.IsDLDAP}} + {{ $cfg:=.Source.LDAP }} +
+ + +
+
+ + +
+ {{if .Source.IsLDAP}} +
+ + +
+ +
+ + +

{{.i18n.Tr "admin.auths.bind_password_helper"}}

+
+
+ + +
+ {{end}} + {{if .Source.IsDLDAP}} +
+ + +
+ {{end}} +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ {{end}} - - {{if .Source.IsSMTP}} - {{ $cfg:=.Source.SMTP }} -
- - -
-
- - -
-
- - -
-
- - -

{{.i18n.Tr "admin.auths.allowed_domains_helper"}}

-
- {{end}} + + {{if .Source.IsSMTP}} + {{ $cfg:=.Source.SMTP }} +
+ + +
+
+ + +
+
+ + +
+
+ + +

{{.i18n.Tr "admin.auths.allowed_domains_helper"}}

+
+ {{end}} - - {{if .Source.IsPAM}} - {{ $cfg:=.Source.PAM }} -
- - -
- {{end}} + + {{if .Source.IsPAM}} + {{ $cfg:=.Source.PAM }} +
+ + +
+ {{end}} -
-
- - -
-
-
-
- - -
-
-
-
- - -
-
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
-
- -
{{.i18n.Tr "admin.auths.delete"}}
-
- -
-
-
-
+
+ +
{{.i18n.Tr "admin.auths.delete"}}
+
+ +
+
+
+
{{template "base/footer" .}} diff --git a/templates/admin/auth/list.tmpl b/templates/admin/auth/list.tmpl index 72e32c6f2b..58bdc66b2c 100644 --- a/templates/admin/auth/list.tmpl +++ b/templates/admin/auth/list.tmpl @@ -1,46 +1,46 @@ {{template "base/head" .}}
-
-
- {{template "admin/navbar" .}} -
- {{template "base/alert" .}} -

- {{.i18n.Tr "admin.auths.auth_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}}) - -

-
- - - - - - - - - - - - - - {{range .Sources}} - - - - - - - - - - {{end}} - -
ID{{.i18n.Tr "admin.auths.name"}}{{.i18n.Tr "admin.auths.type"}}{{.i18n.Tr "admin.auths.enabled"}}{{.i18n.Tr "admin.auths.updated"}}{{.i18n.Tr "admin.users.created"}}{{.i18n.Tr "admin.users.edit"}}
{{.ID}}{{.Name}}{{.TypeName}}{{DateFmtShort .Updated}}{{DateFmtShort .Created}}
+
+
+ {{template "admin/navbar" .}} +
+ {{template "base/alert" .}} +

+ {{.i18n.Tr "admin.auths.auth_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}}) + +

+
+ + + + + + + + + + + + + + {{range .Sources}} + + + + + + + + + + {{end}} + +
ID{{.i18n.Tr "admin.auths.name"}}{{.i18n.Tr "admin.auths.type"}}{{.i18n.Tr "admin.auths.enabled"}}{{.i18n.Tr "admin.auths.updated"}}{{.i18n.Tr "admin.users.created"}}{{.i18n.Tr "admin.users.edit"}}
{{.ID}}{{.Name}}{{.TypeName}}{{DateFmtShort .Updated}}{{DateFmtShort .Created}}
-
-
+
+
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/admin/auth/new.tmpl b/templates/admin/auth/new.tmpl index 448a4ab64a..481d0c6829 100644 --- a/templates/admin/auth/new.tmpl +++ b/templates/admin/auth/new.tmpl @@ -1,159 +1,159 @@ {{template "base/head" .}}
-
-
- {{template "admin/navbar" .}} -
- {{template "base/alert" .}} -

- {{.i18n.Tr "admin.auths.new"}} -

-
-
- {{.CsrfTokenHtml}} - -
- - -
-
- - -
+
+
+ {{template "admin/navbar" .}} +
+ {{template "base/alert" .}} +

+ {{.i18n.Tr "admin.auths.new"}} +

+
+ + {{.CsrfTokenHtml}} + +
+ + +
+
+ + +
- -
-
- - -
-
- - -
-
- - -
- -
- - -

{{.i18n.Tr "admin.auths.bind_password_helper"}}

-
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
+ +
+
+ + +
+
+ + +
+
+ + +
+ +
+ + +

{{.i18n.Tr "admin.auths.bind_password_helper"}}

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
- -
-
- - -
-
- - -
-
- - -
-
- - -

{{.i18n.Tr "admin.auths.allowed_domains_helper"}}

-
-
+ +
+
+ + +
+
+ + +
+
+ + +
+
+ + +

{{.i18n.Tr "admin.auths.allowed_domains_helper"}}

+
+
- -
- - -
+ +
+ + +
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
-
- -
- -
+
+ +
+ +
-

- {{.i18n.Tr "admin.auths.tips"}} -

-
-
GMail Setting:
-

Host: smtp.gmail.com, Post: 587, Enable TLS Encryption: true

-
-
-
+

+ {{.i18n.Tr "admin.auths.tips"}} +

+
+
GMail Setting:
+

Host: smtp.gmail.com, Post: 587, Enable TLS Encryption: true

+
+
+
{{template "base/footer" .}} diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index 1a4efa8f1c..0738f18b0c 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -1,190 +1,190 @@ {{template "base/head" .}}
-
-
- {{template "admin/navbar" .}} -
- {{template "base/alert" .}} -

- {{.i18n.Tr "admin.config.server_config"}} -

-
-
-
{{.i18n.Tr "admin.config.app_name"}}
-
{{AppName}}
-
{{.i18n.Tr "admin.config.app_ver"}}
-
{{AppVer}}
-
{{.i18n.Tr "admin.config.app_url"}}
-
{{.AppUrl}}
-
{{.i18n.Tr "admin.config.domain"}}
-
{{.Domain}}
-
{{.i18n.Tr "admin.config.offline_mode"}}
-
-
{{.i18n.Tr "admin.config.disable_router_log"}}
-
-
-
{{.i18n.Tr "admin.config.run_user"}}
-
{{.RunUser}}
-
{{.i18n.Tr "admin.config.run_mode"}}
-
{{.RunMode}}
-
-
{{.i18n.Tr "admin.config.repo_root_path"}}
-
{{.RepoRootPath}}
-
{{.i18n.Tr "admin.config.static_file_root_path"}}
-
{{.StaticRootPath}}
-
{{.i18n.Tr "admin.config.log_file_root_path"}}
-
{{.LogRootPath}}
-
{{.i18n.Tr "admin.config.script_type"}}
-
{{.ScriptType}}
-
{{.i18n.Tr "admin.config.reverse_auth_user"}}
-
{{.ReverseProxyAuthUser}}
-
-
- -

- {{.i18n.Tr "admin.config.db_config"}} -

-
-
-
{{.i18n.Tr "admin.config.db_type"}}
-
{{.DbCfg.Type}}
-
{{.i18n.Tr "admin.config.db_host"}}
-
{{.DbCfg.Host}}
-
{{.i18n.Tr "admin.config.db_name"}}
-
{{.DbCfg.Name}}
-
{{.i18n.Tr "admin.config.db_user"}}
-
{{.DbCfg.User}}
-
{{.i18n.Tr "admin.config.db_ssl_mode"}}
-
{{.DbCfg.SSLMode}} {{.i18n.Tr "admin.config.db_ssl_mode_helper"}}
-
{{.i18n.Tr "admin.config.db_path"}}
-
{{.DbCfg.Path}} {{.i18n.Tr "admin.config.db_path_helper"}}
-
-
- -

- {{.i18n.Tr "admin.config.service_config"}} -

-
-
-
{{.i18n.Tr "admin.config.register_email_confirm"}}
-
-
{{.i18n.Tr "admin.config.disable_register"}}
-
-
{{.i18n.Tr "admin.config.show_registration_button"}}
-
-
{{.i18n.Tr "admin.config.require_sign_in_view"}}
-
-
{{.i18n.Tr "admin.config.enable_cache_avatar"}}
-
-
{{.i18n.Tr "admin.config.mail_notify"}}
-
-
{{.i18n.Tr "admin.config.disable_key_size_check"}}
-
-
{{.i18n.Tr "admin.config.enable_captcha"}}
-
-
-
{{.i18n.Tr "admin.config.active_code_lives"}}
-
{{.Service.ActiveCodeLives}} {{.i18n.Tr "tool.raw_minutes"}}
-
{{.i18n.Tr "admin.config.reset_password_code_lives"}}
-
{{.Service.ResetPwdCodeLives}} {{.i18n.Tr "tool.raw_minutes"}}
-
-
- -

- {{.i18n.Tr "admin.config.webhook_config"}} -

-
-
-
{{.i18n.Tr "admin.config.queue_length"}}
-
{{.Webhook.QueueLength}}
-
{{.i18n.Tr "admin.config.deliver_timeout"}}
-
{{.Webhook.DeliverTimeout}} {{.i18n.Tr "tool.raw_seconds"}}
-
{{.i18n.Tr "admin.config.skip_tls_verify"}}
-
-
-
- -

- {{.i18n.Tr "admin.config.mailer_config"}} -

-
-
-
{{.i18n.Tr "admin.config.mailer_enabled"}}
-
- {{if .MailerEnabled}}
{{.i18n.Tr "admin.config.mailer_name"}}
-
{{.Mailer.Name}}
-
{{.i18n.Tr "admin.config.mailer_disable_helo"}}
-
-
{{.i18n.Tr "admin.config.mailer_host"}}
-
{{.Mailer.Host}}
-
{{.i18n.Tr "admin.config.mailer_user"}}
-
{{.Mailer.User}}
{{end}} -
-
- -

- {{.i18n.Tr "admin.config.cache_config"}} -

-
-
-
{{.i18n.Tr "admin.config.cache_adapter"}}
-
{{.CacheAdapter}}
-
{{.i18n.Tr "admin.config.cache_interval"}}
-
{{.CacheInternal}} {{.i18n.Tr "tool.raw_seconds"}}
-
{{.i18n.Tr "admin.config.cache_conn"}}
-
{{.CacheConn}}
-
-
- -

- {{.i18n.Tr "admin.config.session_config"}} -

-
-
-
{{.i18n.Tr "admin.config.session_provider"}}
-
{{.SessionConfig.Provider}}
-
{{.i18n.Tr "admin.config.provider_config"}}
-
{{.SessionConfig.ProviderConfig}}
-
{{.i18n.Tr "admin.config.cookie_name"}}
-
{{.SessionConfig.CookieName}}
-
{{.i18n.Tr "admin.config.gc_interval_time"}}
-
{{.SessionConfig.Gclifetime}} {{.i18n.Tr "tool.raw_seconds"}}
-
{{.i18n.Tr "admin.config.session_life_time"}}
-
{{.SessionConfig.Maxlifetime}} {{.i18n.Tr "tool.raw_seconds"}}
-
{{.i18n.Tr "admin.config.https_only"}}
-
-
{{.i18n.Tr "admin.config.cookie_life_time"}}
-
{{.SessionConfig.CookieLifeTime}} {{.i18n.Tr "tool.raw_seconds"}}
-
-
- -

- {{.i18n.Tr "admin.config.picture_config"}} -

-
-
-
{{.i18n.Tr "admin.config.picture_service"}}
-
{{.PictureService}}
-
{{.i18n.Tr "admin.config.disable_gravatar"}}
-
-
-
- -

- {{.i18n.Tr "admin.config.log_config"}} -

-
-
- {{range .Loggers}} -
{{$.i18n.Tr "admin.config.log_mode"}}
-
{{.Mode}}
-
{{$.i18n.Tr "admin.config.log_config"}}
-
{{.Config}}
- {{end}} -
-
-
-
-
+
+
+ {{template "admin/navbar" .}} +
+ {{template "base/alert" .}} +

+ {{.i18n.Tr "admin.config.server_config"}} +

+
+
+
{{.i18n.Tr "admin.config.app_name"}}
+
{{AppName}}
+
{{.i18n.Tr "admin.config.app_ver"}}
+
{{AppVer}}
+
{{.i18n.Tr "admin.config.app_url"}}
+
{{.AppUrl}}
+
{{.i18n.Tr "admin.config.domain"}}
+
{{.Domain}}
+
{{.i18n.Tr "admin.config.offline_mode"}}
+
+
{{.i18n.Tr "admin.config.disable_router_log"}}
+
+
+
{{.i18n.Tr "admin.config.run_user"}}
+
{{.RunUser}}
+
{{.i18n.Tr "admin.config.run_mode"}}
+
{{.RunMode}}
+
+
{{.i18n.Tr "admin.config.repo_root_path"}}
+
{{.RepoRootPath}}
+
{{.i18n.Tr "admin.config.static_file_root_path"}}
+
{{.StaticRootPath}}
+
{{.i18n.Tr "admin.config.log_file_root_path"}}
+
{{.LogRootPath}}
+
{{.i18n.Tr "admin.config.script_type"}}
+
{{.ScriptType}}
+
{{.i18n.Tr "admin.config.reverse_auth_user"}}
+
{{.ReverseProxyAuthUser}}
+
+
+ +

+ {{.i18n.Tr "admin.config.db_config"}} +

+
+
+
{{.i18n.Tr "admin.config.db_type"}}
+
{{.DbCfg.Type}}
+
{{.i18n.Tr "admin.config.db_host"}}
+
{{.DbCfg.Host}}
+
{{.i18n.Tr "admin.config.db_name"}}
+
{{.DbCfg.Name}}
+
{{.i18n.Tr "admin.config.db_user"}}
+
{{.DbCfg.User}}
+
{{.i18n.Tr "admin.config.db_ssl_mode"}}
+
{{.DbCfg.SSLMode}} {{.i18n.Tr "admin.config.db_ssl_mode_helper"}}
+
{{.i18n.Tr "admin.config.db_path"}}
+
{{.DbCfg.Path}} {{.i18n.Tr "admin.config.db_path_helper"}}
+
+
+ +

+ {{.i18n.Tr "admin.config.service_config"}} +

+
+
+
{{.i18n.Tr "admin.config.register_email_confirm"}}
+
+
{{.i18n.Tr "admin.config.disable_register"}}
+
+
{{.i18n.Tr "admin.config.show_registration_button"}}
+
+
{{.i18n.Tr "admin.config.require_sign_in_view"}}
+
+
{{.i18n.Tr "admin.config.enable_cache_avatar"}}
+
+
{{.i18n.Tr "admin.config.mail_notify"}}
+
+
{{.i18n.Tr "admin.config.disable_key_size_check"}}
+
+
{{.i18n.Tr "admin.config.enable_captcha"}}
+
+
+
{{.i18n.Tr "admin.config.active_code_lives"}}
+
{{.Service.ActiveCodeLives}} {{.i18n.Tr "tool.raw_minutes"}}
+
{{.i18n.Tr "admin.config.reset_password_code_lives"}}
+
{{.Service.ResetPwdCodeLives}} {{.i18n.Tr "tool.raw_minutes"}}
+
+
+ +

+ {{.i18n.Tr "admin.config.webhook_config"}} +

+
+
+
{{.i18n.Tr "admin.config.queue_length"}}
+
{{.Webhook.QueueLength}}
+
{{.i18n.Tr "admin.config.deliver_timeout"}}
+
{{.Webhook.DeliverTimeout}} {{.i18n.Tr "tool.raw_seconds"}}
+
{{.i18n.Tr "admin.config.skip_tls_verify"}}
+
+
+
+ +

+ {{.i18n.Tr "admin.config.mailer_config"}} +

+
+
+
{{.i18n.Tr "admin.config.mailer_enabled"}}
+
+ {{if .MailerEnabled}}
{{.i18n.Tr "admin.config.mailer_name"}}
+
{{.Mailer.Name}}
+
{{.i18n.Tr "admin.config.mailer_disable_helo"}}
+
+
{{.i18n.Tr "admin.config.mailer_host"}}
+
{{.Mailer.Host}}
+
{{.i18n.Tr "admin.config.mailer_user"}}
+
{{.Mailer.User}}
{{end}} +
+
+ +

+ {{.i18n.Tr "admin.config.cache_config"}} +

+
+
+
{{.i18n.Tr "admin.config.cache_adapter"}}
+
{{.CacheAdapter}}
+
{{.i18n.Tr "admin.config.cache_interval"}}
+
{{.CacheInternal}} {{.i18n.Tr "tool.raw_seconds"}}
+
{{.i18n.Tr "admin.config.cache_conn"}}
+
{{.CacheConn}}
+
+
+ +

+ {{.i18n.Tr "admin.config.session_config"}} +

+
+
+
{{.i18n.Tr "admin.config.session_provider"}}
+
{{.SessionConfig.Provider}}
+
{{.i18n.Tr "admin.config.provider_config"}}
+
{{.SessionConfig.ProviderConfig}}
+
{{.i18n.Tr "admin.config.cookie_name"}}
+
{{.SessionConfig.CookieName}}
+
{{.i18n.Tr "admin.config.gc_interval_time"}}
+
{{.SessionConfig.Gclifetime}} {{.i18n.Tr "tool.raw_seconds"}}
+
{{.i18n.Tr "admin.config.session_life_time"}}
+
{{.SessionConfig.Maxlifetime}} {{.i18n.Tr "tool.raw_seconds"}}
+
{{.i18n.Tr "admin.config.https_only"}}
+
+
{{.i18n.Tr "admin.config.cookie_life_time"}}
+
{{.SessionConfig.CookieLifeTime}} {{.i18n.Tr "tool.raw_seconds"}}
+
+
+ +

+ {{.i18n.Tr "admin.config.picture_config"}} +

+
+
+
{{.i18n.Tr "admin.config.picture_service"}}
+
{{.PictureService}}
+
{{.i18n.Tr "admin.config.disable_gravatar"}}
+
+
+
+ +

+ {{.i18n.Tr "admin.config.log_config"}} +

+
+
+ {{range .Loggers}} +
{{$.i18n.Tr "admin.config.log_mode"}}
+
{{.Mode}}
+
{{$.i18n.Tr "admin.config.log_config"}}
+
{{.Config}}
+ {{end}} +
+
+
+
+
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl index 769375ecb8..8a0eedc21c 100644 --- a/templates/admin/dashboard.tmpl +++ b/templates/admin/dashboard.tmpl @@ -1,121 +1,121 @@ {{template "base/head" .}}
-
-
- {{template "admin/navbar" .}} -
- {{template "base/alert" .}} -

- {{.i18n.Tr "admin.dashboard.statistic"}} -

-
-

- {{.i18n.Tr "admin.dashboard.statistic_info" .Stats.Counter.User .Stats.Counter.Org .Stats.Counter.PublicKey .Stats.Counter.Repo .Stats.Counter.Watch .Stats.Counter.Star .Stats.Counter.Action .Stats.Counter.Access .Stats.Counter.Issue .Stats.Counter.Comment .Stats.Counter.Oauth .Stats.Counter.Follow .Stats.Counter.Mirror .Stats.Counter.Release .Stats.Counter.LoginSource .Stats.Counter.Webhook .Stats.Counter.Milestone .Stats.Counter.Label .Stats.Counter.HookTask .Stats.Counter.Team .Stats.Counter.UpdateTask .Stats.Counter.Attachment | Str2html}} -

-
-

- {{.i18n.Tr "admin.dashboard.operations"}} -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
{{.i18n.Tr "admin.dashboard.delete_inactivate_accounts"}} {{.i18n.Tr "admin.dashboard.operation_run"}}
{{.i18n.Tr "admin.dashboard.delete_repo_archives"}} {{.i18n.Tr "admin.dashboard.operation_run"}}
{{.i18n.Tr "admin.dashboard.delete_missing_repos"}} {{.i18n.Tr "admin.dashboard.operation_run"}}
{{.i18n.Tr "admin.dashboard.git_gc_repos"}} {{.i18n.Tr "admin.dashboard.operation_run"}}
{{.i18n.Tr "admin.dashboard.resync_all_sshkeys"}} {{.i18n.Tr "admin.dashboard.operation_run"}}
{{.i18n.Tr "admin.dashboard.resync_all_update_hooks"}} {{.i18n.Tr "admin.dashboard.operation_run"}}
-
+
+
+ {{template "admin/navbar" .}} +
+ {{template "base/alert" .}} +

+ {{.i18n.Tr "admin.dashboard.statistic"}} +

+
+

+ {{.i18n.Tr "admin.dashboard.statistic_info" .Stats.Counter.User .Stats.Counter.Org .Stats.Counter.PublicKey .Stats.Counter.Repo .Stats.Counter.Watch .Stats.Counter.Star .Stats.Counter.Action .Stats.Counter.Access .Stats.Counter.Issue .Stats.Counter.Comment .Stats.Counter.Oauth .Stats.Counter.Follow .Stats.Counter.Mirror .Stats.Counter.Release .Stats.Counter.LoginSource .Stats.Counter.Webhook .Stats.Counter.Milestone .Stats.Counter.Label .Stats.Counter.HookTask .Stats.Counter.Team .Stats.Counter.UpdateTask .Stats.Counter.Attachment | Str2html}} +

+
+

+ {{.i18n.Tr "admin.dashboard.operations"}} +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
{{.i18n.Tr "admin.dashboard.delete_inactivate_accounts"}} {{.i18n.Tr "admin.dashboard.operation_run"}}
{{.i18n.Tr "admin.dashboard.delete_repo_archives"}} {{.i18n.Tr "admin.dashboard.operation_run"}}
{{.i18n.Tr "admin.dashboard.delete_missing_repos"}} {{.i18n.Tr "admin.dashboard.operation_run"}}
{{.i18n.Tr "admin.dashboard.git_gc_repos"}} {{.i18n.Tr "admin.dashboard.operation_run"}}
{{.i18n.Tr "admin.dashboard.resync_all_sshkeys"}} {{.i18n.Tr "admin.dashboard.operation_run"}}
{{.i18n.Tr "admin.dashboard.resync_all_update_hooks"}} {{.i18n.Tr "admin.dashboard.operation_run"}}
+
-

- {{.i18n.Tr "admin.dashboard.system_status"}} -

-
-
-
{{.i18n.Tr "admin.dashboard.server_uptime"}}
-
{{.SysStatus.Uptime}}
-
{{.i18n.Tr "admin.dashboard.current_goroutine"}}
-
{{.SysStatus.NumGoroutine}}
-
-
{{.i18n.Tr "admin.dashboard.current_memory_usage"}}
-
{{.SysStatus.MemAllocated}}
-
{{.i18n.Tr "admin.dashboard.total_memory_allocated"}}
-
{{.SysStatus.MemTotal}}
-
{{.i18n.Tr "admin.dashboard.memory_obtained"}}
-
{{.SysStatus.MemSys}}
-
{{.i18n.Tr "admin.dashboard.pointer_lookup_times"}}
-
{{.SysStatus.Lookups}}
-
{{.i18n.Tr "admin.dashboard.memory_allocate_times"}}
-
{{.SysStatus.MemMallocs}}
-
{{.i18n.Tr "admin.dashboard.memory_free_times"}}
-
{{.SysStatus.MemFrees}}
-
-
{{.i18n.Tr "admin.dashboard.current_heap_usage"}}
-
{{.SysStatus.HeapAlloc}}
-
{{.i18n.Tr "admin.dashboard.heap_memory_obtained"}}
-
{{.SysStatus.HeapSys}}
-
{{.i18n.Tr "admin.dashboard.heap_memory_idle"}}
-
{{.SysStatus.HeapIdle}}
-
{{.i18n.Tr "admin.dashboard.heap_memory_in_use"}}
-
{{.SysStatus.HeapInuse}}
-
{{.i18n.Tr "admin.dashboard.heap_memory_released"}}
-
{{.SysStatus.HeapReleased}}
-
{{.i18n.Tr "admin.dashboard.heap_objects"}}
-
{{.SysStatus.HeapObjects}}
-
-
{{.i18n.Tr "admin.dashboard.bootstrap_stack_usage"}}
-
{{.SysStatus.StackInuse}}
-
{{.i18n.Tr "admin.dashboard.stack_memory_obtained"}}
-
{{.SysStatus.StackSys}}
-
{{.i18n.Tr "admin.dashboard.mspan_structures_usage"}}
-
{{.SysStatus.MSpanInuse}}
-
{{.i18n.Tr "admin.dashboard.mspan_structures_obtained"}}
-
{{.SysStatus.HeapSys}}
-
{{.i18n.Tr "admin.dashboard.mcache_structures_usage"}}
-
{{.SysStatus.MCacheInuse}}
-
{{.i18n.Tr "admin.dashboard.mcache_structures_obtained"}}
-
{{.SysStatus.MCacheSys}}
-
{{.i18n.Tr "admin.dashboard.profiling_bucket_hash_table_obtained"}}
-
{{.SysStatus.BuckHashSys}}
-
{{.i18n.Tr "admin.dashboard.gc_metadata_obtained"}}
-
{{.SysStatus.GCSys}}
-
{{.i18n.Tr "admin.dashboard.other_system_allocation_obtained"}}
-
{{.SysStatus.OtherSys}}
-
-
{{.i18n.Tr "admin.dashboard.next_gc_recycle"}}
-
{{.SysStatus.NextGC}}
-
{{.i18n.Tr "admin.dashboard.last_gc_time"}}
-
{{.SysStatus.LastGC}}
-
{{.i18n.Tr "admin.dashboard.total_gc_pause"}}
-
{{.SysStatus.PauseTotalNs}}
-
{{.i18n.Tr "admin.dashboard.last_gc_pause"}}
-
{{.SysStatus.PauseNs}}
-
{{.i18n.Tr "admin.dashboard.gc_times"}}
-
{{.SysStatus.NumGC}}
-
-
-
-
-
+

+ {{.i18n.Tr "admin.dashboard.system_status"}} +

+
+
+
{{.i18n.Tr "admin.dashboard.server_uptime"}}
+
{{.SysStatus.Uptime}}
+
{{.i18n.Tr "admin.dashboard.current_goroutine"}}
+
{{.SysStatus.NumGoroutine}}
+
+
{{.i18n.Tr "admin.dashboard.current_memory_usage"}}
+
{{.SysStatus.MemAllocated}}
+
{{.i18n.Tr "admin.dashboard.total_memory_allocated"}}
+
{{.SysStatus.MemTotal}}
+
{{.i18n.Tr "admin.dashboard.memory_obtained"}}
+
{{.SysStatus.MemSys}}
+
{{.i18n.Tr "admin.dashboard.pointer_lookup_times"}}
+
{{.SysStatus.Lookups}}
+
{{.i18n.Tr "admin.dashboard.memory_allocate_times"}}
+
{{.SysStatus.MemMallocs}}
+
{{.i18n.Tr "admin.dashboard.memory_free_times"}}
+
{{.SysStatus.MemFrees}}
+
+
{{.i18n.Tr "admin.dashboard.current_heap_usage"}}
+
{{.SysStatus.HeapAlloc}}
+
{{.i18n.Tr "admin.dashboard.heap_memory_obtained"}}
+
{{.SysStatus.HeapSys}}
+
{{.i18n.Tr "admin.dashboard.heap_memory_idle"}}
+
{{.SysStatus.HeapIdle}}
+
{{.i18n.Tr "admin.dashboard.heap_memory_in_use"}}
+
{{.SysStatus.HeapInuse}}
+
{{.i18n.Tr "admin.dashboard.heap_memory_released"}}
+
{{.SysStatus.HeapReleased}}
+
{{.i18n.Tr "admin.dashboard.heap_objects"}}
+
{{.SysStatus.HeapObjects}}
+
+
{{.i18n.Tr "admin.dashboard.bootstrap_stack_usage"}}
+
{{.SysStatus.StackInuse}}
+
{{.i18n.Tr "admin.dashboard.stack_memory_obtained"}}
+
{{.SysStatus.StackSys}}
+
{{.i18n.Tr "admin.dashboard.mspan_structures_usage"}}
+
{{.SysStatus.MSpanInuse}}
+
{{.i18n.Tr "admin.dashboard.mspan_structures_obtained"}}
+
{{.SysStatus.HeapSys}}
+
{{.i18n.Tr "admin.dashboard.mcache_structures_usage"}}
+
{{.SysStatus.MCacheInuse}}
+
{{.i18n.Tr "admin.dashboard.mcache_structures_obtained"}}
+
{{.SysStatus.MCacheSys}}
+
{{.i18n.Tr "admin.dashboard.profiling_bucket_hash_table_obtained"}}
+
{{.SysStatus.BuckHashSys}}
+
{{.i18n.Tr "admin.dashboard.gc_metadata_obtained"}}
+
{{.SysStatus.GCSys}}
+
{{.i18n.Tr "admin.dashboard.other_system_allocation_obtained"}}
+
{{.SysStatus.OtherSys}}
+
+
{{.i18n.Tr "admin.dashboard.next_gc_recycle"}}
+
{{.SysStatus.NextGC}}
+
{{.i18n.Tr "admin.dashboard.last_gc_time"}}
+
{{.SysStatus.LastGC}}
+
{{.i18n.Tr "admin.dashboard.total_gc_pause"}}
+
{{.SysStatus.PauseTotalNs}}
+
{{.i18n.Tr "admin.dashboard.last_gc_pause"}}
+
{{.SysStatus.PauseNs}}
+
{{.i18n.Tr "admin.dashboard.gc_times"}}
+
{{.SysStatus.NumGC}}
+
+
+
+
+
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/admin/monitor.tmpl b/templates/admin/monitor.tmpl index 8092082563..fa87078cc3 100644 --- a/templates/admin/monitor.tmpl +++ b/templates/admin/monitor.tmpl @@ -1,65 +1,65 @@ {{template "base/head" .}}
-
-
- {{template "admin/navbar" .}} -
- {{template "base/alert" .}} -

- {{.i18n.Tr "admin.monitor.cron"}} -

-
- - - - - - - - - - - - {{range .Entries}} - - - - - - - - {{end}} - -
{{.i18n.Tr "admin.monitor.name"}}{{.i18n.Tr "admin.monitor.schedule"}}{{.i18n.Tr "admin.monitor.next"}}{{.i18n.Tr "admin.monitor.previous"}}{{.i18n.Tr "admin.monitor.execute_times"}}
{{.Description}}{{.Spec}}{{DateFmtLong .Next}}{{if gt .Prev.Year 1 }}{{DateFmtLong .Prev}}{{else}}N/A{{end}}{{.ExecTimes}}
-
+
+
+ {{template "admin/navbar" .}} +
+ {{template "base/alert" .}} +

+ {{.i18n.Tr "admin.monitor.cron"}} +

+
+ + + + + + + + + + + + {{range .Entries}} + + + + + + + + {{end}} + +
{{.i18n.Tr "admin.monitor.name"}}{{.i18n.Tr "admin.monitor.schedule"}}{{.i18n.Tr "admin.monitor.next"}}{{.i18n.Tr "admin.monitor.previous"}}{{.i18n.Tr "admin.monitor.execute_times"}}
{{.Description}}{{.Spec}}{{DateFmtLong .Next}}{{if gt .Prev.Year 1 }}{{DateFmtLong .Prev}}{{else}}N/A{{end}}{{.ExecTimes}}
+
-

- {{.i18n.Tr "admin.monitor.process"}} -

-
- - - - - - - - - - - {{range .Processes}} - - - - - - - {{end}} - -
Pid{{.i18n.Tr "admin.monitor.desc"}}{{.i18n.Tr "admin.monitor.start"}}{{.i18n.Tr "admin.monitor.execute_time"}}
{{.Pid}}{{.Description}}{{DateFmtLong .Start}}{{TimeSince .Start $.Lang}}
-
-
-
-
+

+ {{.i18n.Tr "admin.monitor.process"}} +

+
+ + + + + + + + + + + {{range .Processes}} + + + + + + + {{end}} + +
Pid{{.i18n.Tr "admin.monitor.desc"}}{{.i18n.Tr "admin.monitor.start"}}{{.i18n.Tr "admin.monitor.execute_time"}}
{{.Pid}}{{.Description}}{{DateFmtLong .Start}}{{TimeSince .Start $.Lang}}
+
+
+
+
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/admin/nav.tmpl b/templates/admin/nav.tmpl index 49c4b72cf0..7129ee11ed 100644 --- a/templates/admin/nav.tmpl +++ b/templates/admin/nav.tmpl @@ -1,15 +1,15 @@ \ No newline at end of file +

{{.i18n.Tr "admin_panel"}}

+ +
diff --git a/templates/admin/navbar.tmpl b/templates/admin/navbar.tmpl index e85fa24fbf..9fa1721e46 100644 --- a/templates/admin/navbar.tmpl +++ b/templates/admin/navbar.tmpl @@ -1,29 +1,29 @@ \ No newline at end of file +
diff --git a/templates/admin/notice.tmpl b/templates/admin/notice.tmpl index 3321dd1469..0af7713d30 100644 --- a/templates/admin/notice.tmpl +++ b/templates/admin/notice.tmpl @@ -1,104 +1,104 @@ {{template "base/head" .}}
-
-
- {{template "admin/navbar" .}} -
- {{template "base/alert" .}} -

- {{.i18n.Tr "admin.notices.system_notice_list"}} ({{.i18n.Tr "admin.total" .Total}}) -

-
- - - - - - - - - - - - - {{range .Notices}} - - - - - - - - - {{end}} - - - - - - - -
ID{{.i18n.Tr "admin.notices.type"}}{{.i18n.Tr "admin.notices.desc"}}{{.i18n.Tr "admin.users.created"}}{{.i18n.Tr "admin.notices.op"}}
-
- -
-
{{.ID}}{{$.i18n.Tr .TrStr}}{{SubStr .Description 0 120}}...{{DateFmtShort .Created}}
- - -
- {{.i18n.Tr "admin.notices.delete_selected"}} -
-
-
+
+
+ {{template "admin/navbar" .}} +
+ {{template "base/alert" .}} +

+ {{.i18n.Tr "admin.notices.system_notice_list"}} ({{.i18n.Tr "admin.total" .Total}}) +

+
+ + + + + + + + + + + + + {{range .Notices}} + + + + + + + + + {{end}} + + + + + + + +
ID{{.i18n.Tr "admin.notices.type"}}{{.i18n.Tr "admin.notices.desc"}}{{.i18n.Tr "admin.users.created"}}{{.i18n.Tr "admin.notices.op"}}
+
+ +
+
{{.ID}}{{$.i18n.Tr .TrStr}}{{SubStr .Description 0 120}}...{{DateFmtShort .Created}}
+ + +
+ {{.i18n.Tr "admin.notices.delete_selected"}} +
+
+
- {{with .Page}} - {{if gt .TotalPages 1}} - - {{end}} - {{end}} -
-
-
+ {{with .Page}} + {{if gt .TotalPages 1}} + + {{end}} + {{end}} +
+
+
{{template "base/footer" .}} diff --git a/templates/admin/org/list.tmpl b/templates/admin/org/list.tmpl index bc4610b6d6..890ceed3a2 100644 --- a/templates/admin/org/list.tmpl +++ b/templates/admin/org/list.tmpl @@ -1,65 +1,65 @@ {{template "base/head" .}}
-
-
- {{template "admin/navbar" .}} -
- {{template "base/alert" .}} -

- {{.i18n.Tr "admin.orgs.org_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}}) -

-
- +
+
+ {{template "admin/navbar" .}} +
+ {{template "base/alert" .}} +

+ {{.i18n.Tr "admin.orgs.org_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}}) +

+
+
- - - - - - + + + + + + - + - {{range .Orgs}} - - - - - - - - - {{end}} + {{range .Orgs}} + + + + + + + + + {{end}} -
ID{{.i18n.Tr "admin.orgs.name"}}{{.i18n.Tr "admin.orgs.teams"}}{{.i18n.Tr "admin.orgs.members"}}{{.i18n.Tr "admin.users.repos"}}
ID{{.i18n.Tr "admin.orgs.name"}}{{.i18n.Tr "admin.orgs.teams"}}{{.i18n.Tr "admin.orgs.members"}}{{.i18n.Tr "admin.users.repos"}} {{.i18n.Tr "admin.users.created"}}
{{.Id}}{{.Name}}{{.NumTeams}}{{.NumMembers}}{{.NumRepos}}{{DateFmtShort .Created}}
{{.Id}}{{.Name}}{{.NumTeams}}{{.NumMembers}}{{.NumRepos}}{{DateFmtShort .Created}}
+
{{with .Page}} - {{if gt .TotalPages 1}} - - {{end}} + {{if gt .TotalPages 1}} + + {{end}} {{end}} -
-
-
+
+
+
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl index f8ccecf66c..cbbc91f80e 100644 --- a/templates/admin/repo/list.tmpl +++ b/templates/admin/repo/list.tmpl @@ -6,7 +6,7 @@
{{template "base/alert" .}}

- {{.i18n.Tr "admin.repos.repo_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}}) + {{.i18n.Tr "admin.repos.repo_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}})

@@ -20,49 +20,49 @@ - + {{range .Repos}} - - - - - - - - - - - + + + + + + + + + + + {{end}}
{{.i18n.Tr "admin.repos.stars"}} {{.i18n.Tr "admin.repos.issues"}} {{.i18n.Tr "admin.users.created"}}{{.i18n.Tr "admin.notices.op"}}{{.i18n.Tr "admin.notices.op"}}
{{.ID}}{{.Owner.Name}}{{.Name}}{{.NumWatches}}{{.NumStars}}{{.NumIssues}}{{DateFmtShort .Created}}
{{.ID}}{{.Owner.Name}}{{.Name}}{{.NumWatches}}{{.NumStars}}{{.NumIssues}}{{DateFmtShort .Created}}
{{with .Page}} - {{if gt .TotalPages 1}} - - {{end}} + {{if gt .TotalPages 1}} + + {{end}} {{end}}
@@ -70,17 +70,17 @@ -{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl index 6f30f05c9f..b7f95e36db 100644 --- a/templates/admin/user/edit.tmpl +++ b/templates/admin/user/edit.tmpl @@ -1,106 +1,106 @@ {{template "base/head" .}}
-
-
- {{template "admin/navbar" .}} -
- {{template "base/alert" .}} -

- {{.i18n.Tr "admin.users.edit_account"}} -

-
-
- {{.CsrfTokenHtml}} -
- - {{.User.Name}} -
- -
- - -
-
- - -
-
- - -
-
- - -
- -
- - -

{{.i18n.Tr "admin.users.password_helper"}}

-
-
- - -
-
- - -
+
+
+ {{template "admin/navbar" .}} +
+ {{template "base/alert" .}} +

+ {{.i18n.Tr "admin.users.edit_account"}} +

+
+ + {{.CsrfTokenHtml}} +
+ + {{.User.Name}} +
+ +
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+ + +

{{.i18n.Tr "admin.users.password_helper"}}

+
+
+ + +
+
+ + +
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
-
- -
{{.i18n.Tr "admin.users.delete_account"}}
-
- -
+
+ +
{{.i18n.Tr "admin.users.delete_account"}}
+
+ +
{{template "base/footer" .}} diff --git a/templates/admin/user/list.tmpl b/templates/admin/user/list.tmpl index 2e23c9ec68..25ef4feac1 100644 --- a/templates/admin/user/list.tmpl +++ b/templates/admin/user/list.tmpl @@ -1,72 +1,72 @@ {{template "base/head" .}}
-
-
- {{template "admin/navbar" .}} -
- {{template "base/alert" .}} -

- {{.i18n.Tr "admin.users.user_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}}) - -

-
- - - - - - - - - - - - - - - {{range .Users}} - - - - - - - - - - - {{end}} - -
ID{{.i18n.Tr "admin.users.name"}}{{.i18n.Tr "email"}}{{.i18n.Tr "admin.users.activated"}}{{.i18n.Tr "admin.users.admin"}}{{.i18n.Tr "admin.users.repos"}}{{.i18n.Tr "admin.users.created"}}{{.i18n.Tr "admin.users.edit"}}
{{.Id}}{{.Name}}{{.NumRepos}}{{DateFmtShort .Created }}
-
- - {{with .Page}} - {{if gt .TotalPages 1}} -
- +
+
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/admin/user/new.tmpl b/templates/admin/user/new.tmpl index 34630ececa..9352eaaced 100644 --- a/templates/admin/user/new.tmpl +++ b/templates/admin/user/new.tmpl @@ -1,66 +1,66 @@ {{template "base/head" .}}
-
-
- {{template "admin/navbar" .}} -
- {{template "base/alert" .}} -

- {{.i18n.Tr "admin.users.new_account"}} -

-
-
- {{.CsrfTokenHtml}} - -
- - -
-
- - -
-
- - -
-
- - -
- -
- - -
+
+
+ {{template "admin/navbar" .}} +
+ {{template "base/alert" .}} +

+ {{.i18n.Tr "admin.users.new_account"}} +

+
+ + {{.CsrfTokenHtml}} + +
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+ + +
- - {{if .CanSendEmail}} -
-
- - -
-
- {{end}} + + {{if .CanSendEmail}} +
+
+ + +
+
+ {{end}} -
- -
- -
-
-
-
+
+ +
+ +
+
+
+
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/base/alert.tmpl b/templates/base/alert.tmpl index e71be803c5..60b7b588d7 100644 --- a/templates/base/alert.tmpl +++ b/templates/base/alert.tmpl @@ -1,15 +1,15 @@ {{if .Flash.ErrorMsg}} -
-

{{.Flash.ErrorMsg}}

-
+
+

{{.Flash.ErrorMsg}}

+
{{end}} {{if .Flash.SuccessMsg}} -
-

{{.Flash.SuccessMsg}}

-
+
+

{{.Flash.SuccessMsg}}

+
{{end}} {{if .Flash.InfoMsg}} -
-

{{.Flash.InfoMsg}}

-
-{{end}} \ No newline at end of file +
+

{{.Flash.InfoMsg}}

+
+{{end}} diff --git a/templates/base/delete_modal_actions.tmpl b/templates/base/delete_modal_actions.tmpl index 6e9e256cb9..a889c67e5a 100644 --- a/templates/base/delete_modal_actions.tmpl +++ b/templates/base/delete_modal_actions.tmpl @@ -1,10 +1,10 @@
-
- - {{.i18n.Tr "modal.no"}} -
-
- - {{.i18n.Tr "modal.yes"}} -
-
\ No newline at end of file +
+ + {{.i18n.Tr "modal.no"}} +
+
+ + {{.i18n.Tr "modal.yes"}} +
+
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index a48c11d841..dd911fcd3e 100644 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -1,3 +1,8 @@ +{{/* + + +
+*/}}
@@ -26,24 +31,24 @@ - - {{if .RequireHighlightJS}} + +{{if .RequireHighlightJS}} - {{end}} - {{if .RequireMinicolors}} +{{end}} +{{if .RequireMinicolors}} - {{end}} - {{if .RequireDatetimepicker}} +{{end}} +{{if .RequireDatetimepicker}} - {{end}} - {{if .RequireDropzone}} +{{end}} +{{if .RequireDropzone}} - {{end}} - - +{{end}} + + diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index b1d4283614..ba7c7ba048 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -10,8 +10,8 @@ {{if .GoGetImport}} - - + + {{end}} @@ -20,8 +20,8 @@ {{if .RequireSimpleMDE}} - - + + {{end}} @@ -39,110 +39,115 @@ {{if not .PageIsInstall}} -
-
-
- +
+
+
+
+
{{end}} +{{/* +
+ + +*/}} diff --git a/templates/explore/navbar.tmpl b/templates/explore/navbar.tmpl index 374376bf77..2b6aa93f5c 100644 --- a/templates/explore/navbar.tmpl +++ b/templates/explore/navbar.tmpl @@ -5,4 +5,4 @@ {{.i18n.Tr "explore.repos"}} - \ No newline at end of file + diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl index 5a459dedd8..a674bcc90a 100644 --- a/templates/explore/repo_list.tmpl +++ b/templates/explore/repo_list.tmpl @@ -1,23 +1,23 @@
- {{range .Repos}} -
-
- {{if $.PageIsExplore}}{{.Owner.Name}} / {{end}}{{.Name}} - {{if .IsPrivate}} - - {{else if .IsFork}} - - {{else if .IsMirror}} - - {{end}} + {{range .Repos}} +
+
+ {{if $.PageIsExplore}}{{.Owner.Name}} / {{end}}{{.Name}} + {{if .IsPrivate}} + + {{else if .IsFork}} + + {{else if .IsMirror}} + + {{end}} -
- {{.NumStars}} - {{.NumForks}} -
-
- {{if .Description}}

{{.Description}}

{{end}} -

{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}

-
- {{end}} -
\ No newline at end of file +
+ {{.NumStars}} + {{.NumForks}} +
+
+ {{if .Description}}

{{.Description}}

{{end}} +

{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}

+
+ {{end}} + diff --git a/templates/explore/repos.tmpl b/templates/explore/repos.tmpl index 1d45a96ec5..5523295312 100644 --- a/templates/explore/repos.tmpl +++ b/templates/explore/repos.tmpl @@ -4,28 +4,28 @@
{{template "explore/navbar" .}}
- {{template "explore/repo_list" .}} + {{template "explore/repo_list" .}} {{with .Page}} - {{if gt .TotalPages 1}} -
- -
- {{end}} + {{if gt .TotalPages 1}} +
+ +
+ {{end}} {{end}}
diff --git a/templates/home.tmpl b/templates/home.tmpl index 77dcebeec3..f9c5070643 100644 --- a/templates/home.tmpl +++ b/templates/home.tmpl @@ -3,127 +3,127 @@
- +
-

- Gogs - Go Git Service -

-

{{.i18n.Tr "app_desc"}}

+

+ Gogs - Go Git Service +

+

{{.i18n.Tr "app_desc"}}

-
+
{{if eq .Lang "de-DE"}} -
-
-

- Einfach zu installieren -

-

- Starte einfach die Anwendung für deine Plattform. Gogs gibt es auch für Docker, Vagrant oder als Installationspaket. -

-
-
-

- Plattformübergreifend -

-

- Gogs läuft überall. Go kompiliert für: Windows, Mac OS X, Linux, ARM, etc. Wähle dasjenige System, was dir am meisten gefällt! -

-
-
-
-
-

- Leichtgewicht -

-

- Gogs hat minimale Systemanforderungen und kann selbst auf einem günstigen und stromsparenden Raspberry Pi betrieben werden. -

-
-
-

- Quelloffen -

-

- Der komplette Code befindet sich auf GitHub! Unterstütze uns bei der Verbesserung dieses Projekts. Trau dich! -

-
-
+
+
+

+ Einfach zu installieren +

+

+ Starte einfach die Anwendung für deine Plattform. Gogs gibt es auch für Docker, Vagrant oder als Installationspaket. +

+
+
+

+ Plattformübergreifend +

+

+ Gogs läuft überall. Go kompiliert für: Windows, Mac OS X, Linux, ARM, etc. Wähle dasjenige System, was dir am meisten gefällt! +

+
+
+
+
+

+ Leichtgewicht +

+

+ Gogs hat minimale Systemanforderungen und kann selbst auf einem günstigen und stromsparenden Raspberry Pi betrieben werden. +

+
+
+

+ Quelloffen +

+

+ Der komplette Code befindet sich auf GitHub! Unterstütze uns bei der Verbesserung dieses Projekts. Trau dich! +

+
+
{{else if eq .Lang "zh-CN"}} -
-
-

- 易安装 -

-

- 您除了可以根据操作系统平台通过 二进制运行,还可以通过 DockerVagrant,以及 包管理 安装。 -

-
-
-

- 跨平台 -

-

- 任何 Go 语言 支持的平台都可以运行 Gogs,包括 Windows、Mac、Linux 以及 ARM。挑一个您喜欢的就行! -

-
-
-
-
-

- 轻量级 -

-

- 一个廉价的树莓派的配置足以满足 Gogs 的最低系统硬件要求。最大程度上节省您的服务器资源! -

-
-
-

- 开源化 -

-

- 所有的代码都开源在 GitHub 上,赶快加入我们来共同发展这个伟大的项目!还等什么?成为贡献者吧! -

-
-
- {{else}} -
-
-

- Easy to install -

-

- Simply run the binary for your platform. Or ship Gogs with Docker or Vagrant, or get it packaged. -

-
-
-

- Cross-platform -

-

- Gogs runs anywhere Go can compile for: Windows, Mac OS X, Linux, ARM, etc. Choose the one you love! -

-
-
-
-
-

- Lightweight -

-

- Gogs has low minimal requirements and can run on an inexpensive Raspberry Pi. Save your machine energy! -

-
-
-

- Open Source -

-

- It's all on GitHub! Join us by contributing to make this project even better. Don't be shy to be a contributor! -

-
-
+
+
+

+ 易安装 +

+

+ 您除了可以根据操作系统平台通过 二进制运行,还可以通过 DockerVagrant,以及 包管理 安装。 +

+
+
+

+ 跨平台 +

+

+ 任何 Go 语言 支持的平台都可以运行 Gogs,包括 Windows、Mac、Linux 以及 ARM。挑一个您喜欢的就行! +

+
+
+
+
+

+ 轻量级 +

+

+ 一个廉价的树莓派的配置足以满足 Gogs 的最低系统硬件要求。最大程度上节省您的服务器资源! +

+
+
+

+ 开源化 +

+

+ 所有的代码都开源在 GitHub 上,赶快加入我们来共同发展这个伟大的项目!还等什么?成为贡献者吧! +

+
+
+ {{else}} +
+
+

+ Easy to install +

+

+ Simply run the binary for your platform. Or ship Gogs with Docker or Vagrant, or get it packaged. +

+
+
+

+ Cross-platform +

+

+ Gogs runs anywhere Go can compile for: Windows, Mac OS X, Linux, ARM, etc. Choose the one you love! +

+
+
+
+
+

+ Lightweight +

+

+ Gogs has low minimal requirements and can run on an inexpensive Raspberry Pi. Save your machine energy! +

+
+
+

+ Open Source +

+

+ It's all on GitHub! Join us by contributing to make this project even better. Don't be shy to be a contributor! +

+
+
{{end}} -{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/install.tmpl b/templates/install.tmpl index 65fb06cae8..29665424ef 100644 --- a/templates/install.tmpl +++ b/templates/install.tmpl @@ -3,228 +3,228 @@

- {{.i18n.Tr "install.title"}} + {{.i18n.Tr "install.title"}}

- {{template "base/alert" .}} + {{template "base/alert" .}} -

{{.i18n.Tr "install.docker_helper" "https://github.com/gogits/gogs/tree/master/docker" | Safe}}

+

{{.i18n.Tr "install.docker_helper" "https://github.com/gogits/gogs/tree/master/docker" | Safe}}

-
- -

{{.i18n.Tr "install.db_title"}}

-

{{.i18n.Tr "install.requite_db_desc"}}

-
- - -
+ + +

{{.i18n.Tr "install.db_title"}}

+

{{.i18n.Tr "install.requite_db_desc"}}

+
+ + +
-
-
- - -
-
- - -
-
- - -
-
- - - {{.i18n.Tr "install.db_helper"}} -
-
+
+
+ + +
+
+ + +
+
+ + +
+
+ + + {{.i18n.Tr "install.db_helper"}} +
+
-
-
- - -
-
+
+
+ + +
+
-
-
- - - {{.i18n.Tr "install.sqlite_helper"}} -
-
+
+
+ + + {{.i18n.Tr "install.sqlite_helper"}} +
+

{{.i18n.Tr "install.general_title"}}

-
- - - {{.i18n.Tr "install.app_name_helper"}} -
-
- - - {{.i18n.Tr "install.repo_path_helper"}} -
-
- - - {{.i18n.Tr "install.run_user_helper"}} -
-
- - - {{.i18n.Tr "install.domain_helper"}} -
-
- - - {{.i18n.Tr "install.ssh_port_helper"}} -
-
- - - {{.i18n.Tr "install.http_port_helper"}} -
-
- - - {{.i18n.Tr "install.app_url_helper"}} -
+
+ + + {{.i18n.Tr "install.app_name_helper"}} +
+
+ + + {{.i18n.Tr "install.repo_path_helper"}} +
+
+ + + {{.i18n.Tr "install.run_user_helper"}} +
+
+ + + {{.i18n.Tr "install.domain_helper"}} +
+
+ + + {{.i18n.Tr "install.ssh_port_helper"}} +
+
+ + + {{.i18n.Tr "install.http_port_helper"}} +
+
+ + + {{.i18n.Tr "install.app_url_helper"}} +
- -

{{.i18n.Tr "install.optional_title"}}

+ +

{{.i18n.Tr "install.optional_title"}}

- -
-
- - {{.i18n.Tr "install.email_title"}} -
-
-
- - -
-
- - - {{.i18n.Tr "install.smtp_from_helper"}} -
-
- - -
-
- - -
-
-
- - -
-
-
-
- - -
-
-
-
+ +
+
+ + {{.i18n.Tr "install.email_title"}} +
+
+
+ + +
+
+ + + {{.i18n.Tr "install.smtp_from_helper"}} +
+
+ + +
+
+ + +
+
+
+ + +
+
+
+
+ + +
+
+
+
- -
-
- - {{.i18n.Tr "install.server_service_title"}} -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
+ +
+
+ + {{.i18n.Tr "install.server_service_title"}} +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
- -
-
- - {{.i18n.Tr "install.admin_title"}} -
-
-

{{.i18n.Tr "install.admin_setting_desc"}}

-
- - -
-
- - -
-
- - -
-
- - -
-
-
+ +
+
+ + {{.i18n.Tr "install.admin_title"}} +
+
+

{{.i18n.Tr "install.admin_setting_desc"}}

+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
-
-
- - -
-
+
+
+ + +
+
diff --git a/templates/mail/auth/activate.tmpl b/templates/mail/auth/activate.tmpl index 5822770e1c..dfbc3ba86b 100644 --- a/templates/mail/auth/activate.tmpl +++ b/templates/mail/auth/activate.tmpl @@ -1,15 +1,15 @@ - + - - {{.User.Name}}, please activate your account + + {{.User.Name}}, please activate your account -

Hi {{.User.Name}}, thanks for registering at {{.AppName}}!

-

Please click the following link to verify your e-mail address within {{.ActiveCodeLives}} hours:

-

{{.AppUrl}}user/activate?code={{.Code}}

-

Not working? Try copying and pasting it to your browser.

-

© 2015 Gogs: Go Git Service

+

Hi {{.User.Name}}, thanks for registering at {{.AppName}}!

+

Please click the following link to verify your e-mail address within {{.ActiveCodeLives}} hours:

+

{{.AppUrl}}user/activate?code={{.Code}}

+

Not working? Try copying and pasting it to your browser.

+

© 2015 Gogs: Go Git Service

diff --git a/templates/mail/auth/activate_email.tmpl b/templates/mail/auth/activate_email.tmpl index 1a918fe223..73d7f616ef 100644 --- a/templates/mail/auth/activate_email.tmpl +++ b/templates/mail/auth/activate_email.tmpl @@ -1,15 +1,15 @@ - + - - {{.User.Name}}, please verify your e-mail address + + {{.User.Name}}, please verify your e-mail address -

Hi {{.User.Name}},

-

Please click the following link to verify your e-mail address within {{.ActiveCodeLives}} hours:

-

{{.AppUrl}}user/activate_email?code={{.Code}}&email={{.Email}}

-

Not working? Try copying and pasting it to your browser.

-

© 2015 Gogs: Go Git Service

+

Hi {{.User.Name}},

+

Please click the following link to verify your e-mail address within {{.ActiveCodeLives}} hours:

+

{{.AppUrl}}user/activate_email?code={{.Code}}&email={{.Email}}

+

Not working? Try copying and pasting it to your browser.

+

© 2015 Gogs: Go Git Service

- \ No newline at end of file + diff --git a/templates/mail/auth/register_notify.tmpl b/templates/mail/auth/register_notify.tmpl index 5fc450b501..864ed55acd 100644 --- a/templates/mail/auth/register_notify.tmpl +++ b/templates/mail/auth/register_notify.tmpl @@ -1,14 +1,14 @@ - + - - {{.User.Name}}, welcome to {{.AppName}} + + {{.User.Name}}, welcome to {{.AppName}} -

Hi {{.User.Name}}, this is your registration confirmation email for {{.AppName}}!

-

You can now login via username: {{.User.Name}}.

-

{{.AppUrl}}user/login

-

© 2015 Gogs: Go Git Service

+

Hi {{.User.Name}}, this is your registration confirmation email for {{.AppName}}!

+

You can now login via username: {{.User.Name}}.

+

{{.AppUrl}}user/login

+

© 2015 Gogs: Go Git Service

diff --git a/templates/mail/auth/reset_passwd.tmpl b/templates/mail/auth/reset_passwd.tmpl index 92ae9f328d..eb29477828 100644 --- a/templates/mail/auth/reset_passwd.tmpl +++ b/templates/mail/auth/reset_passwd.tmpl @@ -1,15 +1,15 @@ - + - - {{.User.Name}}, you have requested to reset your password + + {{.User.Name}}, you have requested to reset your password -

Hi {{.User.Name}},

-

Please click the following link to verify your e-mail address within {{.ActiveCodeLives}} hours:

-

{{.AppUrl}}user/reset_password?code={{.Code}}

-

Not working? Try copying and pasting it to your browser.

-

© 2015 Gogs: Go Git Service

+

Hi {{.User.Name}},

+

Please click the following link to verify your e-mail address within {{.ActiveCodeLives}} hours:

+

{{.AppUrl}}user/reset_password?code={{.Code}}

+

Not working? Try copying and pasting it to your browser.

+

© 2015 Gogs: Go Git Service

- \ No newline at end of file + diff --git a/templates/mail/notify/collaborator.tmpl b/templates/mail/notify/collaborator.tmpl index 9b7e76edb7..a4748093ad 100644 --- a/templates/mail/notify/collaborator.tmpl +++ b/templates/mail/notify/collaborator.tmpl @@ -1,16 +1,16 @@ - - {{.Subject}} + + {{.Subject}} -

You are now a collaborator of this repository.

-

- --- -
- View it on Gogs: {{.RepoLink}} -

+

You are now a collaborator of this repository.

+

+ --- +
+ View it on Gogs: {{.RepoLink}} +

diff --git a/templates/mail/notify/mention.tmpl b/templates/mail/notify/mention.tmpl index 6c6fba32c5..048a0c9c1c 100644 --- a/templates/mail/notify/mention.tmpl +++ b/templates/mail/notify/mention.tmpl @@ -1,17 +1,17 @@ - - {{.Subject}} + + {{.Subject}} -

@{{.ActUserName}} mentioned you:

-

{{.Content | Str2html}}

-

- --- -
- View it on Gogs. -

+

@{{.ActUserName}} mentioned you:

+

{{.Content | Str2html}}

+

+ --- +
+ View it on Gogs. +

diff --git a/templates/org/create.tmpl b/templates/org/create.tmpl index debc1b6a93..765ef240e5 100644 --- a/templates/org/create.tmpl +++ b/templates/org/create.tmpl @@ -1,30 +1,30 @@ {{template "base/head" .}}
-
-
-
- {{.CsrfTokenHtml}} -

- {{.i18n.Tr "new_org"}} -

-
- {{template "base/alert" .}} -
- - - {{.i18n.Tr "org.org_name_helper"}} -
+
+
+ + {{.CsrfTokenHtml}} +

+ {{.i18n.Tr "new_org"}} +

+
+ {{template "base/alert" .}} +
+ + + {{.i18n.Tr "org.org_name_helper"}} +
-
- - - {{.i18n.Tr "cancel"}} -
-
- -
-
+
+ + + {{.i18n.Tr "cancel"}} +
+
+ +
+
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/org/header.tmpl b/templates/org/header.tmpl index c30433d96b..8fa1c2b269 100644 --- a/templates/org/header.tmpl +++ b/templates/org/header.tmpl @@ -1,26 +1,26 @@ {{with .Org}} -
-
-
-
- - {{.DisplayName}} + -
-{{end}} \ No newline at end of file +
+{{end}} diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl index fdd494b19b..78caa3fe12 100644 --- a/templates/org/home.tmpl +++ b/templates/org/home.tmpl @@ -1,85 +1,85 @@ {{template "base/head" .}}
-
-
-
- -
-
- {{.Org.FullName}} - {{if .IsOrganizationOwner}}{{end}} -
- {{if .Org.Description}}

{{.Org.Description}}

{{end}} -
- {{if .Org.Location}}
{{.Org.Location}}
{{end}} - {{if .Org.Website}}{{end}} -
-
+
+
+
+ +
+
+ {{.Org.FullName}} + {{if .IsOrganizationOwner}}{{end}} +
+ {{if .Org.Description}}

{{.Org.Description}}

{{end}} +
+ {{if .Org.Location}}
{{.Org.Location}}
{{end}} + {{if .Org.Website}}{{end}} +
+
-
-
-
+
+
+
-
+
-
-
-
- {{if .IsOrganizationOwner}} - -
- {{end}} - {{template "explore/repo_list" .}} -
+
+
+
+ {{if .IsOrganizationOwner}} + +
+ {{end}} + {{template "explore/repo_list" .}} +
-
-

- {{.i18n.Tr "org.people"}} - {{if .IsOrganizationMember}} - - {{end}} -

-
- {{$isMember := .IsOrganizationMember}} - {{range .Members}} - {{if or $isMember (.IsPublicMember $.Org.Id)}} - - {{end}} - {{end}} -
- {{if .IsOrganizationOwner}} - - {{end}} +
+

+ {{.i18n.Tr "org.people"}} + {{if .IsOrganizationMember}} + + {{end}} +

+
+ {{$isMember := .IsOrganizationMember}} + {{range .Members}} + {{if or $isMember (.IsPublicMember $.Org.Id)}} + + {{end}} + {{end}} +
+ {{if .IsOrganizationOwner}} + + {{end}} - {{if .IsOrganizationMember}} -
- {{.i18n.Tr "org.teams"}} - -
-
- {{range .Teams}} -
- {{.Name}} -

{{.NumMembers}} {{$.i18n.Tr "org.lower_members"}} · {{.NumRepos}} {{$.i18n.Tr "org.lower_repositories"}}

-
- {{end}} -
- {{if .IsOrganizationOwner}} - - {{end}} - {{end}} -
-
-
+ {{if .IsOrganizationMember}} +
+ {{.i18n.Tr "org.teams"}} + +
+
+ {{range .Teams}} +
+ {{.Name}} +

{{.NumMembers}} {{$.i18n.Tr "org.lower_members"}} · {{.NumRepos}} {{$.i18n.Tr "org.lower_repositories"}}

+
+ {{end}} +
+ {{if .IsOrganizationOwner}} + + {{end}} + {{end}} +
+
+
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/org/member/invite.tmpl b/templates/org/member/invite.tmpl index d412dd30a3..29e7928f0c 100644 --- a/templates/org/member/invite.tmpl +++ b/templates/org/member/invite.tmpl @@ -1,23 +1,23 @@ {{template "base/head" .}}
{{template "org/header" .}} -
+
- {{template "base/alert" .}} + {{template "base/alert" .}}

{{.i18n.Tr "org.members.invite_desc" .Org.DisplayName}}

-
- {{.CsrfTokenHtml}} -
-
-
- -
-
-
-
- -
+
+ {{.CsrfTokenHtml}} +
+
+
+ +
+
+
+
+ +
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/org/member/members.tmpl b/templates/org/member/members.tmpl index 8399e044d2..ddd341af2e 100644 --- a/templates/org/member/members.tmpl +++ b/templates/org/member/members.tmpl @@ -1,60 +1,60 @@ {{template "base/head" .}}
{{template "org/header" .}} -
- {{template "base/alert" .}} +
+ {{template "base/alert" .}} {{if .IsOrganizationOwner}} - -
+ +
{{end}} - +
{{range .Members}} -
-
- -
-
- -
{{.FullName}}
-
-
-
- {{$.i18n.Tr "org.members.membership_visibility"}} +
+
+
-
- {{ $isPublic := .IsPublicMember $.Org.Id}} - {{if $isPublic}} - {{$.i18n.Tr "org.members.public"}} - {{if or (eq $.SignedUser.Id .Id) $.IsOrganizationOwner}}({{$.i18n.Tr "org.members.public_helper"}}){{end}} - {{else}} - {{$.i18n.Tr "org.members.private"}} - {{if or (eq $.SignedUser.Id .Id) $.IsOrganizationOwner}}({{$.i18n.Tr "org.members.private_helper"}}){{end}} - {{end}} +
+ +
{{.FullName}}
+
+
+
+ {{$.i18n.Tr "org.members.membership_visibility"}} +
+
+ {{ $isPublic := .IsPublicMember $.Org.Id}} + {{if $isPublic}} + {{$.i18n.Tr "org.members.public"}} + {{if or (eq $.SignedUser.Id .Id) $.IsOrganizationOwner}}({{$.i18n.Tr "org.members.public_helper"}}){{end}} + {{else}} + {{$.i18n.Tr "org.members.private"}} + {{if or (eq $.SignedUser.Id .Id) $.IsOrganizationOwner}}({{$.i18n.Tr "org.members.private_helper"}}){{end}} + {{end}} +
+
+
+
+ {{$.i18n.Tr "org.members.member_role"}} +
+
+ {{if .IsUserOrgOwner $.Org.Id}} {{$.i18n.Tr "org.members.owner"}}{{else}}{{$.i18n.Tr "org.members.member"}}{{end}} +
+
+
+
+ {{if eq $.SignedUser.Id .Id}} + {{$.i18n.Tr "org.members.leave"}} + {{else if $.IsOrganizationOwner}} + {{$.i18n.Tr "org.members.remove"}} + {{end}} +
-
-
- {{$.i18n.Tr "org.members.member_role"}} -
-
- {{if .IsUserOrgOwner $.Org.Id}} {{$.i18n.Tr "org.members.owner"}}{{else}}{{$.i18n.Tr "org.members.member"}}{{end}} -
-
-
-
- {{if eq $.SignedUser.Id .Id}} - {{$.i18n.Tr "org.members.leave"}} - {{else if $.IsOrganizationOwner}} - {{$.i18n.Tr "org.members.remove"}} - {{end}} -
-
-
{{end}}
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/org/settings/delete.tmpl b/templates/org/settings/delete.tmpl index 707d6f88b2..dc1858e5c4 100644 --- a/templates/org/settings/delete.tmpl +++ b/templates/org/settings/delete.tmpl @@ -1,43 +1,43 @@ {{template "base/head" .}}
- {{template "org/header" .}} -
-
- {{template "org/settings/navbar" .}} -
- {{template "base/alert" .}} -

- {{.i18n.Tr "org.settings.delete_account"}} -

-
-
-

{{.i18n.Tr "org.settings.delete_prompt" | Str2html}}

-
-
- {{.CsrfTokenHtml}} - -
- - -
-
- {{.i18n.Tr "org.settings.confirm_delete_account"}} -
-
-
-
-
-
+ {{template "org/header" .}} +
+
+ {{template "org/settings/navbar" .}} +
+ {{template "base/alert" .}} +

+ {{.i18n.Tr "org.settings.delete_account"}} +

+
+
+

{{.i18n.Tr "org.settings.delete_prompt" | Str2html}}

+
+
+ {{.CsrfTokenHtml}} + +
+ + +
+
+ {{.i18n.Tr "org.settings.confirm_delete_account"}} +
+
+
+
+
+
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/org/settings/hook_new.tmpl b/templates/org/settings/hook_new.tmpl index d9a9b16928..2324788d33 100644 --- a/templates/org/settings/hook_new.tmpl +++ b/templates/org/settings/hook_new.tmpl @@ -1,29 +1,29 @@ {{template "base/head" .}}
- {{template "org/header" .}} -
-
- {{template "org/settings/navbar" .}} -
- {{template "base/alert" .}} -

- {{if .PageIsSettingsHooksNew}}{{.i18n.Tr "repo.settings.add_webhook"}}{{else}}{{.i18n.Tr "repo.settings.update_webhook"}}{{end}} -
- {{if eq .HookType "gogs"}} - - {{else if eq .HookType "slack"}} - - {{end}} -
-

-
- {{template "repo/settings/hook_gogs" .}} - {{template "repo/settings/hook_slack" .}} -
+ {{template "org/header" .}} +
+
+ {{template "org/settings/navbar" .}} +
+ {{template "base/alert" .}} +

+ {{if .PageIsSettingsHooksNew}}{{.i18n.Tr "repo.settings.add_webhook"}}{{else}}{{.i18n.Tr "repo.settings.update_webhook"}}{{end}} +
+ {{if eq .HookType "gogs"}} + + {{else if eq .HookType "slack"}} + + {{end}} +
+

+
+ {{template "repo/settings/hook_gogs" .}} + {{template "repo/settings/hook_slack" .}} +
- {{template "repo/settings/hook_history" .}} -
-
-
+ {{template "repo/settings/hook_history" .}} +
+
+
{{template "base/footer" .}} diff --git a/templates/org/settings/hooks.tmpl b/templates/org/settings/hooks.tmpl index 3b5bf4d9df..98b00f794c 100644 --- a/templates/org/settings/hooks.tmpl +++ b/templates/org/settings/hooks.tmpl @@ -1,11 +1,11 @@ {{template "base/head" .}}
- {{template "org/header" .}} -
-
- {{template "org/settings/navbar" .}} - {{template "repo/settings/hook_list" .}} -
-
+ {{template "org/header" .}} +
+
+ {{template "org/settings/navbar" .}} + {{template "repo/settings/hook_list" .}} +
+
{{template "base/footer" .}} diff --git a/templates/org/settings/navbar.tmpl b/templates/org/settings/navbar.tmpl index d6bfe04145..09fca5d7f6 100644 --- a/templates/org/settings/navbar.tmpl +++ b/templates/org/settings/navbar.tmpl @@ -1,14 +1,14 @@ diff --git a/templates/org/settings/options.tmpl b/templates/org/settings/options.tmpl index 157ff97549..ce3610ae2f 100644 --- a/templates/org/settings/options.tmpl +++ b/templates/org/settings/options.tmpl @@ -1,59 +1,59 @@ {{template "base/head" .}}
- {{template "org/header" .}} -
-
- {{template "org/settings/navbar" .}} -
- {{template "base/alert" .}} -

- {{.i18n.Tr "org.settings.options"}} -

-
-
- {{.CsrfTokenHtml}} -
- - -
-
- - -
-
- - -
-
- - -
-
- - -
+ {{template "org/header" .}} +
+
+ {{template "org/settings/navbar" .}} +
+ {{template "base/alert" .}} +

+ {{.i18n.Tr "org.settings.options"}} +

+
+ + {{.CsrfTokenHtml}} +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
-
- -
- +
+ +
+ -
+
-
- {{.CsrfTokenHtml}} -
- - -
+ + {{.CsrfTokenHtml}} +
+ + +
-
- -
-
-
-
-
-
+
+ +
+ +
+
+
+
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/org/team/members.tmpl b/templates/org/team/members.tmpl index 83b832e107..3f070b7412 100644 --- a/templates/org/team/members.tmpl +++ b/templates/org/team/members.tmpl @@ -1,46 +1,46 @@ {{template "base/head" .}}
{{template "org/header" .}} -
- {{template "base/alert" .}} -
+
+ {{template "base/alert" .}} +
{{template "org/team/sidebar" .}}
{{.i18n.Tr "org.teams.members"}}
- {{range .Team.Members}} -
- {{if $.IsOrganizationOwner}} - {{$.i18n.Tr "org.members.remove"}} - {{end}} - - - {{.DisplayName}} - -
- {{end}} -
- {{if .IsOrganizationOwner}} -
-
- {{.CsrfTokenHtml}} - -
-
-
- -
-
-
-
- -
+ {{range .Team.Members}} +
+ {{if $.IsOrganizationOwner}} + {{$.i18n.Tr "org.members.remove"}} + {{end}} + + + {{.DisplayName}} + +
+ {{end}}
+ {{if .IsOrganizationOwner}} +
+
+ {{.CsrfTokenHtml}} + +
+
+
+ +
+
+
+
+ +
+
{{end}}
-
+
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/org/team/new.tmpl b/templates/org/team/new.tmpl index 8d09e2ac0f..6293efb62e 100644 --- a/templates/org/team/new.tmpl +++ b/templates/org/team/new.tmpl @@ -1,82 +1,82 @@ {{template "base/head" .}}
- {{template "org/header" .}} -
-
-
- {{.CsrfTokenHtml}} -

- {{if .PageIsOrgTeamsNew}}{{.i18n.Tr "org.create_new_team"}}{{else}}{{.i18n.Tr "org.teams.settings"}}{{end}} -

-
- {{template "base/alert" .}} -
- - {{if eq .Team.LowerName "owners"}} - - {{end}} - - {{.i18n.Tr "org.team_name_helper"}} -
-
- - - {{.i18n.Tr "org.team_desc_helper"}} -
- {{if not (eq .Team.LowerName "owners")}} -
- -
-
-
- - - {{.i18n.Tr "org.teams.read_access_helper"}} -
-
-
-
- - - {{.i18n.Tr "org.teams.write_access_helper"}} -
-
-
-
- - - {{.i18n.Tr "org.teams.admin_access_helper"}} -
-
-
-
- {{end}} + {{template "org/header" .}} +
+
+ + {{.CsrfTokenHtml}} +

+ {{if .PageIsOrgTeamsNew}}{{.i18n.Tr "org.create_new_team"}}{{else}}{{.i18n.Tr "org.teams.settings"}}{{end}} +

+
+ {{template "base/alert" .}} +
+ + {{if eq .Team.LowerName "owners"}} + + {{end}} + + {{.i18n.Tr "org.team_name_helper"}} +
+
+ + + {{.i18n.Tr "org.team_desc_helper"}} +
+ {{if not (eq .Team.LowerName "owners")}} +
+ +
+
+
+ + + {{.i18n.Tr "org.teams.read_access_helper"}} +
+
+
+
+ + + {{.i18n.Tr "org.teams.write_access_helper"}} +
+
+
+
+ + + {{.i18n.Tr "org.teams.admin_access_helper"}} +
+
+
+
+ {{end}} -
- {{if .PageIsOrgTeamsNew}} - - {{.i18n.Tr "cancel"}} - {{else}} - - {{if not (eq .Team.LowerName "owners")}} - - {{end}} - {{end}} -
-
- -
-
+
+ {{if .PageIsOrgTeamsNew}} + + {{.i18n.Tr "cancel"}} + {{else}} + + {{if not (eq .Team.LowerName "owners")}} + + {{end}} + {{end}} +
+
+ +
+
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/org/team/repositories.tmpl b/templates/org/team/repositories.tmpl index 28126bef32..1f8d1a08f0 100644 --- a/templates/org/team/repositories.tmpl +++ b/templates/org/team/repositories.tmpl @@ -1,9 +1,9 @@ {{template "base/head" .}}
{{template "org/header" .}} -
- {{template "base/alert" .}} -
+
+ {{template "base/alert" .}} +
{{template "org/team/sidebar" .}}
@@ -11,36 +11,36 @@
{{$canAddRemove := and $.IsOrganizationOwner (not (eq $.Team.LowerName "owners"))}} - {{range .Team.Repos}} - - {{end}} -
- {{if $canAddRemove}} -
-
- {{.CsrfTokenHtml}} -
-
-
- -
-
-
-
- -
-
+ {{range .Team.Repos}} + + {{end}} +
+ {{if $canAddRemove}} +
+
+ {{.CsrfTokenHtml}} +
+
+
+ +
+
+
+
+ +
+
{{end}}
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/org/team/sidebar.tmpl b/templates/org/team/sidebar.tmpl index 5abf34be6c..d17261593d 100644 --- a/templates/org/team/sidebar.tmpl +++ b/templates/org/team/sidebar.tmpl @@ -1,41 +1,41 @@
-

- {{.Team.Name}} -
- {{if .Team.IsMember $.SignedUser.Id}} - {{$.i18n.Tr "org.teams.leave"}} - {{else if .IsOrganizationOwner}} - {{$.i18n.Tr "org.teams.join"}} - {{end}} -
-

-
-
- {{if .Team.Description}} - {{.Team.Description}} - {{else}} - {{.i18n.Tr "org.teams.no_desc"}} - {{end}} -
- -
- {{if eq .Team.LowerName "owners"}} - {{.i18n.Tr "org.teams.owners_permission_desc" | Str2html}} - {{else if (eq .Team.Authorize 1)}} - {{.i18n.Tr "org.teams.read_permission_desc" | Str2html}} - {{else if (eq .Team.Authorize 2)}} - {{.i18n.Tr "org.teams.write_permission_desc" | Str2html}} - {{else if (eq .Team.Authorize 3)}} - {{.i18n.Tr "org.teams.admin_permission_desc" | Str2html}} - {{end}} -
-
- {{if .IsOrganizationOwner}} - - {{end}} -
\ No newline at end of file +

+ {{.Team.Name}} +
+ {{if .Team.IsMember $.SignedUser.Id}} + {{$.i18n.Tr "org.teams.leave"}} + {{else if .IsOrganizationOwner}} + {{$.i18n.Tr "org.teams.join"}} + {{end}} +
+

+
+
+ {{if .Team.Description}} + {{.Team.Description}} + {{else}} + {{.i18n.Tr "org.teams.no_desc"}} + {{end}} +
+ +
+ {{if eq .Team.LowerName "owners"}} + {{.i18n.Tr "org.teams.owners_permission_desc" | Str2html}} + {{else if (eq .Team.Authorize 1)}} + {{.i18n.Tr "org.teams.read_permission_desc" | Str2html}} + {{else if (eq .Team.Authorize 2)}} + {{.i18n.Tr "org.teams.write_permission_desc" | Str2html}} + {{else if (eq .Team.Authorize 3)}} + {{.i18n.Tr "org.teams.admin_permission_desc" | Str2html}} + {{end}} +
+
+ {{if .IsOrganizationOwner}} + + {{end}} +
diff --git a/templates/org/team/teams.tmpl b/templates/org/team/teams.tmpl index 2289af123f..a5ad5d48c1 100644 --- a/templates/org/team/teams.tmpl +++ b/templates/org/team/teams.tmpl @@ -1,41 +1,41 @@ {{template "base/head" .}}
{{template "org/header" .}} -
- {{template "base/alert" .}} +
+ {{template "base/alert" .}} {{if .IsOrganizationOwner}} - -
+ +
{{end}}
{{range .Teams}} -
-
- {{.Name}} -
- {{if .IsMember $.SignedUser.Id}} - {{$.i18n.Tr "org.teams.leave"}} - {{else if $.IsOrganizationOwner}} - {{$.i18n.Tr "org.teams.join"}} - {{end}} -
+
+
+ {{.Name}} +
+ {{if .IsMember $.SignedUser.Id}} + {{$.i18n.Tr "org.teams.leave"}} + {{else if $.IsOrganizationOwner}} + {{$.i18n.Tr "org.teams.join"}} + {{end}} +
+
+
+ {{range .Members}} + + + + {{end}} +
+
+

{{.NumMembers}} {{$.i18n.Tr "org.lower_members"}} · {{.NumRepos}} {{$.i18n.Tr "org.lower_repositories"}}

+
-
- {{range .Members}} - - - - {{end}} -
-
-

{{.NumMembers}} {{$.i18n.Tr "org.lower_members"}} · {{.NumRepos}} {{$.i18n.Tr "org.lower_repositories"}}

-
-
{{end}}
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/repo/bare.tmpl b/templates/repo/bare.tmpl index af839cbaf8..936ed859a6 100644 --- a/templates/repo/bare.tmpl +++ b/templates/repo/bare.tmpl @@ -1,61 +1,61 @@ {{template "base/head" .}}
- {{template "repo/header" .}} -
-
-
- {{template "base/alert" .}} - {{if .IsRepositoryAdmin}} -

- {{.i18n.Tr "repo.quick_guide"}} - -

-
-
-

{{.i18n.Tr "repo.clone_this_repo"}} {{.i18n.Tr "repo.clone_helper" "http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository" | Str2html}}

-
- {{if not $.DisableSSH}} - - {{end}} - - - -
-
-
+ {{template "repo/header" .}} +
+
+
+ {{template "base/alert" .}} + {{if .IsRepositoryAdmin}} +

+ {{.i18n.Tr "repo.quick_guide"}} + +

+
+
+

{{.i18n.Tr "repo.clone_this_repo"}} {{.i18n.Tr "repo.clone_helper" "http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository" | Str2html}}

+
+ {{if not $.DisableSSH}} + + {{end}} + + + +
+
+
-
-

{{.i18n.Tr "repo.create_new_repo_command"}}

-
-
touch README.md
+						
+

{{.i18n.Tr "repo.create_new_repo_command"}}

+
+
touch README.md
 git init
 git add README.md
 git commit -m "first commit"
 git remote add origin {{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}
 git push -u origin master
-
-
-
+
+
+
-
-

{{.i18n.Tr "repo.push_exist_repo"}}

-
-
git remote add origin {{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}
+						
+

{{.i18n.Tr "repo.push_exist_repo"}}

+
+
git remote add origin {{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}
 git push -u origin master
-
-
- {{end}} -
-
-
-
+
+
+ {{end}} +
+
+
+
{{template "base/footer" .}} diff --git a/templates/repo/commits.tmpl b/templates/repo/commits.tmpl index 07762606fa..879f762dfa 100644 --- a/templates/repo/commits.tmpl +++ b/templates/repo/commits.tmpl @@ -1,8 +1,8 @@ {{template "base/head" .}}
- {{template "repo/header" .}} -
- {{template "repo/commits_table" .}} -
+ {{template "repo/header" .}} +
+ {{template "repo/commits_table" .}} +
{{template "base/footer" .}} diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl index 8bab2be00f..4ca25e8e1e 100644 --- a/templates/repo/commits_table.tmpl +++ b/templates/repo/commits_table.tmpl @@ -1,70 +1,70 @@

- {{.CommitCount}} {{.i18n.Tr "repo.commits.commits"}} {{if .Branch}}({{.Branch}}){{end}} - {{if .PageIsCommits}} -
-
- - -
-
- {{else if .IsDiffCompare}} - {{ShortSha .BeforeCommitID}} ... {{ShortSha .AfterCommitID}} - {{end}} + {{.CommitCount}} {{.i18n.Tr "repo.commits.commits"}} {{if .Branch}}({{.Branch}}){{end}} + {{if .PageIsCommits}} +
+
+ + +
+
+ {{else if .IsDiffCompare}} + {{ShortSha .BeforeCommitID}} ... {{ShortSha .AfterCommitID}} + {{end}}

{{if .Commits}} -
- - - - - - - - - - {{ $r:= List .Commits}} - {{range $r}} - - - - - - {{end}} - -
{{.i18n.Tr "repo.commits.author"}}SHA1 {{.i18n.Tr "repo.commits.message"}}{{.i18n.Tr "repo.commits.date"}}
- {{if .User}} -   {{.Author.Name}} - {{else}} -   {{.Author.Name}} - {{end}} - - {{ShortSha .ID.String}} - {{RenderCommitMessage false .Summary $.RepoLink $.Repository.ComposeMetas}} - {{TimeSince .Author.When $.Lang}}
-
+
+ + + + + + + + + + {{ $r:= List .Commits}} + {{range $r}} + + + + + + {{end}} + +
{{.i18n.Tr "repo.commits.author"}}SHA1 {{.i18n.Tr "repo.commits.message"}}{{.i18n.Tr "repo.commits.date"}}
+ {{if .User}} +   {{.Author.Name}} + {{else}} +   {{.Author.Name}} + {{end}} + + {{ShortSha .ID.String}} + {{RenderCommitMessage false .Summary $.RepoLink $.Repository.ComposeMetas}} + {{TimeSince .Author.When $.Lang}}
+
{{end}} {{with .Page}} -{{if gt .TotalPages 1}} -
- -
+ {{if gt .TotalPages 1}} +
+ +
+ {{end}} {{end}} -{{end}} \ No newline at end of file diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 07a9c0919d..8cd466f3d1 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -1,116 +1,116 @@ {{template "base/head" .}}
-
-
-
- {{.CsrfTokenHtml}} -

- {{.i18n.Tr "new_repo"}} -

-
- {{template "base/alert" .}} -
- - -
+
+
+ + {{.CsrfTokenHtml}} +

+ {{.i18n.Tr "new_repo"}} +

+
+ {{template "base/alert" .}} +
+ + +
-
- - - {{.i18n.Tr "repo.repo_name_helper" | Safe}} -
-
- -
- {{if .IsForcedPrivate}} - - - {{else}} - - - {{end}} -
-
-
- - -
- -
+
+ + + {{.i18n.Tr "repo.repo_name_helper" | Safe}} +
+
+ +
+ {{if .IsForcedPrivate}} + + + {{else}} + + + {{end}} +
+
+
+ + +
-
- - -
-
- - -
+
-
- - -
-
-
- - -
-
+
+ + +
+
+ + +
-
- - - {{.i18n.Tr "cancel"}} -
-
- -
-
+
+ + +
+
+
+ + +
+
+ +
+ + + {{.i18n.Tr "cancel"}} +
+
+ +
+
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/repo/diff.tmpl b/templates/repo/diff.tmpl index 18de976ebc..544e3b6030 100644 --- a/templates/repo/diff.tmpl +++ b/templates/repo/diff.tmpl @@ -1,45 +1,45 @@ {{template "base/head" .}}
- {{template "repo/header" .}} -
- {{if .IsDiffCompare }} - {{template "repo/commits_table" .}} - {{else}} -
- - {{.i18n.Tr "repo.diff.browse_source"}} - - {{RenderCommitMessage true .Commit.Message $.RepoLink $.Repository.ComposeMetas}} -
-
- {{if .Author}} - - {{.Commit.Author.Name}} - {{else}} - - {{.Commit.Author.Name}} - {{end}} - {{TimeSince .Commit.Author.When $.Lang}} -
-
- {{if .Parents}} -
- {{.i18n.Tr "repo.diff.parent"}} -
-
- {{range .Parents}} - {{ShortSha .}} - {{end}} -
- {{end}} -
{{.i18n.Tr "repo.diff.commit"}}
-
{{ShortSha .CommitID}}
-
-
-
- {{end}} - - {{template "repo/diff_box" .}} -
+ {{template "repo/header" .}} +
+ {{if .IsDiffCompare }} + {{template "repo/commits_table" .}} + {{else}} +
+ + {{.i18n.Tr "repo.diff.browse_source"}} + + {{RenderCommitMessage true .Commit.Message $.RepoLink $.Repository.ComposeMetas}} +
+
+ {{if .Author}} + + {{.Commit.Author.Name}} + {{else}} + + {{.Commit.Author.Name}} + {{end}} + {{TimeSince .Commit.Author.When $.Lang}} +
+
+ {{if .Parents}} +
+ {{.i18n.Tr "repo.diff.parent"}} +
+
+ {{range .Parents}} + {{ShortSha .}} + {{end}} +
+ {{end}} +
{{.i18n.Tr "repo.diff.commit"}}
+
{{ShortSha .CommitID}}
+
+
+
+ {{end}} + + {{template "repo/diff_box" .}} +
{{template "base/footer" .}} diff --git a/templates/repo/diff_box.tmpl b/templates/repo/diff_box.tmpl index a1d106b7f2..c0b106aff9 100644 --- a/templates/repo/diff_box.tmpl +++ b/templates/repo/diff_box.tmpl @@ -1,94 +1,94 @@ {{if .DiffNotAvailable}} -

{{.i18n.Tr "repo.diff.data_not_available"}}

+

{{.i18n.Tr "repo.diff.data_not_available"}}

{{else}} -
-
- - {{.i18n.Tr "repo.diff.stats_desc" .Diff.NumFiles .Diff.TotalAddition .Diff.TotalDeletion | Str2html}} - -
-
    - {{range .Diff.Files}} -
  1. -
    - {{if not .IsBin}} - {{.Addition}} - - - - - {{.Deletion}} - {{else}} - {{$.i18n.Tr "repo.diff.bin"}} - {{end}} -
    - -   - {{.Name}} -
  2. - {{end}} -
-
+
+
+ + {{.i18n.Tr "repo.diff.stats_desc" .Diff.NumFiles .Diff.TotalAddition .Diff.TotalDeletion | Str2html}} + +
+
    + {{range .Diff.Files}} +
  1. +
    + {{if not .IsBin}} + {{.Addition}} + + + + + {{.Deletion}} + {{else}} + {{$.i18n.Tr "repo.diff.bin"}} + {{end}} +
    + +   + {{.Name}} +
  2. + {{end}} +
+
-{{range $i, $file := .Diff.Files}} -
-

-
- {{if $file.IsBin}} - {{$.i18n.Tr "repo.diff.bin"}} - {{else if not $file.IsRenamed}} - + {{.Addition}} - - - - - - {{.Deletion}} - {{end}} -
- {{if $file.IsRenamed}}{{$file.OldName}} → {{end}}{{$file.Name}} -
- {{if $file.IsDeleted}} - {{$.i18n.Tr "repo.diff.view_file"}} - {{else}} - {{$.i18n.Tr "repo.diff.view_file"}} - {{end}} -
-

-
- {{if not $file.IsRenamed}} - {{$isImage := (call $.IsImageFile $file.Name)}} - {{if and $isImage}} -
- -
- {{else}} -
- - - {{range .Sections}} - {{range $k, $line := .Lines}} - - - - - - {{end}} - {{end}} - -
- {{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}} - - {{if $line.RightIdx}}{{$line.RightIdx}}{{end}} - -
{{$line.Content}}
-
-
- {{end}} - {{end}} -
-
-
+ {{range $i, $file := .Diff.Files}} +
+

+
+ {{if $file.IsBin}} + {{$.i18n.Tr "repo.diff.bin"}} + {{else if not $file.IsRenamed}} + + {{.Addition}} + + + + + - {{.Deletion}} + {{end}} +
+ {{if $file.IsRenamed}}{{$file.OldName}} → {{end}}{{$file.Name}} +
+ {{if $file.IsDeleted}} + {{$.i18n.Tr "repo.diff.view_file"}} + {{else}} + {{$.i18n.Tr "repo.diff.view_file"}} + {{end}} +
+

+
+ {{if not $file.IsRenamed}} + {{$isImage := (call $.IsImageFile $file.Name)}} + {{if and $isImage}} +
+ +
+ {{else}} +
+ + + {{range .Sections}} + {{range $k, $line := .Lines}} + + + + + + {{end}} + {{end}} + +
+ {{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}} + + {{if $line.RightIdx}}{{$line.RightIdx}}{{end}} + +
{{$line.Content}}
+
+
+ {{end}} + {{end}} +
+
+
+ {{end}} {{end}} -{{end}} \ No newline at end of file diff --git a/templates/repo/forks.tmpl b/templates/repo/forks.tmpl index 91085b9d22..e8b57e1af3 100644 --- a/templates/repo/forks.tmpl +++ b/templates/repo/forks.tmpl @@ -1,22 +1,22 @@ {{template "base/head" .}}
- {{template "repo/header" .}} -
-

- {{.i18n.Tr "repo.forks"}} -

-
- {{range .Forks}} -
- - -
- {{end}} -
-
+ {{template "repo/header" .}} +
+

+ {{.i18n.Tr "repo.forks"}} +

+
+ {{range .Forks}} +
+ + +
+ {{end}} +
+
{{template "base/footer" .}} diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index fb25b94bf0..74448ced04 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -1,87 +1,87 @@ {{with .Repository}} - {{end}} {{if not (or .IsBareRepo .IsDiffCompare)}} - -
+ +
{{else}} -
+
{{end}} diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 6a3d0f1295..12820e46b3 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -1,111 +1,111 @@ {{template "base/head" .}}
- {{template "repo/header" .}} -
-

- {{if .Repository.DescriptionHtml}}{{.Repository.DescriptionHtml}}{{else}}{{.i18n.Tr "repo.no_desc"}}{{end}} - {{.Repository.Website}} -

- - {{if .IsFile}} - {{template "repo/view_file" .}} - {{else}} - {{template "repo/view_list" .}} - {{end}} -
+ {{template "repo/header" .}} +
+

+ {{if .Repository.DescriptionHtml}}{{.Repository.DescriptionHtml}}{{else}}{{.i18n.Tr "repo.no_desc"}}{{end}} + {{.Repository.Website}} +

+ + {{if .IsFile}} + {{template "repo/view_file" .}} + {{else}} + {{template "repo/view_list" .}} + {{end}} +
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/repo/issue/comment_tab.tmpl b/templates/repo/issue/comment_tab.tmpl index a3f80edfb5..8f6c8ca778 100644 --- a/templates/repo/issue/comment_tab.tmpl +++ b/templates/repo/issue/comment_tab.tmpl @@ -1,16 +1,16 @@
- -
- -
-
- {{.i18n.Tr "repo.release.loading"}} -
+ +
+ +
+
+ {{.i18n.Tr "repo.release.loading"}} +
{{if .IsAttachmentEnabled}} -
-
-{{end}} \ No newline at end of file +
+
+{{end}} diff --git a/templates/repo/issue/label_precolors.tmpl b/templates/repo/issue/label_precolors.tmpl index 378281b303..d0e165068d 100644 --- a/templates/repo/issue/label_precolors.tmpl +++ b/templates/repo/issue/label_precolors.tmpl @@ -13,4 +13,4 @@ - \ No newline at end of file + diff --git a/templates/repo/issue/labels.tmpl b/templates/repo/issue/labels.tmpl index dd84ce416c..d7f758ae65 100644 --- a/templates/repo/issue/labels.tmpl +++ b/templates/repo/issue/labels.tmpl @@ -5,9 +5,9 @@
@@ -16,11 +16,11 @@
- +
- +
{{template "repo/issue/label_precolors"}} @@ -38,72 +38,72 @@
{{if .IsRepositoryAdmin}} - + -
{{if .IsRepositoryAdmin}} - + {{end}} -{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/repo/issue/navbar.tmpl b/templates/repo/issue/navbar.tmpl index 3f76947c16..a3e9d2660d 100644 --- a/templates/repo/issue/navbar.tmpl +++ b/templates/repo/issue/navbar.tmpl @@ -1,4 +1,4 @@ \ No newline at end of file + {{.i18n.Tr "repo.labels"}} + {{.i18n.Tr "repo.milestones"}} +
diff --git a/templates/repo/issue/new.tmpl b/templates/repo/issue/new.tmpl index bb45c3b743..3c6bc05b10 100644 --- a/templates/repo/issue/new.tmpl +++ b/templates/repo/issue/new.tmpl @@ -9,4 +9,4 @@ {{template "repo/issue/new_form" .}}
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/repo/issue/new_form.tmpl b/templates/repo/issue/new_form.tmpl index 8576d7db8d..c023643eb9 100644 --- a/templates/repo/issue/new_form.tmpl +++ b/templates/repo/issue/new_form.tmpl @@ -1,32 +1,32 @@
- {{.CsrfTokenHtml}} - {{if .Flash}} -
- {{template "base/alert" .}} -
- {{end}} -
+ {{.CsrfTokenHtml}} + {{if .Flash}} +
+ {{template "base/alert" .}} +
+ {{end}} +
-
- - - -
-
- -
+
+ + + +
+
+ +
{{template "repo/issue/comment_tab" .}} -
+
-
-
-
+
+
+
@@ -38,18 +38,18 @@ {{.i18n.Tr "repo.issues.new.labels"}} -
{{.i18n.Tr "repo.issues.new.no_label"}} - {{range .Labels}} - {{.Name}} - {{end}} + {{range .Labels}} + {{.Name}} + {{end}}
@@ -60,35 +60,35 @@ {{.i18n.Tr "repo.issues.new.milestone"}} -
{{.i18n.Tr "repo.issues.new.no_milestone"}}
{{if .Milestone}} - {{.Milestone.Name}} + {{.Milestone.Name}} {{end}}
@@ -101,21 +101,21 @@ {{.i18n.Tr "repo.issues.new.assignee"}} -
{{.i18n.Tr "repo.issues.new.no_assignee"}}
{{if .Assignee}} - {{.Assignee.Name}} + {{.Assignee.Name}} {{end}}
- \ No newline at end of file + diff --git a/templates/repo/issue/view.tmpl b/templates/repo/issue/view.tmpl index 506e4e3f04..1f25f1535b 100644 --- a/templates/repo/issue/view.tmpl +++ b/templates/repo/issue/view.tmpl @@ -6,22 +6,22 @@ {{template "repo/issue/navbar" .}}
{{if .Issue.IsPull}} - {{template "repo/issue/view_title" .}} - {{template "repo/pulls/tab_menu" .}} -
- {{template "repo/issue/view_content" .}} -
+ {{template "repo/issue/view_title" .}} + {{template "repo/pulls/tab_menu" .}} +
+ {{template "repo/issue/view_content" .}} +
{{else}} - {{template "repo/issue/view_content" .}} + {{template "repo/issue/view_content" .}} {{end}}
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 0f4a6d07ed..c641d7a8ff 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -1,234 +1,232 @@
{{if .Flash}} -
- {{template "base/alert" .}} -
- {{end}} - {{if not .Issue.IsPull}} - {{template "repo/issue/view_title" .}} - {{end}} - - {{ $createdStr:= TimeSince .Issue.Created $.Lang }} +
+ {{template "base/alert" .}} +
+ {{end}} + {{if not .Issue.IsPull}} + {{template "repo/issue/view_title" .}} + {{end}} + + {{ $createdStr:= TimeSince .Issue.Created $.Lang }}
- -
- - - -
+ +
+ + + +
{{.Issue.Poster.Name}} {{.i18n.Tr "repo.issues.commented_at" .Issue.HashTag $createdStr | Safe}} -
- {{if .IsIssueOwner}} - - {{end}} -
-
-
-
- {{if .Issue.RenderedContent}} - {{.Issue.RenderedContent|Str2html}} - {{else}} - {{.i18n.Tr "repo.issues.no_content"}} - {{end}} -
-
{{.Issue.Content}}
-
-
- {{if .Issue.Attachments}} -
-
- {{range .Issue.Attachments}} - - {{end}} +
+ {{if .IsIssueOwner}} + + {{end}}
- {{end}} -
-
- - {{range .Issue.Comments}} - {{ $createdStr:= TimeSince .Created $.Lang }} - - - {{if eq .Type 0}} -
- - - -
-
- {{.Poster.Name}} {{$.i18n.Tr "repo.issues.commented_at" .HashTag $createdStr | Safe}} -
- {{if gt .ShowTag 0}} -
- {{if eq .ShowTag 1}} - {{$.i18n.Tr "repo.issues.poster"}} - {{else if eq .ShowTag 2}} - {{$.i18n.Tr "repo.issues.admin"}} - {{else if eq .ShowTag 3}} - {{$.i18n.Tr "repo.issues.owner"}} - {{end}} -
- {{end}} - {{if or $.IsRepositoryAdmin (eq .Poster.Id $.SignedUserID)}} - - {{end}} -
+
+
+ {{if .Issue.RenderedContent}} + {{.Issue.RenderedContent|Str2html}} + {{else}} + {{.i18n.Tr "repo.issues.no_content"}} + {{end}} +
+
{{.Issue.Content}}
+
-
-
- {{if .RenderedContent}} - {{.RenderedContent|Str2html}} - {{else}} - {{$.i18n.Tr "repo.issues.no_content"}} - {{end}} -
-
{{.Content}}
-
-
- {{if .Attachments}} -
-
- {{range .Attachments}} - - {{end}} + {{if .Issue.Attachments}} +
+
+ {{range .Issue.Attachments}} + + {{end}} +
+
+ {{end}} +
+
+ + {{range .Issue.Comments}} + {{ $createdStr:= TimeSince .Created $.Lang }} + + + {{if eq .Type 0}} +
+ + + +
+
+ {{.Poster.Name}} {{$.i18n.Tr "repo.issues.commented_at" .HashTag $createdStr | Safe}} +
+ {{if gt .ShowTag 0}} +
+ {{if eq .ShowTag 1}} + {{$.i18n.Tr "repo.issues.poster"}} + {{else if eq .ShowTag 2}} + {{$.i18n.Tr "repo.issues.admin"}} + {{else if eq .ShowTag 3}} + {{$.i18n.Tr "repo.issues.owner"}} + {{end}} +
+ {{end}} + {{if or $.IsRepositoryAdmin (eq .Poster.Id $.SignedUserID)}} + + {{end}} +
+
+
+
+ {{if .RenderedContent}} + {{.RenderedContent|Str2html}} + {{else}} + {{$.i18n.Tr "repo.issues.no_content"}} + {{end}} +
+
{{.Content}}
+
+
+ {{if .Attachments}} +
+
+ {{range .Attachments}} + + {{end}} +
+
+ {{end}}
- {{end}} -
-
- {{else if eq .Type 1}} -
- - - - - {{.Poster.Name}} {{$.i18n.Tr "repo.issues.reopened_at" .EventTag $createdStr | Safe}} -
- {{else if eq .Type 2}} -
- - - - - {{.Poster.Name}} {{$.i18n.Tr "repo.issues.closed_at" .EventTag $createdStr | Safe}} -
- {{else if eq .Type 4}} -
- - - - - {{.Poster.Name}} {{$.i18n.Tr "repo.issues.commit_ref_at" .EventTag $createdStr | Safe}} + {{else if eq .Type 1}} +
+ + + + + {{.Poster.Name}} {{$.i18n.Tr "repo.issues.reopened_at" .EventTag $createdStr | Safe}} +
+ {{else if eq .Type 2}} +
+ + + + + {{.Poster.Name}} {{$.i18n.Tr "repo.issues.closed_at" .EventTag $createdStr | Safe}} +
+ {{else if eq .Type 4}} +
+ + + + + {{.Poster.Name}} {{$.i18n.Tr "repo.issues.commit_ref_at" .EventTag $createdStr | Safe}} + +
+ + {{.Content | Str2html}} +
+
+ {{end}} -
- - {{.Content | Str2html}} -
-
{{end}} - {{end}} - - {{if .Issue.IsPull}} -
- - - -
-
- {{if .Issue.HasMerged}} -
- {{$.i18n.Tr "repo.pulls.has_merged"}} -
- {{else if .Issue.IsClosed}} -
- {{$.i18n.Tr "repo.pulls.reopen_to_merge"}} -
- {{else if .IsPullReuqestBroken}} -
- - {{$.i18n.Tr "repo.pulls.data_broken"}} -
- {{else if .Issue.IsChecking}} -
- - {{$.i18n.Tr "repo.pulls.is_checking"}} -
- {{else if .Issue.CanAutoMerge}} -
- - {{$.i18n.Tr "repo.pulls.can_auto_merge_desc"}} -
- {{if .IsRepositoryAdmin}} -
-
-
- {{.CsrfTokenHtml}} - -
-
- {{end}} - {{else}} -
- - {{$.i18n.Tr "repo.pulls.cannot_auto_merge_desc"}} -
-
- - {{$.i18n.Tr "repo.pulls.cannot_auto_merge_helper"}} -
- {{end}} -
-
-
- {{end}} + {{if .Issue.IsPull}} +
+ +
+
+ {{if .Issue.HasMerged}} +
+ {{$.i18n.Tr "repo.pulls.has_merged"}} +
+ {{else if .Issue.IsClosed}} +
+ {{$.i18n.Tr "repo.pulls.reopen_to_merge"}} +
+ {{else if .IsPullReuqestBroken}} +
+ + {{$.i18n.Tr "repo.pulls.data_broken"}} +
+ {{else if .Issue.IsChecking}} +
+ + {{$.i18n.Tr "repo.pulls.is_checking"}} +
+ {{else if .Issue.CanAutoMerge}} +
+ + {{$.i18n.Tr "repo.pulls.can_auto_merge_desc"}} +
+ {{if .IsRepositoryAdmin}} +
+
+
+ {{.CsrfTokenHtml}} + +
+
+ {{end}} + {{else}} +
+ + {{$.i18n.Tr "repo.pulls.cannot_auto_merge_desc"}} +
+
+ + {{$.i18n.Tr "repo.pulls.cannot_auto_merge_helper"}} +
+ {{end}} +
+
+
+ {{end}} {{if .IsSigned}} -
- - - -
-
- {{template "repo/issue/comment_tab" .}} - {{.CsrfTokenHtml}} - -
- {{if and .IsIssueOwner (not .DisableStatusChange)}} - {{if .Issue.IsClosed}} -
- {{.i18n.Tr "repo.issues.reopen_issue"}} -
- {{else}} -
- {{.i18n.Tr "repo.issues.close_issue"}} -
+
+ + + +
+ + {{template "repo/issue/comment_tab" .}} + {{.CsrfTokenHtml}} + +
+ {{if and .IsIssueOwner (not .DisableStatusChange)}} + {{if .Issue.IsClosed}} +
+ {{.i18n.Tr "repo.issues.reopen_issue"}} +
+ {{else}} +
+ {{.i18n.Tr "repo.issues.close_issue"}} +
+ {{end}} {{end}} - {{end}} - -
- -
-
- {{else}} -
- {{.i18n.Tr "repo.issues.sign_up_for_free"}} - {{.i18n.Tr "repo.issues.sign_in_require_desc" .SignInLink | Safe}} -
- {{end}} - + +
+ +
+
+ {{else}} +
+ {{.i18n.Tr "repo.issues.sign_up_for_free"}} + {{.i18n.Tr "repo.issues.sign_in_require_desc" .SignInLink | Safe}} +
+ {{end}} +
@@ -238,18 +236,18 @@ {{.i18n.Tr "repo.issues.new.labels"}} -
{{.i18n.Tr "repo.issues.new.no_label"}} - {{range .Labels}} - {{.Name}} - {{end}} + {{range .Labels}} + {{.Name}} + {{end}}
@@ -259,35 +257,35 @@ {{.i18n.Tr "repo.issues.new.milestone"}} -
{{.i18n.Tr "repo.issues.new.no_milestone"}}
{{if .Issue.Milestone}} - {{.Issue.Milestone.Name}} + {{.Issue.Milestone.Name}} {{end}}
@@ -300,18 +298,18 @@ {{.i18n.Tr "repo.issues.new.assignee"}} -
{{.i18n.Tr "repo.issues.new.no_assignee"}}
{{if .Issue.Assignee}} - {{.Issue.Assignee.Name}} + {{.Issue.Assignee.Name}} {{end}}
@@ -322,22 +320,22 @@
- +
- {{$.i18n.Tr "repo.release.loading"}} + {{$.i18n.Tr "repo.release.loading"}}
-
+
{{.i18n.Tr "repo.issues.cancel"}}
{{.i18n.Tr "repo.issues.save"}}
-
+
{{.i18n.Tr "repo.issues.no_content"}} -
\ No newline at end of file +
diff --git a/templates/repo/issue/view_title.tmpl b/templates/repo/issue/view_title.tmpl index ef6e4f8c1c..f8d93a0bc0 100644 --- a/templates/repo/issue/view_title.tmpl +++ b/templates/repo/issue/view_title.tmpl @@ -3,47 +3,47 @@

#{{.Issue.Index}} {{.Issue.Name}}

{{if .IsIssueOwner}} -
-
-
{{.i18n.Tr "repo.issues.edit"}}
- - +
+
+
{{.i18n.Tr "repo.issues.edit"}}
+ + +
-
{{end}}
{{if .HasMerged}} -
{{.i18n.Tr "repo.pulls.merged"}}
+
{{.i18n.Tr "repo.pulls.merged"}}
{{else if .Issue.IsClosed}} -
{{.i18n.Tr "repo.issues.closed_title"}}
+
{{.i18n.Tr "repo.issues.closed_title"}}
{{else}} -
{{.i18n.Tr "repo.issues.open_title"}}
+
{{.i18n.Tr "repo.issues.open_title"}}
{{end}} {{if .Issue.IsPull}} {{if .Issue.HasMerged}} - {{ $mergedStr:= TimeSince .Issue.Merged $.Lang }} - {{.Issue.Merger.Name}} - {{$.i18n.Tr "repo.pulls.merged_title_desc" .NumCommits .HeadTarget .BaseTarget $mergedStr | Safe}} + {{ $mergedStr:= TimeSince .Issue.Merged $.Lang }} + {{.Issue.Merger.Name}} + {{$.i18n.Tr "repo.pulls.merged_title_desc" .NumCommits .HeadTarget .BaseTarget $mergedStr | Safe}} {{else}} - {{.Issue.Poster.Name}} - {{$.i18n.Tr "repo.pulls.title_desc" .NumCommits .HeadTarget .BaseTarget | Str2html}} + {{.Issue.Poster.Name}} + {{$.i18n.Tr "repo.pulls.title_desc" .NumCommits .HeadTarget .BaseTarget | Str2html}} {{end}} {{else}} - {{ $createdStr:= TimeSince .Issue.Created $.Lang }} - - {{if gt .Issue.Poster.Id 0}} - {{$.i18n.Tr "repo.issues.opened_by" $createdStr .Issue.Poster.HomeLink .Issue.Poster.Name | Safe}} - {{else}} - {{$.i18n.Tr "repo.issues.opened_by_fake" $createdStr .Issue.Poster.Name | Safe}} - {{end}} - · - {{$.i18n.Tr "repo.issues.num_comments" .Issue.NumComments}} - + {{ $createdStr:= TimeSince .Issue.Created $.Lang }} + + {{if gt .Issue.Poster.Id 0}} + {{$.i18n.Tr "repo.issues.opened_by" $createdStr .Issue.Poster.HomeLink .Issue.Poster.Name | Safe}} + {{else}} + {{$.i18n.Tr "repo.issues.opened_by_fake" $createdStr .Issue.Poster.Name | Safe}} + {{end}} + · + {{$.i18n.Tr "repo.issues.num_comments" .Issue.NumComments}} + {{end}}
-
\ No newline at end of file +
diff --git a/templates/repo/migrate.tmpl b/templates/repo/migrate.tmpl index 222b275006..7973d585f4 100644 --- a/templates/repo/migrate.tmpl +++ b/templates/repo/migrate.tmpl @@ -3,99 +3,99 @@
- {{.CsrfTokenHtml}} + {{.CsrfTokenHtml}}

- {{.i18n.Tr "new_migrate"}} + {{.i18n.Tr "new_migrate"}}

{{template "base/alert" .}}
- {{.i18n.Tr "repo.migrate.clone_address_desc"}} + {{.i18n.Tr "repo.migrate.clone_address_desc"}} +
+
+
+ + {{.i18n.Tr "repo.need_auth"}} +
+
+
+ + +
+ +
+ + +
+
-
-
- - {{.i18n.Tr "repo.need_auth"}} -
-
-
- - -
- -
- - -
-
-
-
- - -
+
+ + +
-
- - -
-
- -
- {{if .IsForcedPrivate}} - - - {{else}} - - - {{end}} -
-
-
- -
- - -
-
-
- - -
+
+ + +
+
+ +
+ {{if .IsForcedPrivate}} + + + {{else}} + + + {{end}} +
+
+
+ +
+ + +
+
+
+ + +
-
- - - {{.i18n.Tr "cancel"}} -
-
+
+ + + {{.i18n.Tr "cancel"}} +
+
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/repo/pulls/commits.tmpl b/templates/repo/pulls/commits.tmpl index 851880383e..5095009a9e 100644 --- a/templates/repo/pulls/commits.tmpl +++ b/templates/repo/pulls/commits.tmpl @@ -11,9 +11,9 @@
{{template "repo/issue/view_title" .}} {{template "repo/pulls/tab_menu" .}} -
+
{{template "repo/commits_table" .}} -
+
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/repo/pulls/compare.tmpl b/templates/repo/pulls/compare.tmpl index c3851d8053..f1236c2ba6 100644 --- a/templates/repo/pulls/compare.tmpl +++ b/templates/repo/pulls/compare.tmpl @@ -4,63 +4,63 @@

- {{.i18n.Tr "repo.pulls.compare_changes"}} -
{{.i18n.Tr "repo.pulls.compare_changes_desc"}}
+ {{.i18n.Tr "repo.pulls.compare_changes"}} +
{{.i18n.Tr "repo.pulls.compare_changes_desc"}}

+ ...
{{if .IsNothingToCompare}} -
- {{.i18n.Tr "repo.pulls.nothing_to_compare"}} -
+
+ {{.i18n.Tr "repo.pulls.nothing_to_compare"}} +
{{else if .HasPullRequest}} -
- {{.i18n.Tr "repo.pulls.has_pull_request" $.RepoLink $.RepoRelPath .PullRequest.Index | Safe}} -
+
+ {{.i18n.Tr "repo.pulls.has_pull_request" $.RepoLink $.RepoRelPath .PullRequest.Index | Safe}} +
{{else}} - {{template "repo/issue/new_form" .}} - {{template "repo/commits_table" .}} - {{template "repo/diff_box" .}} - {{end}} + {{template "repo/issue/new_form" .}} + {{template "repo/commits_table" .}} + {{template "repo/diff_box" .}} + {{end}}
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/repo/pulls/files.tmpl b/templates/repo/pulls/files.tmpl index 1226944b41..9070112e53 100644 --- a/templates/repo/pulls/files.tmpl +++ b/templates/repo/pulls/files.tmpl @@ -11,9 +11,9 @@
{{template "repo/issue/view_title" .}} {{template "repo/pulls/tab_menu" .}} -
+
{{template "repo/diff_box" .}} -
+
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/repo/pulls/fork.tmpl b/templates/repo/pulls/fork.tmpl index b2f857dac6..e02ee180f6 100644 --- a/templates/repo/pulls/fork.tmpl +++ b/templates/repo/pulls/fork.tmpl @@ -3,69 +3,69 @@
- {{.CsrfTokenHtml}} + {{.CsrfTokenHtml}}

- {{.i18n.Tr "new_fork"}} + {{.i18n.Tr "new_fork"}}

{{template "base/alert" .}} -
- - -
+
+ + +
-
- +
+ {{.ForkFrom}} -
-
- - -
-
- -
- - -
- {{.i18n.Tr "repo.fork_visiblity_helper"}} -
-
- - -
+
+
+ + +
+
+ +
+ + +
+ {{.i18n.Tr "repo.fork_visiblity_helper"}} +
+
+ + +
-
- - - {{.i18n.Tr "cancel"}} -
-
+
+ + + {{.i18n.Tr "cancel"}} +
+
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/repo/pulls/tab_menu.tmpl b/templates/repo/pulls/tab_menu.tmpl index 0023cd29e4..d6a9920bff 100644 --- a/templates/repo/pulls/tab_menu.tmpl +++ b/templates/repo/pulls/tab_menu.tmpl @@ -1,17 +1,17 @@ \ No newline at end of file + + + {{$.i18n.Tr "repo.pulls.tab_conversation"}} + {{.Issue.NumComments}} + + + + {{$.i18n.Tr "repo.pulls.tab_commits"}} + {{if .NumCommits}}{{.NumCommits}}{{else}}N/A{{end}} + + + + {{$.i18n.Tr "repo.pulls.tab_files"}} + {{if .NumFiles}}{{.NumFiles}}{{else}}N/A{{end}} + + diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl index 5970bda3d2..295ca0b3bd 100644 --- a/templates/repo/release/list.tmpl +++ b/templates/repo/release/list.tmpl @@ -1,80 +1,80 @@ {{template "base/head" .}}
- {{template "repo/header" .}} -
- {{template "base/alert" .}} -

- {{.i18n.Tr "repo.release.releases"}} - {{if .IsRepositoryAdmin}} - - {{end}} -

- -
+ {{template "repo/header" .}} +
+ {{template "base/alert" .}} +

+ {{.i18n.Tr "repo.release.releases"}} + {{if .IsRepositoryAdmin}} + + {{end}} +

+ +
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/repo/release/new.tmpl b/templates/repo/release/new.tmpl index 7129cf6b56..e334ee749e 100644 --- a/templates/repo/release/new.tmpl +++ b/templates/repo/release/new.tmpl @@ -1,98 +1,98 @@ {{template "base/head" .}}
- {{template "repo/header" .}} -
-

- {{if .PageIsEditRelease}} - {{.i18n.Tr "repo.release.edit_release"}} -
{{.i18n.Tr "repo.release.edit_subheader"}}
- {{else}} - {{.i18n.Tr "repo.release.new_release"}} -
{{.i18n.Tr "repo.release.new_subheader"}}
- {{end}} -

- {{template "base/alert" .}} -
- {{.CsrfTokenHtml}} -
-
- {{if .PageIsEditRelease}} - {{.tag_name}}@{{.tag_target}} - {{else}} - - @ - - {{.i18n.Tr "repo.release.tag_helper"}} - {{end}} -
-
-
-
- - -
-
- - -
-
-
-
-
-
-
- - -
-
- {{.i18n.Tr "repo.release.prerelease_helper"}} -
- {{if .PageIsEditRelease}} - - {{.i18n.Tr "repo.release.cancel"}} - - - - {{$.i18n.Tr "repo.release.delete_release"}} - - {{else}} - - - {{end}} -
-
-
-
-
+ {{template "repo/header" .}} +
+

+ {{if .PageIsEditRelease}} + {{.i18n.Tr "repo.release.edit_release"}} +
{{.i18n.Tr "repo.release.edit_subheader"}}
+ {{else}} + {{.i18n.Tr "repo.release.new_release"}} +
{{.i18n.Tr "repo.release.new_subheader"}}
+ {{end}} +

+ {{template "base/alert" .}} +
+ {{.CsrfTokenHtml}} +
+
+ {{if .PageIsEditRelease}} + {{.tag_name}}@{{.tag_target}} + {{else}} + + @ + + {{.i18n.Tr "repo.release.tag_helper"}} + {{end}} +
+
+
+
+ + +
+
+ + +
+
+
+
+
+
+
+ + +
+
+ {{.i18n.Tr "repo.release.prerelease_helper"}} +
+ {{if .PageIsEditRelease}} + + {{.i18n.Tr "repo.release.cancel"}} + + + + {{$.i18n.Tr "repo.release.delete_release"}} + + {{else}} + + + {{end}} +
+
+
+
+
{{if .PageIsEditRelease}} - + {{end}} -{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/repo/settings/collaboration.tmpl b/templates/repo/settings/collaboration.tmpl index 651c453cd5..57b76fd8bf 100644 --- a/templates/repo/settings/collaboration.tmpl +++ b/templates/repo/settings/collaboration.tmpl @@ -7,37 +7,37 @@
{{template "base/alert" .}}

- {{.i18n.Tr "repo.settings.collaboration"}} + {{.i18n.Tr "repo.settings.collaboration"}}

- {{range .Collaborators}} -
- {{if not (eq .Id $.Owner.Id)}} - - {{end}} - - - {{.DisplayName}} - -
- {{end}} -
-
-
- {{.CsrfTokenHtml}} -
-
-
- -
-
-
-
- -
-
-
- + {{range .Collaborators}} +
+ {{if not (eq .Id $.Owner.Id)}} + + {{end}} + + + {{.DisplayName}} + +
+ {{end}} + +
+
+ {{.CsrfTokenHtml}} +
+
+
+ +
+
+
+
+ +
+
+ + -{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/repo/settings/deploy_keys.tmpl b/templates/repo/settings/deploy_keys.tmpl index 5406d0433d..1f6b26a6da 100644 --- a/templates/repo/settings/deploy_keys.tmpl +++ b/templates/repo/settings/deploy_keys.tmpl @@ -7,41 +7,41 @@
{{template "base/alert" .}}

- {{.i18n.Tr "repo.settings.deploy_keys"}} -
-
{{.i18n.Tr "repo.settings.add_deploy_key"}}
-
+ {{.i18n.Tr "repo.settings.deploy_keys"}} +
+
{{.i18n.Tr "repo.settings.add_deploy_key"}}
+

{{if .Deploykeys}} -
- {{range .Deploykeys}} -
-
- -
-
- -
-
- {{.Name}} -
- {{.Fingerprint}} +
+ {{range .Deploykeys}} +
+
+ +
+
+ +
+
+ {{.Name}} +
+ {{.Fingerprint}} +
+
+ {{$.i18n.Tr "settings.add_on"}} {{DateFmtShort .Created}} {{if .HasUsed}}{{$.i18n.Tr "settings.last_used"}} {{DateFmtShort .Updated}}{{else}}{{$.i18n.Tr "settings.no_activity"}}{{end}} +
+
+
+ +
-
- {{$.i18n.Tr "settings.add_on"}} {{DateFmtShort .Created}} {{if .HasUsed}}{{$.i18n.Tr "settings.last_used"}} {{DateFmtShort .Updated}}{{else}}{{$.i18n.Tr "settings.no_activity"}}{{end}} -
-
-
- -
+ {{end}}
- {{end}} -
{{else}} - {{.i18n.Tr "repo.settings.no_deploy_keys"}} + {{.i18n.Tr "repo.settings.no_deploy_keys"}} {{end}}

@@ -75,22 +75,22 @@
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/repo/settings/githook_edit.tmpl b/templates/repo/settings/githook_edit.tmpl index b9b75a3aa6..22c278fe4f 100644 --- a/templates/repo/settings/githook_edit.tmpl +++ b/templates/repo/settings/githook_edit.tmpl @@ -7,30 +7,30 @@
{{template "base/alert" .}}

- {{.i18n.Tr "repo.settings.githooks"}} + {{.i18n.Tr "repo.settings.githooks"}}

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

-
- {{.CsrfTokenHtml}} - {{with .Hook}} -
- - {{.Name}} -
-
- - -
+ + {{.CsrfTokenHtml}} + {{with .Hook}} +
+ + {{.Name}} +
+
+ + +
-
- -
- {{end}} -
+
+ +
+ {{end}} +
-
-
+
+ -{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/repo/settings/githooks.tmpl b/templates/repo/settings/githooks.tmpl index 8120b80e17..8d8923b475 100644 --- a/templates/repo/settings/githooks.tmpl +++ b/templates/repo/settings/githooks.tmpl @@ -7,24 +7,24 @@
{{template "base/alert" .}}

- {{.i18n.Tr "repo.settings.githooks"}} + {{.i18n.Tr "repo.settings.githooks"}}

-
-
- {{.i18n.Tr "repo.settings.githooks_desc" | Str2html}} -
- {{range .Hooks}} +
- - {{.Name}} - + {{.i18n.Tr "repo.settings.githooks_desc" | Str2html}}
- {{end}} -
-
-
-
+ {{range .Hooks}} +
+ + {{.Name}} + +
+ {{end}} + + + + -{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/repo/settings/hook_delete_modal.tmpl b/templates/repo/settings/hook_delete_modal.tmpl index bafd1ce93c..2a2a7c8da2 100644 --- a/templates/repo/settings/hook_delete_modal.tmpl +++ b/templates/repo/settings/hook_delete_modal.tmpl @@ -1,19 +1,19 @@ \ No newline at end of file +
+ + {{.i18n.Tr "repo.settings.webhook_deletion"}} +
+
+

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

+
+
+
+ + {{.i18n.Tr "modal.no"}} +
+
+ + {{.i18n.Tr "modal.yes"}} +
+
+ diff --git a/templates/repo/settings/hook_gogs.tmpl b/templates/repo/settings/hook_gogs.tmpl index b0b3311a55..633577d8a9 100644 --- a/templates/repo/settings/hook_gogs.tmpl +++ b/templates/repo/settings/hook_gogs.tmpl @@ -1,28 +1,28 @@ {{if eq .HookType "gogs"}} -

{{.i18n.Tr "repo.settings.add_webhook_desc" "http://gogs.io/docs/features/webhook.html" | Str2html}}

-
- {{.CsrfTokenHtml}} -
- - -
-
- - -
- -
- - -
- {{template "repo/settings/hook_settings" .}} -
+

{{.i18n.Tr "repo.settings.add_webhook_desc" "http://gogs.io/docs/features/webhook.html" | Str2html}}

+
+ {{.CsrfTokenHtml}} +
+ + +
+
+ + +
+ +
+ + +
+ {{template "repo/settings/hook_settings" .}} +
{{end}} diff --git a/templates/repo/settings/hook_history.tmpl b/templates/repo/settings/hook_history.tmpl index 15957a6790..9ded6a7905 100644 --- a/templates/repo/settings/hook_history.tmpl +++ b/templates/repo/settings/hook_history.tmpl @@ -1,73 +1,73 @@ {{if .PageIsSettingsHooksEdit}} -

- {{.i18n.Tr "repo.settings.recent_deliveries"}} - {{if .IsRepositoryAdmin}} -
- -
- {{end}} -

-
-
- {{range .History}} -
-
- {{if .IsSucceed}} - - {{else}} - - {{end}} - {{.UUID}} -
- - {{.DeliveredString}} - -
+

+ {{.i18n.Tr "repo.settings.recent_deliveries"}} + {{if .IsRepositoryAdmin}} +
+
-

+
+
+ {{range .History}} +
+
+ {{if .IsSucceed}} + + {{else}} + + {{end}} + {{.UUID}} +
+ + {{.DeliveredString}} + +
+
+
+ +
+ {{if .RequestInfo}} +
{{$.i18n.Tr "repo.settings.webhook.headers"}}
+
Request URL: {{.URL}}
 Request method: POST
 {{ range $key, $val := .RequestInfo.Headers }}{{$key}}: {{$val}}
 {{end}}
-
{{$.i18n.Tr "repo.settings.webhook.payload"}}
-
{{.PayloadContent}}
- {{else}} - N/A - {{end}} -
-
- {{if .ResponseInfo}} -
{{$.i18n.Tr "repo.settings.webhook.headers"}}
-
{{ range $key, $val := .ResponseInfo.Headers }}{{$key}}: {{$val}}
+								
{{$.i18n.Tr "repo.settings.webhook.payload"}}
+
{{.PayloadContent}}
+ {{else}} + N/A + {{end}} +
+
+ {{if .ResponseInfo}} +
{{$.i18n.Tr "repo.settings.webhook.headers"}}
+
{{ range $key, $val := .ResponseInfo.Headers }}{{$key}}: {{$val}}
 {{end}}
-
{{$.i18n.Tr "repo.settings.webhook.body"}}
-
{{.ResponseInfo.Body}}
- {{else}} - N/A - {{end}} +
{{$.i18n.Tr "repo.settings.webhook.body"}}
+
{{.ResponseInfo.Body}}
+ {{else}} + N/A + {{end}} +
+
-
+ {{end}}
- {{end}}
-
-{{end}} \ No newline at end of file +{{end}} diff --git a/templates/repo/settings/hook_list.tmpl b/templates/repo/settings/hook_list.tmpl index b5c086bb84..471d9f9bf1 100644 --- a/templates/repo/settings/hook_list.tmpl +++ b/templates/repo/settings/hook_list.tmpl @@ -1,44 +1,44 @@
{{template "base/alert" .}}

- {{.i18n.Tr "repo.settings.hooks"}} -
- -
-

-
-
-
- {{.Description | Str2html}} -
- {{range .Webhooks}} -
- {{if eq .LastStatus 1}} - - {{else if eq .LastStatus 2}} - - {{else}} - - {{end}} - {{.URL}} -
- - + {{.i18n.Tr "repo.settings.hooks"}} +
+ - {{end}} -
-
+
+ +
+
+
+ {{.Description | Str2html}} +
+ {{range .Webhooks}} +
+ {{if eq .LastStatus 1}} + + {{else if eq .LastStatus 2}} + + {{else}} + + {{end}} + {{.URL}} +
+ + +
+
+ {{end}} +
+
-{{template "repo/settings/hook_delete_modal" .}} \ No newline at end of file +{{template "repo/settings/hook_delete_modal" .}} diff --git a/templates/repo/settings/hook_new.tmpl b/templates/repo/settings/hook_new.tmpl index 7c9a5de1f0..96123525bb 100644 --- a/templates/repo/settings/hook_new.tmpl +++ b/templates/repo/settings/hook_new.tmpl @@ -7,22 +7,22 @@
{{template "base/alert" .}}

- {{if .PageIsSettingsHooksNew}}{{.i18n.Tr "repo.settings.add_webhook"}}{{else}}{{.i18n.Tr "repo.settings.update_webhook"}}{{end}} -
- {{if eq .HookType "gogs"}} - - {{else if eq .HookType "slack"}} - - {{end}} -
+ {{if .PageIsSettingsHooksNew}}{{.i18n.Tr "repo.settings.add_webhook"}}{{else}}{{.i18n.Tr "repo.settings.update_webhook"}}{{end}} +
+ {{if eq .HookType "gogs"}} + + {{else if eq .HookType "slack"}} + + {{end}} +

- {{template "repo/settings/hook_gogs" .}} - {{template "repo/settings/hook_slack" .}} -
+ {{template "repo/settings/hook_gogs" .}} + {{template "repo/settings/hook_slack" .}} +
{{template "repo/settings/hook_history" .}} -
+
diff --git a/templates/repo/settings/hook_settings.tmpl b/templates/repo/settings/hook_settings.tmpl index 18a480e016..76d3ac2935 100644 --- a/templates/repo/settings/hook_settings.tmpl +++ b/templates/repo/settings/hook_settings.tmpl @@ -1,66 +1,66 @@
-

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

+

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

-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
-
- -
-
-
- - - {{.i18n.Tr "repo.settings.event_create_desc"}} -
-
-
- -
-
-
- - - {{.i18n.Tr "repo.settings.event_push_desc"}} -
-
-
-
+
+ +
+
+
+ + + {{.i18n.Tr "repo.settings.event_create_desc"}} +
+
+
+ +
+
+
+ + + {{.i18n.Tr "repo.settings.event_push_desc"}} +
+
+
+
-
- - - {{.i18n.Tr "repo.settings.active_helper"}} -
+
+ + + {{.i18n.Tr "repo.settings.active_helper"}} +
{{if .PageIsSettingsHooksNew}} - - {{else}} - - {{.i18n.Tr "repo.settings.delete_webhook"}} - {{end}} + + {{else}} + + {{.i18n.Tr "repo.settings.delete_webhook"}} + {{end}}
{{template "repo/settings/hook_delete_modal" .}} diff --git a/templates/repo/settings/hook_slack.tmpl b/templates/repo/settings/hook_slack.tmpl index b0ebce9280..9333ae0c37 100644 --- a/templates/repo/settings/hook_slack.tmpl +++ b/templates/repo/settings/hook_slack.tmpl @@ -1,28 +1,28 @@ {{if eq .HookType "slack"}} -

{{.i18n.Tr "repo.settings.add_slack_hook_desc" "http://slack.com" | Str2html}}

-
- {{.CsrfTokenHtml}} -
- - -
-
- - -
+

{{.i18n.Tr "repo.settings.add_slack_hook_desc" "http://slack.com" | Str2html}}

+ + {{.CsrfTokenHtml}} +
+ + +
+
+ + +
-
- - -
-
- - -
-
- - -
- {{template "repo/settings/hook_settings" .}} -
+
+ + +
+
+ + +
+
+ + +
+ {{template "repo/settings/hook_settings" .}} + {{end}} diff --git a/templates/repo/settings/hooks.tmpl b/templates/repo/settings/hooks.tmpl index e3f6f4ddae..a405b44698 100644 --- a/templates/repo/settings/hooks.tmpl +++ b/templates/repo/settings/hooks.tmpl @@ -5,7 +5,7 @@
{{template "repo/settings/navbar" .}} {{template "repo/settings/hook_list" .}} -
+ -{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/repo/settings/nav.tmpl b/templates/repo/settings/nav.tmpl index 06bad9689d..97df429f2c 100644 --- a/templates/repo/settings/nav.tmpl +++ b/templates/repo/settings/nav.tmpl @@ -1,14 +1,14 @@ \ No newline at end of file +

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

+ + diff --git a/templates/repo/settings/navbar.tmpl b/templates/repo/settings/navbar.tmpl index 512ee3002d..7ebf2886c9 100644 --- a/templates/repo/settings/navbar.tmpl +++ b/templates/repo/settings/navbar.tmpl @@ -1,22 +1,22 @@ diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index f3734557d9..767f164a03 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -7,121 +7,121 @@
{{template "base/alert" .}}

- {{.i18n.Tr "repo.settings.basic_settings"}} + {{.i18n.Tr "repo.settings.basic_settings"}}

{{.CsrfTokenHtml}} - -
- - -
-
- - -
-
- - -
+ +
+ + +
+
+ + +
+
+ + +
- {{if not .Repository.IsBare}} -
- - -
- {{end}} - {{if not .Repository.IsFork}} -
- -
- - -
-
- {{end}} - {{if .Repository.IsMirror}} -
- - -
- {{end}} - -
-
- -
+ {{if not .Repository.IsBare}} +
+ + +
+ {{end}} + {{if not .Repository.IsFork}} +
+ +
+ + +
+
+ {{end}} + {{if .Repository.IsMirror}} +
+ + +
+ {{end}} + +
+
+ +
-
+
-

- {{.i18n.Tr "repo.settings.advanced_settings"}} -

-
-
- {{.CsrfTokenHtml}} - +

+ {{.i18n.Tr "repo.settings.advanced_settings"}} +

+
+ + {{.CsrfTokenHtml}} + -
- -
- - -
-
+
+ +
+ + +
+
-
+
-
- -
- - -
-
-
-
- - -
-
-
- - -

{{.i18n.Tr "repo.settings.tracker_url_format_desc" | Str2html}}

-
+
+ +
+ + +
+
+
+
+ + +
+
+
+ + +

{{.i18n.Tr "repo.settings.tracker_url_format_desc" | Str2html}}

+
-
+
-
- -
- - -
-
- -
-
- -
- -
+
+ +
+ + +
+
-

- {{.i18n.Tr "repo.settings.danger_zone"}} -

-
+
+
+ +
+ +
+ +

+ {{.i18n.Tr "repo.settings.danger_zone"}} +

+
@@ -131,7 +131,7 @@

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

- +
@@ -143,23 +143,23 @@

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

-
- - - + + + + +{{template "base/footer" .}} diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 5751d2e3dd..cf6198195a 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -1,50 +1,50 @@
-

- {{if .ReadmeExist}} - - {{if .ReadmeInList}} - {{.FileName}} - {{else}} - {{.FileName}} {{FileSize .FileSize}} - {{end}} - {{else}} - - {{.FileName}} {{FileSize .FileSize}} - {{end}} - {{if not .ReadmeInList}} - - {{end}} -

-
-
- {{if .ReadmeExist}} - {{if .FileContent}}{{.FileContent | Str2html}}{{end}} - {{else if not .IsFileText}} -
- {{if .IsImageFile}} - - {{else}} - {{.i18n.Tr "repo.file_view_raw"}} - {{end}} -
- {{else if .FileSize}} - - - - - - - -
    {{.FileContent}}
- {{end}} -
-
-
\ No newline at end of file +

+ {{if .ReadmeExist}} + + {{if .ReadmeInList}} + {{.FileName}} + {{else}} + {{.FileName}} {{FileSize .FileSize}} + {{end}} + {{else}} + + {{.FileName}} {{FileSize .FileSize}} + {{end}} + {{if not .ReadmeInList}} + + {{end}} +

+
+
+ {{if .ReadmeExist}} + {{if .FileContent}}{{.FileContent | Str2html}}{{end}} + {{else if not .IsFileText}} +
+ {{if .IsImageFile}} + + {{else}} + {{.i18n.Tr "repo.file_view_raw"}} + {{end}} +
+ {{else if .FileSize}} + + + + + + + +
    {{.FileContent}}
+ {{end}} +
+
+ diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index 887ce8e251..d94dc96e25 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -1,56 +1,56 @@ - - - - - - - - - {{if .HasParentPath}} - - - - {{end}} - {{range $item := .Files}} - {{$entry := index $item 0}} - {{$commit := index $item 1}} - - {{if $entry.IsSubModule}} - - {{else}} - - {{end}} - - - - {{end}} - + + + + + + + + + {{if .HasParentPath}} + + + + {{end}} + {{range $item := .Files}} + {{$entry := index $item 0}} + {{$commit := index $item 1}} + + {{if $entry.IsSubModule}} + + {{else}} + + {{end}} + + + + {{end}} +
- {{if .LastCommitUser}} - - {{.LastCommit.Author.Name}} - {{else}} - - {{.LastCommit.Author.Name}} - {{end}} - {{ShortSha .LastCommit.ID.String}} - {{RenderCommitMessage false .LastCommit.Summary .RepoLink $.Repository.ComposeMetas}} - - {{TimeSince .LastCommit.Author.When $.Lang}}
..
- - {{if $commit.RefUrl}} - {{$entry.Name}} @ {{ShortSha $commit.RefId}} - {{else}} - {{$entry.Name}} @ {{ShortSha $commit.RefId}} - {{end}} - - - {{$entry.Name}} - - {{ShortSha $commit.ID.String}} - {{RenderCommitMessage false $commit.Summary $.RepoLink $.Repository.ComposeMetas}} - {{TimeSince $commit.Committer.When $.Lang}}
+ {{if .LastCommitUser}} + + {{.LastCommit.Author.Name}} + {{else}} + + {{.LastCommit.Author.Name}} + {{end}} + {{ShortSha .LastCommit.ID.String}} + {{RenderCommitMessage false .LastCommit.Summary .RepoLink $.Repository.ComposeMetas}} + + {{TimeSince .LastCommit.Author.When $.Lang}}
..
+ + {{if $commit.RefUrl}} + {{$entry.Name}} @ {{ShortSha $commit.RefId}} + {{else}} + {{$entry.Name}} @ {{ShortSha $commit.RefId}} + {{end}} + + + {{$entry.Name}} + + {{ShortSha $commit.ID.String}} + {{RenderCommitMessage false $commit.Summary $.RepoLink $.Repository.ComposeMetas}} + {{TimeSince $commit.Committer.When $.Lang}}
{{if .ReadmeExist}} - {{template "repo/view_file" .}} + {{template "repo/view_file" .}} {{end}} diff --git a/templates/repo/watchers.tmpl b/templates/repo/watchers.tmpl index 7802cea324..d87d9b7a3c 100644 --- a/templates/repo/watchers.tmpl +++ b/templates/repo/watchers.tmpl @@ -1,56 +1,56 @@ {{template "base/head" .}}
- {{template "repo/header" .}} -
-

- {{if .PageIsWatchers}} - {{.i18n.Tr "repo.watchers"}} - {{else}} - {{.i18n.Tr "repo.stargazers"}} - {{end}} -

-
    - {{range .Watchers}} -
  • - - - -

    {{.DisplayName}}

    + {{template "repo/header" .}} +
    +

    + {{if .PageIsWatchers}} + {{.i18n.Tr "repo.watchers"}} + {{else}} + {{.i18n.Tr "repo.stargazers"}} + {{end}} +

    +
      + {{range .Watchers}} +
    • + + + +

      {{.DisplayName}}

      -
      - {{if .Website}} - {{.Website}} - {{else if .Location}} - {{.Location}} - {{else}} - {{$.i18n.Tr "user.join_on"}} {{DateFmtShort .Created}} - {{end}} -
      -
    • - {{end}} -
    - - {{with .Page}} - {{if gt .TotalPages 1}} -
    - -
    - {{end}} - {{end}} -
    +
    + {{if .Website}} + {{.Website}} + {{else if .Location}} + {{.Location}} + {{else}} + {{$.i18n.Tr "user.join_on"}} {{DateFmtShort .Created}} + {{end}} +
    +
  • + {{end}} +
+ + {{with .Page}} + {{if gt .TotalPages 1}} +
+ +
+ {{end}} + {{end}} +
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/repo/wiki/new.tmpl b/templates/repo/wiki/new.tmpl index 09c33415ba..0e96f58bcc 100644 --- a/templates/repo/wiki/new.tmpl +++ b/templates/repo/wiki/new.tmpl @@ -1,34 +1,34 @@ {{template "base/head" .}}
- {{template "repo/header" .}} -
- {{template "base/alert" .}} -
- {{.i18n.Tr "repo.wiki.new_page"}} - {{if .PageIsWikiEdit}} - - {{end}} -
-
- {{.CsrfTokenHtml}} - -
- -
-
- -
-
- -
-
- -
-
+ {{template "repo/header" .}} +
+ {{template "base/alert" .}} +
+ {{.i18n.Tr "repo.wiki.new_page"}} + {{if .PageIsWikiEdit}} + + {{end}} +
+
+ {{.CsrfTokenHtml}} + +
+ +
+
+ +
+
+ +
+
+ +
+
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/repo/wiki/pages.tmpl b/templates/repo/wiki/pages.tmpl index 468357a63f..602a49cb74 100644 --- a/templates/repo/wiki/pages.tmpl +++ b/templates/repo/wiki/pages.tmpl @@ -1,27 +1,27 @@ {{template "base/head" .}}
{{template "repo/header" .}} -
-
- {{.i18n.Tr "repo.wiki.pages"}} - -
- - - {{range .Pages}} - - - {{$timeSince := TimeSince .Updated $.Lang}} - - - {{end}} - -
- - {{.Name}} - {{$.i18n.Tr "repo.wiki.last_updated" $timeSince | Safe}}
+
+
+ {{.i18n.Tr "repo.wiki.pages"}} + +
+ + + {{range .Pages}} + + + {{$timeSince := TimeSince .Updated $.Lang}} + + + {{end}} + +
+ + {{.Name}} + {{$.i18n.Tr "repo.wiki.last_updated" $timeSince | Safe}}
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/repo/wiki/start.tmpl b/templates/repo/wiki/start.tmpl index 8174323dcd..26d7fefdcc 100644 --- a/templates/repo/wiki/start.tmpl +++ b/templates/repo/wiki/start.tmpl @@ -1,15 +1,15 @@ {{template "base/head" .}}
{{template "repo/header" .}} -
-
- -

{{.i18n.Tr "repo.wiki.welcome"}}

-

{{.i18n.Tr "repo.wiki.welcome_desc"}}

- {{if .IsRepositoryPusher}} - {{.i18n.Tr "repo.wiki.create_first_page"}} - {{end}} -
+
+
+ +

{{.i18n.Tr "repo.wiki.welcome"}}

+

{{.i18n.Tr "repo.wiki.welcome_desc"}}

+ {{if .IsRepositoryPusher}} + {{.i18n.Tr "repo.wiki.create_first_page"}} + {{end}} +
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl index c052bedb7d..cd7642bcc2 100644 --- a/templates/repo/wiki/view.tmpl +++ b/templates/repo/wiki/view.tmpl @@ -1,72 +1,72 @@ {{template "base/head" .}}
{{template "repo/header" .}} -
-
-
-
- -
-
-
-
- {{if not $.DisableSSH}} - - {{end}} - - - - -
-
-
-
- {{.title}} - {{if .IsRepositoryPusher}} - - {{end}} -
- {{$timeSince := TimeSince .Author.When $.Lang}} - {{.i18n.Tr "repo.wiki.last_commit_info" .Author.Name $timeSince | Safe}} -
-
+
+
+
+
+ +
+
+
+
+ {{if not $.DisableSSH}} + + {{end}} + + + + +
+
+
+
+ {{.title}} + {{if .IsRepositoryPusher}} + + {{end}} +
+ {{$timeSince := TimeSince .Author.When $.Lang}} + {{.i18n.Tr "repo.wiki.last_commit_info" .Author.Name $timeSince | Safe}} +
+
{{.content | Str2html}}
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/status/404.tmpl b/templates/status/404.tmpl index a1b632df2a..776f4fb78e 100644 --- a/templates/status/404.tmpl +++ b/templates/status/404.tmpl @@ -1,9 +1,9 @@ {{template "base/head" .}}
-

404

-
-
- {{if .ShowFooterVersion}}

Application Version: {{AppVer}}

{{end}} -

If you think this is an error, please open an issue on GitHub.

+

404

+
+
+ {{if .ShowFooterVersion}}

Application Version: {{AppVer}}

{{end}} +

If you think this is an error, please open an issue on GitHub.

{{template "base/footer" .}} diff --git a/templates/status/500.tmpl b/templates/status/500.tmpl index 519a6f60f6..fba069eeb1 100644 --- a/templates/status/500.tmpl +++ b/templates/status/500.tmpl @@ -1,9 +1,9 @@ {{template "base/head" .}}
-

500

-
-
- {{if .ErrorMsg}}

An error has occurred : {{.ErrorMsg}}

{{end}} - {{if .ShowFooterVersion}}

Application Version: {{AppVer}}

{{end}} +

500

+
+
+ {{if .ErrorMsg}}

An error has occurred : {{.ErrorMsg}}

{{end}} + {{if .ShowFooterVersion}}

Application Version: {{AppVer}}

{{end}}
{{template "base/footer" .}} diff --git a/templates/user/auth/activate.tmpl b/templates/user/auth/activate.tmpl index 49419dcf6b..8bff54aaf4 100644 --- a/templates/user/auth/activate.tmpl +++ b/templates/user/auth/activate.tmpl @@ -1,38 +1,38 @@ {{template "base/head" .}}
-
-
-
- {{.CsrfTokenHtml}} -

- {{.i18n.Tr "auth.active_your_account"}} -

-
- {{template "base/alert" .}} - {{if .IsActivatePage}} - {{if .ServiceNotEnabled}} -

{{.i18n.Tr "auth.disable_register_mail"}}

- {{else if .ResendLimited}} -

{{.i18n.Tr "auth.resent_limit_prompt"}}

- {{else}} -

{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .SignedUser.Email .Hours | Str2html}}

- {{end}} - {{else}} - {{if .IsSendRegisterMail}} -

{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .Email .Hours | Str2html}}

- {{else if .IsActivateFailed}} -

{{.i18n.Tr "auth.invalid_code"}}

- {{else}} -

{{.i18n.Tr "auth.has_unconfirmed_mail" .SignedUser.Name .SignedUser.Email | Str2html}}

-
-
- -
- {{end}} - {{end}} -
-
-
-
+
+
+
+ {{.CsrfTokenHtml}} +

+ {{.i18n.Tr "auth.active_your_account"}} +

+
+ {{template "base/alert" .}} + {{if .IsActivatePage}} + {{if .ServiceNotEnabled}} +

{{.i18n.Tr "auth.disable_register_mail"}}

+ {{else if .ResendLimited}} +

{{.i18n.Tr "auth.resent_limit_prompt"}}

+ {{else}} +

{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .SignedUser.Email .Hours | Str2html}}

+ {{end}} + {{else}} + {{if .IsSendRegisterMail}} +

{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .Email .Hours | Str2html}}

+ {{else if .IsActivateFailed}} +

{{.i18n.Tr "auth.invalid_code"}}

+ {{else}} +

{{.i18n.Tr "auth.has_unconfirmed_mail" .SignedUser.Name .SignedUser.Email | Str2html}}

+
+
+ +
+ {{end}} + {{end}} +
+
+
+
{{template "base/footer" .}} diff --git a/templates/user/auth/forgot_passwd.tmpl b/templates/user/auth/forgot_passwd.tmpl index de141e67a3..f1c25df503 100644 --- a/templates/user/auth/forgot_passwd.tmpl +++ b/templates/user/auth/forgot_passwd.tmpl @@ -1,34 +1,34 @@ {{template "base/head" .}}
-
-
-
- {{.CsrfTokenHtml}} -

- {{.i18n.Tr "auth.forgot_password"}} -

-
- {{template "base/alert" .}} - {{if .IsResetSent}} -

{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .Email .Hours | Str2html}}

- {{else if .IsResetRequest}} -
- - -
-
-
- - -
- {{else if .IsResetDisable}} -

{{.i18n.Tr "auth.disable_register_mail"}}

- {{else if .ResendLimited}} -

{{.i18n.Tr "auth.resent_limit_prompt"}}

- {{end}} -
-
-
-
+
+
+
+ {{.CsrfTokenHtml}} +

+ {{.i18n.Tr "auth.forgot_password"}} +

+
+ {{template "base/alert" .}} + {{if .IsResetSent}} +

{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .Email .Hours | Str2html}}

+ {{else if .IsResetRequest}} +
+ + +
+
+
+ + +
+ {{else if .IsResetDisable}} +

{{.i18n.Tr "auth.disable_register_mail"}}

+ {{else if .ResendLimited}} +

{{.i18n.Tr "auth.resent_limit_prompt"}}

+ {{end}} +
+
+
+
{{template "base/footer" .}} diff --git a/templates/user/auth/reset_passwd.tmpl b/templates/user/auth/reset_passwd.tmpl index 5f06bd6494..cb124f5b25 100644 --- a/templates/user/auth/reset_passwd.tmpl +++ b/templates/user/auth/reset_passwd.tmpl @@ -1,31 +1,31 @@ {{template "base/head" .}}
-
-
-
- {{.CsrfTokenHtml}} - -

- {{.i18n.Tr "auth.reset_password"}} -

-
- {{template "base/alert" .}} - {{if .IsResetForm}} -
- - -
-
-
- - -
- {{else}} -

{{.i18n.Tr "auth.invalid_code"}}

- {{end}} -
-
-
-
+
+
+
+ {{.CsrfTokenHtml}} + +

+ {{.i18n.Tr "auth.reset_password"}} +

+
+ {{template "base/alert" .}} + {{if .IsResetForm}} +
+ + +
+
+
+ + +
+ {{else}} +

{{.i18n.Tr "auth.invalid_code"}}

+ {{end}} +
+
+
+
{{template "base/footer" .}} diff --git a/templates/user/auth/signin.tmpl b/templates/user/auth/signin.tmpl index a1e30e95cb..b928f2bdb5 100644 --- a/templates/user/auth/signin.tmpl +++ b/templates/user/auth/signin.tmpl @@ -1,44 +1,44 @@ {{template "base/head" .}} {{template "base/footer" .}} diff --git a/templates/user/auth/signup.tmpl b/templates/user/auth/signup.tmpl index c237a20d85..86c020d6bb 100644 --- a/templates/user/auth/signup.tmpl +++ b/templates/user/auth/signup.tmpl @@ -1,56 +1,56 @@ {{template "base/head" .}} -{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index 3bc6f9f6ca..eb7fa02fc1 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -1,115 +1,115 @@ {{template "base/head" .}}
- {{template "user/dashboard/navbar" .}} -
-
-
- {{template "user/dashboard/feeds" .}} -
-
- -
-

- {{.i18n.Tr "home.my_repos"}} {{.ContextUser.NumRepos}} - -

-
- -
+ {{template "user/dashboard/navbar" .}} +
+
+
+ {{template "user/dashboard/feeds" .}} +
+
+ +
+

+ {{.i18n.Tr "home.my_repos"}} {{.ContextUser.NumRepos}} + +

+
+ +
- {{if not .ContextUser.IsOrganization}} -

- {{.i18n.Tr "home.collaborative_repos"}} {{.CollaborateCount}} -

-
- -
- {{end}} -
+ {{if not .ContextUser.IsOrganization}} +

+ {{.i18n.Tr "home.collaborative_repos"}} {{.CollaborateCount}} +

+
+ +
+ {{end}} +
- {{if not .ContextUser.IsOrganization}} -
-

- {{.i18n.Tr "home.my_orgs"}} {{.ContextUser.GetOrganizationCount}} - -

-
- -
-
- {{end}} + {{if not .ContextUser.IsOrganization}} +
+

+ {{.i18n.Tr "home.my_orgs"}} {{.ContextUser.GetOrganizationCount}} + +

+
+ +
+
+ {{end}} -
-

- {{.i18n.Tr "home.my_mirrors"}} {{.MirrorCount}} - -

-
- -
-
-
-
-
+
+

+ {{.i18n.Tr "home.my_mirrors"}} {{.MirrorCount}} + +

+
+ +
+
+
+
+
-{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/user/dashboard/feeds.tmpl b/templates/user/dashboard/feeds.tmpl index fff1e16f60..e45fb4cfea 100644 --- a/templates/user/dashboard/feeds.tmpl +++ b/templates/user/dashboard/feeds.tmpl @@ -1,69 +1,69 @@ {{range .Feeds}} -
-
- -
-
-
-
-

- {{.GetActUserName}} - {{if eq .GetOpType 1}} - {{$.i18n.Tr "action.create_repo" .GetRepoLink .GetRepoPath | Str2html}} - {{else if eq .GetOpType 2}} - {{$.i18n.Tr "action.rename_repo" .GetContent .GetRepoLink .GetRepoPath | Str2html}} - {{else if eq .GetOpType 5}} - {{ $branchLink := .GetBranch | EscapePound}} - {{$.i18n.Tr "action.commit_repo" .GetRepoLink $branchLink .GetBranch .GetRepoPath | Str2html}} - {{else if eq .GetOpType 6}} - {{ $index := index .GetIssueInfos 0}} - {{$.i18n.Tr "action.create_issue" .GetRepoLink $index .GetRepoPath | Str2html}} - {{else if eq .GetOpType 7}} - {{ $index := index .GetIssueInfos 0}} - {{$.i18n.Tr "action.create_pull_request" .GetRepoLink $index .GetRepoPath | Str2html}} - {{else if eq .GetOpType 8}} - {{$.i18n.Tr "action.transfer_repo" .GetContent .GetRepoLink .GetRepoPath | Str2html}} - {{else if eq .GetOpType 9}} - {{$.i18n.Tr "action.push_tag" .GetRepoLink .GetBranch .GetRepoPath | Str2html}} - {{else if eq .GetOpType 10}} - {{ $index := index .GetIssueInfos 0}} - {{$.i18n.Tr "action.comment_issue" .GetRepoLink $index .GetRepoPath | Str2html}} - {{else if eq .GetOpType 11}} - {{ $index := index .GetIssueInfos 0}} - {{$.i18n.Tr "action.merge_pull_request" .GetRepoLink $index .GetRepoPath | Str2html}} - {{end}} -

- {{if eq .GetOpType 5}} -
- -
- {{else if eq .GetOpType 6}} - {{index .GetIssueInfos 1}} -

{{.GetIssueContent}}

- {{else if eq .GetOpType 7}} -

{{index .GetIssueInfos 1}}

- {{else if eq .GetOpType 10}} - {{.GetIssueTitle}} -

{{index .GetIssueInfos 1}}

- {{else if eq .GetOpType 11}} -

{{index .GetIssueInfos 1}}

- {{end}} -

{{TimeSince .GetCreate $.i18n.Lang}}

-
-
-
- -
-
-
-
-{{end}} \ No newline at end of file +
+
+ +
+
+
+
+

+ {{.GetActUserName}} + {{if eq .GetOpType 1}} + {{$.i18n.Tr "action.create_repo" .GetRepoLink .GetRepoPath | Str2html}} + {{else if eq .GetOpType 2}} + {{$.i18n.Tr "action.rename_repo" .GetContent .GetRepoLink .GetRepoPath | Str2html}} + {{else if eq .GetOpType 5}} + {{ $branchLink := .GetBranch | EscapePound}} + {{$.i18n.Tr "action.commit_repo" .GetRepoLink $branchLink .GetBranch .GetRepoPath | Str2html}} + {{else if eq .GetOpType 6}} + {{ $index := index .GetIssueInfos 0}} + {{$.i18n.Tr "action.create_issue" .GetRepoLink $index .GetRepoPath | Str2html}} + {{else if eq .GetOpType 7}} + {{ $index := index .GetIssueInfos 0}} + {{$.i18n.Tr "action.create_pull_request" .GetRepoLink $index .GetRepoPath | Str2html}} + {{else if eq .GetOpType 8}} + {{$.i18n.Tr "action.transfer_repo" .GetContent .GetRepoLink .GetRepoPath | Str2html}} + {{else if eq .GetOpType 9}} + {{$.i18n.Tr "action.push_tag" .GetRepoLink .GetBranch .GetRepoPath | Str2html}} + {{else if eq .GetOpType 10}} + {{ $index := index .GetIssueInfos 0}} + {{$.i18n.Tr "action.comment_issue" .GetRepoLink $index .GetRepoPath | Str2html}} + {{else if eq .GetOpType 11}} + {{ $index := index .GetIssueInfos 0}} + {{$.i18n.Tr "action.merge_pull_request" .GetRepoLink $index .GetRepoPath | Str2html}} + {{end}} +

+ {{if eq .GetOpType 5}} +
+ +
+ {{else if eq .GetOpType 6}} + {{index .GetIssueInfos 1}} +

{{.GetIssueContent}}

+ {{else if eq .GetOpType 7}} +

{{index .GetIssueInfos 1}}

+ {{else if eq .GetOpType 10}} + {{.GetIssueTitle}} +

{{index .GetIssueInfos 1}}

+ {{else if eq .GetOpType 11}} +

{{index .GetIssueInfos 1}}

+ {{end}} +

{{TimeSince .GetCreate $.i18n.Lang}}

+
+
+
+ +
+
+
+
+{{end}} diff --git a/templates/user/dashboard/issues.tmpl b/templates/user/dashboard/issues.tmpl index 678dfecfc6..a99a478170 100644 --- a/templates/user/dashboard/issues.tmpl +++ b/templates/user/dashboard/issues.tmpl @@ -1,43 +1,43 @@ {{template "base/head" .}}
- {{template "user/dashboard/navbar" .}} -
-
- + {{template "user/dashboard/navbar" .}} +
+
+
{{range .Issues}} - {{ $timeStr:= TimeSince .Created $.Lang }} -
  • -
    {{if not $.RepoID}}{{.Repo.Name}}{{end}}#{{.Index}}
    - {{.Name}} + {{ $timeStr:= TimeSince .Created $.Lang }} +
  • +
    {{if not $.RepoID}}{{.Repo.Name}}{{end}}#{{.Index}}
    + {{.Name}} - {{if .NumComments}} - {{.NumComments}} - {{end}} + {{if .NumComments}} + {{.NumComments}} + {{end}} -

    - {{$.i18n.Tr "repo.issues.opened_by" $timeStr .Poster.HomeLink .Poster.Name | Safe}} - {{if .Assignee}} - - - - {{end}} -

    -
  • - {{end}} - - {{with .Page}} - {{if gt .TotalPages 1}} -
    - -
    +

    + {{$.i18n.Tr "repo.issues.opened_by" $timeStr .Poster.HomeLink .Poster.Name | Safe}} + {{if .Assignee}} + + + + {{end}} +

    + {{end}} + + {{with .Page}} + {{if gt .TotalPages 1}} +
    + +
    + {{end}} {{end}}
    -
    -
    +
    +
    {{template "base/footer" .}} diff --git a/templates/user/dashboard/navbar.tmpl b/templates/user/dashboard/navbar.tmpl index eb74191702..c31f0b5542 100644 --- a/templates/user/dashboard/navbar.tmpl +++ b/templates/user/dashboard/navbar.tmpl @@ -1,53 +1,53 @@
    - - {{if .ContextUser.IsOrganization}} - - {{end}} + {{if .ContextUser.IsOrganization}} + + {{end}}
    -
    \ No newline at end of file +
    diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index a17261d138..f571f3a090 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -1,69 +1,69 @@ {{template "base/head" .}}
    -
    -
    -
    -
    - {{if and (.Owner.UseCustomAvatar) (eq .SignedUserName .Owner.Name)}} - - - - {{else if eq .SignedUserName .Owner.Name}} - - - - {{else}} - - - - {{end}} -
    - {{if .Owner.FullName}}{{.Owner.FullName}}{{end}} - {{.Owner.Name}} -
    -
    -
      - {{if .Owner.Location}} -
    • {{.Owner.Location}}
    • - {{end}} - {{if and .Owner.Email .IsSigned}} -
    • - - {{.Owner.Email}} -
    • - {{end}} - {{if .Owner.Website}} -
    • - - {{.Owner.Website}} -
    • - {{end}} -
    • {{.i18n.Tr "user.join_on"}} {{DateFmtShort .Owner.Created}}
    • -
    -
    -
    -
    -
    - - {{if ne .TabName "activity"}} - {{template "explore/repo_list" .}} - {{else}} -
    -
    - {{template "user/dashboard/feeds" .}} -
    - {{end}} -
    -
    -
    +
    +
    +
    +
    + {{if and (.Owner.UseCustomAvatar) (eq .SignedUserName .Owner.Name)}} + + + + {{else if eq .SignedUserName .Owner.Name}} + + + + {{else}} + + + + {{end}} +
    + {{if .Owner.FullName}}{{.Owner.FullName}}{{end}} + {{.Owner.Name}} +
    +
    +
      + {{if .Owner.Location}} +
    • {{.Owner.Location}}
    • + {{end}} + {{if and .Owner.Email .IsSigned}} +
    • + + {{.Owner.Email}} +
    • + {{end}} + {{if .Owner.Website}} +
    • + + {{.Owner.Website}} +
    • + {{end}} +
    • {{.i18n.Tr "user.join_on"}} {{DateFmtShort .Owner.Created}}
    • +
    +
    +
    +
    +
    + + {{if ne .TabName "activity"}} + {{template "explore/repo_list" .}} + {{else}} +
    +
    + {{template "user/dashboard/feeds" .}} +
    + {{end}} +
    +
    +
    -{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/user/settings/applications.tmpl b/templates/user/settings/applications.tmpl index 37de6d151f..b5bacf7765 100644 --- a/templates/user/settings/applications.tmpl +++ b/templates/user/settings/applications.tmpl @@ -1,85 +1,85 @@ {{template "base/head" .}}
    -
    -
    - {{template "user/settings/navbar" .}} -
    - {{template "base/alert" .}} -

    - {{.i18n.Tr "settings.manage_access_token"}} -
    -
    {{.i18n.Tr "settings.generate_new_token"}}
    -
    -

    -
    -
    -
    - {{.i18n.Tr "settings.tokens_desc"}} -
    - {{range .Tokens}} -
    -
    - -
    -
    - -
    -
    - {{.Name}} -
    - {{$.i18n.Tr "settings.add_on"}} {{DateFmtShort .Created}} {{if .HasUsed}}{{$.i18n.Tr "settings.last_used"}} {{DateFmtShort .Updated}}{{else}}{{$.i18n.Tr "settings.no_activity"}}{{end}} -
    -
    -
    - -
    -
    - {{end}} -
    -
    -
    -
    -

    - {{.i18n.Tr "settings.generate_new_token"}} -

    -
    -
    - {{.CsrfTokenHtml}} -

    {{.i18n.Tr "settings.new_token_desc"}}

    -
    - - -
    - -
    -
    -
    -
    -
    -
    +
    +
    + {{template "user/settings/navbar" .}} +
    + {{template "base/alert" .}} +

    + {{.i18n.Tr "settings.manage_access_token"}} +
    +
    {{.i18n.Tr "settings.generate_new_token"}}
    +
    +

    +
    +
    +
    + {{.i18n.Tr "settings.tokens_desc"}} +
    + {{range .Tokens}} +
    +
    + +
    +
    + +
    +
    + {{.Name}} +
    + {{$.i18n.Tr "settings.add_on"}} {{DateFmtShort .Created}} {{if .HasUsed}}{{$.i18n.Tr "settings.last_used"}} {{DateFmtShort .Updated}}{{else}}{{$.i18n.Tr "settings.no_activity"}}{{end}} +
    +
    +
    + +
    +
    + {{end}} +
    +
    +
    +
    +

    + {{.i18n.Tr "settings.generate_new_token"}} +

    +
    +
    + {{.CsrfTokenHtml}} +

    {{.i18n.Tr "settings.new_token_desc"}}

    +
    + + +
    + +
    +
    +
    +
    +
    +
    -{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/user/settings/delete.tmpl b/templates/user/settings/delete.tmpl index 6b490ad291..b95eb2105f 100644 --- a/templates/user/settings/delete.tmpl +++ b/templates/user/settings/delete.tmpl @@ -1,42 +1,42 @@ {{template "base/head" .}}
    -
    -
    - {{template "user/settings/navbar" .}} -
    - {{template "base/alert" .}} -

    - {{.i18n.Tr "settings.delete_account"}} -

    -
    -
    -

    {{.i18n.Tr "settings.delete_prompt" | Str2html}}

    -
    -
    - {{.CsrfTokenHtml}} - -
    - - -
    -
    - {{.i18n.Tr "settings.confirm_delete_account"}} -
    -
    -
    -
    -
    -
    +
    +
    + {{template "user/settings/navbar" .}} +
    + {{template "base/alert" .}} +

    + {{.i18n.Tr "settings.delete_account"}} +

    +
    +
    +

    {{.i18n.Tr "settings.delete_prompt" | Str2html}}

    +
    +
    + {{.CsrfTokenHtml}} + +
    + + +
    +
    + {{.i18n.Tr "settings.confirm_delete_account"}} +
    +
    +
    +
    +
    +
    -{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/user/settings/email.tmpl b/templates/user/settings/email.tmpl index a9667dde91..558145302f 100644 --- a/templates/user/settings/email.tmpl +++ b/templates/user/settings/email.tmpl @@ -1,70 +1,70 @@ {{template "base/head" .}}
    -
    -
    - {{template "user/settings/navbar" .}} -
    - {{template "base/alert" .}} -

    - {{.i18n.Tr "settings.manage_emails"}} -

    -
    - -
    -
    -
    - {{.CsrfTokenHtml}} -
    - - -
    - -
    -
    -
    -
    -
    +
    +
    + {{template "user/settings/navbar" .}} +
    + {{template "base/alert" .}} +

    + {{.i18n.Tr "settings.manage_emails"}} +

    +
    + +
    +
    +
    + {{.CsrfTokenHtml}} +
    + + +
    + +
    +
    +
    +
    +
    -{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/user/settings/navbar.tmpl b/templates/user/settings/navbar.tmpl index 5c8773a84b..87e24522b4 100644 --- a/templates/user/settings/navbar.tmpl +++ b/templates/user/settings/navbar.tmpl @@ -1,23 +1,23 @@ diff --git a/templates/user/settings/password.tmpl b/templates/user/settings/password.tmpl index d56952b19f..e29e807e96 100644 --- a/templates/user/settings/password.tmpl +++ b/templates/user/settings/password.tmpl @@ -1,36 +1,36 @@ {{template "base/head" .}}
    -
    -
    - {{template "user/settings/navbar" .}} -
    - {{template "base/alert" .}} -

    - {{.i18n.Tr "settings.change_password"}} -

    -
    -
    - {{.CsrfTokenHtml}} -
    - - -
    -
    - - -
    -
    - - -
    +
    +
    + {{template "user/settings/navbar" .}} +
    + {{template "base/alert" .}} +

    + {{.i18n.Tr "settings.change_password"}} +

    +
    + + {{.CsrfTokenHtml}} +
    + + +
    +
    + + +
    +
    + + +
    -
    - -
    - -
    -
    -
    -
    +
    + +
    + +
    +
    +
    +
    -{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/user/settings/profile.tmpl b/templates/user/settings/profile.tmpl index d9bf7af09a..37d5683671 100644 --- a/templates/user/settings/profile.tmpl +++ b/templates/user/settings/profile.tmpl @@ -1,70 +1,70 @@ {{template "base/head" .}}
    -
    -
    - {{template "user/settings/navbar" .}} -
    - {{template "base/alert" .}} -

    - {{.i18n.Tr "settings.public_profile"}} -

    -
    -

    {{.i18n.Tr "settings.profile_desc"}}

    -
    - {{.CsrfTokenHtml}} -
    - - -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    - - -
    +
    +
    + {{template "user/settings/navbar" .}} +
    + {{template "base/alert" .}} +

    + {{.i18n.Tr "settings.public_profile"}} +

    +
    +

    {{.i18n.Tr "settings.profile_desc"}}

    + + {{.CsrfTokenHtml}} +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    -
    - -
    - +
    + +
    + -
    +
    -
    - {{.CsrfTokenHtml}} -
    - -
    - - -
    -
    -
    - - -
    + + {{.CsrfTokenHtml}} +
    + +
    + + +
    +
    +
    + + +
    -
    - -
    -
    -
    -
    -
    -
    +
    + +
    + +
    +
    +
    +
    -{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} diff --git a/templates/user/settings/sshkeys.tmpl b/templates/user/settings/sshkeys.tmpl index 4c2177278b..33426fdc56 100644 --- a/templates/user/settings/sshkeys.tmpl +++ b/templates/user/settings/sshkeys.tmpl @@ -1,83 +1,83 @@ {{template "base/head" .}}
    -
    -
    - {{template "user/settings/navbar" .}} -
    - {{template "base/alert" .}} -

    - {{.i18n.Tr "settings.manage_ssh_keys"}} -
    -
    {{.i18n.Tr "settings.add_key"}}
    -
    -

    -
    -
    -
    - {{.i18n.Tr "settings.ssh_desc"}} -
    - {{range .Keys}} -
    -
    - -
    -
    - -
    -
    - {{.Name}} -
    - {{.Fingerprint}} -
    -
    - {{$.i18n.Tr "settings.add_on"}} {{DateFmtShort .Created}} {{if .HasUsed}}{{$.i18n.Tr "settings.last_used"}} {{DateFmtShort .Updated}}{{else}}{{$.i18n.Tr "settings.no_activity"}}{{end}} -
    -
    -
    - -
    -
    - {{end}} -
    -
    -
    -

    {{.i18n.Tr "settings.ssh_helper" "https://help.github.com/articles/generating-ssh-keys" "https://help.github.com/ssh-issues/" | Str2html}}

    -
    -

    - {{.i18n.Tr "settings.add_new_key"}} -

    -
    -
    - {{.CsrfTokenHtml}} -
    - - -
    -
    - - -
    - -
    -
    -
    -
    -
    -
    +
    +
    + {{template "user/settings/navbar" .}} +
    + {{template "base/alert" .}} +

    + {{.i18n.Tr "settings.manage_ssh_keys"}} +
    +
    {{.i18n.Tr "settings.add_key"}}
    +
    +

    +
    +
    +
    + {{.i18n.Tr "settings.ssh_desc"}} +
    + {{range .Keys}} +
    +
    + +
    +
    + +
    +
    + {{.Name}} +
    + {{.Fingerprint}} +
    +
    + {{$.i18n.Tr "settings.add_on"}} {{DateFmtShort .Created}} {{if .HasUsed}}{{$.i18n.Tr "settings.last_used"}} {{DateFmtShort .Updated}}{{else}}{{$.i18n.Tr "settings.no_activity"}}{{end}} +
    +
    +
    + +
    +
    + {{end}} +
    +
    +
    +

    {{.i18n.Tr "settings.ssh_helper" "https://help.github.com/articles/generating-ssh-keys" "https://help.github.com/ssh-issues/" | Str2html}}

    +
    +

    + {{.i18n.Tr "settings.add_new_key"}} +

    +
    +
    + {{.CsrfTokenHtml}} +
    + + +
    +
    + + +
    + +
    +
    +
    +
    +
    +
    -{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}}