From c08600c59b8fb8d5f03fadacddb1140bc994ae94 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 27 Aug 2015 01:04:23 +0800 Subject: new edit webhook UI --- templates/repo/settings/githook_edit.tmpl | 6 +++--- templates/repo/settings/hook_gogs.tmpl | 2 +- templates/repo/settings/hook_history.tmpl | 14 +++++--------- templates/repo/settings/hook_slack.tmpl | 2 +- 4 files changed, 10 insertions(+), 14 deletions(-) (limited to 'templates/repo') diff --git a/templates/repo/settings/githook_edit.tmpl b/templates/repo/settings/githook_edit.tmpl index 40334d271c..293340b1e8 100644 --- a/templates/repo/settings/githook_edit.tmpl +++ b/templates/repo/settings/githook_edit.tmpl @@ -10,15 +10,15 @@ {{.i18n.Tr "repo.settings.githooks"}}
-

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

+

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

{{.CsrfTokenHtml}} {{with .Hook}}
- + {{.Name}}
-
+
diff --git a/templates/repo/settings/hook_gogs.tmpl b/templates/repo/settings/hook_gogs.tmpl index f172cabe95..b0b3311a55 100644 --- a/templates/repo/settings/hook_gogs.tmpl +++ b/templates/repo/settings/hook_gogs.tmpl @@ -1,6 +1,6 @@ {{if eq .HookType "gogs"}}

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

- + {{.CsrfTokenHtml}}
diff --git a/templates/repo/settings/hook_history.tmpl b/templates/repo/settings/hook_history.tmpl index be837ccae6..5bb4ca6a20 100644 --- a/templates/repo/settings/hook_history.tmpl +++ b/templates/repo/settings/hook_history.tmpl @@ -1,12 +1,8 @@ {{if .PageIsSettingsHooksEdit}} -
-
-
- {{.i18n.Tr "repo.settings.recent_deliveries"}} -
-
    -
  • Coming soon!
  • -
-
+

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

+
+ Coming soon!
{{end}} \ No newline at end of file diff --git a/templates/repo/settings/hook_slack.tmpl b/templates/repo/settings/hook_slack.tmpl index b787131bec..be918ad5c1 100644 --- a/templates/repo/settings/hook_slack.tmpl +++ b/templates/repo/settings/hook_slack.tmpl @@ -1,6 +1,6 @@ {{if eq .HookType "slack"}}

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

- + {{.CsrfTokenHtml}}
-- cgit v1.2.3