From c5ce33047e77b03b8d6e289d2b250e15c65ae3d2 Mon Sep 17 00:00:00 2001
From: Unknwon
Date: Mon, 1 Sep 2014 00:33:40 +0800
Subject: [PATCH] Mirror fix and hide missing pages for 0.5 release
---
conf/locale/locale_zh-CN.ini | 5 +++++
templates/repo/header.tmpl | 4 ++--
templates/repo/home.tmpl | 18 +++++++++---------
.../{gogs_hook.tmpl => hook_gogs.tmpl} | 2 +-
templates/repo/settings/hook_new.tmpl | 4 ++--
.../{slack_hook.tmpl => hook_slack.tmpl} | 2 +-
templates/repo/settings/nav.tmpl | 2 +-
templates/repo/sidebar.tmpl | 12 ++++++------
templates/user/dashboard/nav.tmpl | 10 ++++++----
9 files changed, 33 insertions(+), 26 deletions(-)
rename templates/repo/settings/{gogs_hook.tmpl => hook_gogs.tmpl} (97%)
rename templates/repo/settings/{slack_hook.tmpl => hook_slack.tmpl} (95%)
diff --git a/conf/locale/locale_zh-CN.ini b/conf/locale/locale_zh-CN.ini
index 21442539ab..55d22f23ee 100644
--- a/conf/locale/locale_zh-CN.ini
+++ b/conf/locale/locale_zh-CN.ini
@@ -234,6 +234,11 @@ settings.update_webhook = 更新 Web 钩子
settings.update_hook_success = Web 钩子更新成功!
settings.delete_webhook = 删除 Web 钩子
settings.recent_deliveries = 最近推送记录
+settings.hook_type = 钩子类型
+settings.add_slack_hook_desc = 为您的仓库增加 Slack 集成
+settings.slack_token = 令牌
+settings.slack_domain = 域名
+settings.slack_channel = 频道
[org]
org_name_holder = 组织名称
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 @@
-
{{if .IsFile}}
{{template "repo/view_file" .}}
diff --git a/templates/repo/settings/gogs_hook.tmpl b/templates/repo/settings/hook_gogs.tmpl
similarity index 97%
rename from templates/repo/settings/gogs_hook.tmpl
rename to templates/repo/settings/hook_gogs.tmpl
index 678d640baf..35b5899532 100644
--- a/templates/repo/settings/gogs_hook.tmpl
+++ b/templates/repo/settings/hook_gogs.tmpl
@@ -1,4 +1,4 @@
-
+
{{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/slack_hook.tmpl b/templates/repo/settings/hook_slack.tmpl
similarity index 95%
rename from templates/repo/settings/slack_hook.tmpl
rename to templates/repo/settings/hook_slack.tmpl
index e68571a081..50d28e2f5e 100644
--- a/templates/repo/settings/slack_hook.tmpl
+++ b/templates/repo/settings/hook_slack.tmpl
@@ -1,4 +1,4 @@
-