summaryrefslogtreecommitdiffstats
path: root/templates/repo/settings
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-27 01:04:23 +0800
committerUnknwon <u@gogs.io>2015-08-27 01:04:23 +0800
commitc08600c59b8fb8d5f03fadacddb1140bc994ae94 (patch)
tree29be86d5e607203d9ba68e0af58ae04c4cea0ea1 /templates/repo/settings
parent4217c2333cf9ac29af611df9826cc4b5198241fe (diff)
downloadgitea-c08600c59b8fb8d5f03fadacddb1140bc994ae94.tar.gz
gitea-c08600c59b8fb8d5f03fadacddb1140bc994ae94.zip
new edit webhook UI
Diffstat (limited to 'templates/repo/settings')
-rw-r--r--templates/repo/settings/githook_edit.tmpl6
-rw-r--r--templates/repo/settings/hook_gogs.tmpl2
-rw-r--r--templates/repo/settings/hook_history.tmpl14
-rw-r--r--templates/repo/settings/hook_slack.tmpl2
4 files changed, 10 insertions, 14 deletions
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"}}
</h4>
<div class="ui attached segment">
- <p class="center">{{.i18n.Tr "repo.settings.githook_edit_desc"}}</p>
+ <p>{{.i18n.Tr "repo.settings.githook_edit_desc"}}</p>
<form class="ui form" action="{{.Link}}" method="post">
{{.CsrfTokenHtml}}
{{with .Hook}}
<div class="inline field">
<label>{{$.i18n.Tr "repo.settings.githook_name"}}</label>
- <label class="text left">{{.Name}}</label>
+ <span>{{.Name}}</span>
</div>
- <div class="inline field">
+ <div class="field">
<label for="content">{{$.i18n.Tr "repo.settings.githook_content"}}</label>
<textarea id="content" name="content" rows="20" wrap="off">{{if .IsActive}}{{.Content}}{{else}}{{.Sample}}{{end}}</textarea>
</div>
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"}}
<p>{{.i18n.Tr "repo.settings.add_webhook_desc" "http://gogs.io/docs/features/webhook.html" | Str2html}}</p>
-<form class="ui form" action="{{.BaseLink}}/settings/hooks/{{if .PageIsSettingsHooksNew}}gogs/new{{else}}{{.Webhook.ID}}{{end}}" method="post">
+<form class="ui form" action="{{.BaseLink}}/settings/hooks/gogs/{{if .PageIsSettingsHooksNew}}new{{else}}{{.Webhook.ID}}{{end}}" method="post">
{{.CsrfTokenHtml}}
<div class="required field {{if .Err_PayloadURL}}error{{end}}">
<label for="payload_url">{{.i18n.Tr "repo.settings.payload_url"}}</label>
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}}
-<div id="setting-content">
- <div id="repo-hooks-history-panel" class="panel panel-radius">
- <div class="panel-header">
- <strong>{{.i18n.Tr "repo.settings.recent_deliveries"}}</strong>
- </div>
- <ul class="panel-body setting-list">
- <li>Coming soon!</li>
- </ul>
- </div>
+<h4 class="ui top attached header">
+ {{.i18n.Tr "repo.settings.recent_deliveries"}}
+</h4>
+<div class="ui attached segment">
+ Coming soon!
</div>
{{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"}}
<p>{{.i18n.Tr "repo.settings.add_slack_hook_desc" "http://slack.com" | Str2html}}</p>
-<form class="ui form" action="{{.BaseLink}}/settings/hooks/{{if .PageIsSettingsHooksNew}}slack/new{{else}}{{.Webhook.ID}}{{end}}" method="post">
+<form class="ui form" action="{{.BaseLink}}/settings/hooks/slack/{{if .PageIsSettingsHooksNew}}new{{else}}{{.Webhook.ID}}{{end}}" method="post">
{{.CsrfTokenHtml}}
<div class="required field {{if .Err_PayloadURL}}error{{end}}">
<label for="payload_url">{{.i18n.Tr "repo.settings.payload_url"}}</label>