From c5ce33047e77b03b8d6e289d2b250e15c65ae3d2 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 1 Sep 2014 00:33:40 +0800 Subject: Mirror fix and hide missing pages for 0.5 release --- templates/repo/header.tmpl | 4 ++-- templates/repo/home.tmpl | 18 +++++++++--------- templates/repo/settings/gogs_hook.tmpl | 23 ----------------------- templates/repo/settings/hook_gogs.tmpl | 23 +++++++++++++++++++++++ templates/repo/settings/hook_new.tmpl | 4 ++-- templates/repo/settings/hook_slack.tmpl | 20 ++++++++++++++++++++ templates/repo/settings/nav.tmpl | 2 +- templates/repo/settings/slack_hook.tmpl | 20 -------------------- templates/repo/sidebar.tmpl | 12 ++++++------ templates/user/dashboard/nav.tmpl | 10 ++++++---- 10 files changed, 69 insertions(+), 67 deletions(-) delete mode 100644 templates/repo/settings/gogs_hook.tmpl create mode 100644 templates/repo/settings/hook_gogs.tmpl create mode 100644 templates/repo/settings/hook_slack.tmpl delete mode 100644 templates/repo/settings/slack_hook.tmpl (limited to 'templates') diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 6f3d4c66ca..3812508248 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -44,14 +44,14 @@ -
  • + \ No newline at end of file diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 42b8bdd4b1..0947308477 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -9,11 +9,11 @@ {{.Repository.Website}}

    {{if .IsFile}} {{template "repo/view_file" .}} diff --git a/templates/repo/settings/gogs_hook.tmpl b/templates/repo/settings/gogs_hook.tmpl deleted file mode 100644 index 678d640baf..0000000000 --- a/templates/repo/settings/gogs_hook.tmpl +++ /dev/null @@ -1,23 +0,0 @@ -
    -
    - {{.CsrfTokenHtml}} - -
    {{.i18n.Tr "repo.settings.add_webhook_desc" | Str2html}}
    -
    - - -
    -
    - - -
    -
    - - -
    - {{template "repo/settings/hook_settings" .}} -
    -
    diff --git a/templates/repo/settings/hook_gogs.tmpl b/templates/repo/settings/hook_gogs.tmpl new file mode 100644 index 0000000000..35b5899532 --- /dev/null +++ b/templates/repo/settings/hook_gogs.tmpl @@ -0,0 +1,23 @@ +
    +
    + {{.CsrfTokenHtml}} + +
    {{.i18n.Tr "repo.settings.add_webhook_desc" | Str2html}}
    +
    + + +
    +
    + + +
    +
    + + +
    + {{template "repo/settings/hook_settings" .}} +
    +
    diff --git a/templates/repo/settings/hook_new.tmpl b/templates/repo/settings/hook_new.tmpl index 7a450282b1..2bce97a26b 100644 --- a/templates/repo/settings/hook_new.tmpl +++ b/templates/repo/settings/hook_new.tmpl @@ -14,8 +14,8 @@ {{if .PageIsSettingsHooksNew}}{{.i18n.Tr "repo.settings.add_webhook"}}{{else}}{{.i18n.Tr "repo.settings.update_webhook"}}{{end}} {{template "repo/settings/hook_types" .}} - {{template "repo/settings/gogs_hook" .}} - {{template "repo/settings/slack_hook" .}} + {{template "repo/settings/hook_gogs" .}} + {{template "repo/settings/hook_slack" .}} {{if .PageIsSettingsHooksEdit}} diff --git a/templates/repo/settings/hook_slack.tmpl b/templates/repo/settings/hook_slack.tmpl new file mode 100644 index 0000000000..50d28e2f5e --- /dev/null +++ b/templates/repo/settings/hook_slack.tmpl @@ -0,0 +1,20 @@ +
    +
    + {{.CsrfTokenHtml}} + +
    {{.i18n.Tr "repo.settings.add_slack_hook_desc" | Str2html}}
    +
    + + +
    +
    + + +
    +
    + + +
    + {{template "repo/settings/hook_settings" .}} +
    +
    diff --git a/templates/repo/settings/nav.tmpl b/templates/repo/settings/nav.tmpl index 6288ca6cd7..ef0765feac 100644 --- a/templates/repo/settings/nav.tmpl +++ b/templates/repo/settings/nav.tmpl @@ -5,7 +5,7 @@
  • {{.i18n.Tr "repo.settings.options"}}
  • {{.i18n.Tr "repo.settings.collaboration"}}
  • {{.i18n.Tr "repo.settings.hooks"}}
  • -
  • {{.i18n.Tr "repo.settings.deploy_keys"}}
  • + \ No newline at end of file diff --git a/templates/repo/settings/slack_hook.tmpl b/templates/repo/settings/slack_hook.tmpl deleted file mode 100644 index e68571a081..0000000000 --- a/templates/repo/settings/slack_hook.tmpl +++ /dev/null @@ -1,20 +0,0 @@ -
    -
    - {{.CsrfTokenHtml}} - -
    {{.i18n.Tr "repo.settings.add_slack_hook_desc" | Str2html}}
    -
    - - -
    -
    - - -
    -
    - - -
    - {{template "repo/settings/hook_settings" .}} -
    -
    diff --git a/templates/repo/sidebar.tmpl b/templates/repo/sidebar.tmpl index 39d999cabc..f671bfc1b1 100644 --- a/templates/repo/sidebar.tmpl +++ b/templates/repo/sidebar.tmpl @@ -3,23 +3,23 @@
  • Issues{{.Repository.NumOpenIssues}}
  • -
  • +
  • {{if .IsViewBranch}}{{.BranchName}}{{else}}{{ShortSha .BranchName}}{{end}}
  • Commits {{.CommitsCount}}
  • -
  • +
  • Releases {{.Repository.NumTags}}
  • -
  • +
  • settings diff --git a/templates/user/dashboard/nav.tmpl b/templates/user/dashboard/nav.tmpl index 6064f35692..c37447d3a6 100644 --- a/templates/user/dashboard/nav.tmpl +++ b/templates/user/dashboard/nav.tmpl @@ -24,21 +24,23 @@
  • {{end}} -
  • +
  • {{.i18n.Tr "new_org"}}
  • + {{if not .ContextUser.IsOrganization}}
  • {{.i18n.Tr "issues"}}
  • -
  • + {{end}} +
  • {{.i18n.Tr "news_feed"}}
  • -- cgit v1.2.3