aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/settings/githooks.tmpl
blob: 9b17af140698c9a2594ac2f78b98b78e8fd92e7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings githooks")}}
	<div class="repo-setting-content">
		<h4 class="ui top attached header">
			{{ctx.Locale.Tr "repo.settings.githooks"}}
		</h4>
		<div class="ui attached segment">
			<div class="ui list flex-items-block">
				<div class="item"><span>{{ctx.Locale.Tr "repo.settings.githooks_desc"}}</span></div>
				{{range .Hooks}}
				<div class="item">
					<span class="text {{if .IsActive}}green{{else}}grey{{end}}">{{svg "octicon-dot-fill" 22}}</span>
					<span class="gt-ellipsis tw-flex-1">{{.Name}}</span>
					<a class="muted tw-p-2" href="{{$.RepoLink}}/settings/hooks/git/{{.Name|PathEscape}}">{{svg "octicon-pencil"}}</a>
				</div>
				{{end}}
			</div>
		</div>
	</div>
{{template "repo/settings/layout_footer" .}}