Skip to content

Commit c16357a

Browse files
committed
fix git hook list
1 parent b009527 commit c16357a

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

templates/repo/settings/githooks.tmpl

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,14 @@
44
{{ctx.Locale.Tr "repo.settings.githooks"}}
55
</h4>
66
<div class="ui attached segment">
7-
<div class="ui list">
7+
<div class="ui list flex-items-block">
8+
<div class="item"><span>{{ctx.Locale.Tr "repo.settings.githooks_desc"}}</span></div>
9+
{{range .Hooks}}
810
<div class="item">
9-
{{ctx.Locale.Tr "repo.settings.githooks_desc"}}
11+
<span class="text {{if .IsActive}}green{{else}}grey{{end}}">{{svg "octicon-dot-fill" 22}}</span>
12+
<span class="gt-ellipsis tw-flex-1">{{.Name}}</span>
13+
<a class="muted tw-p-2" href="{{$.RepoLink}}/settings/hooks/git/{{.Name|PathEscape}}">{{svg "octicon-pencil"}}</a>
1014
</div>
11-
{{range .Hooks}}
12-
<div class="item truncated-item-container">
13-
<span class="text {{if .IsActive}}green{{else}}grey{{end}} tw-mr-2">{{svg "octicon-dot-fill" 22}}</span>
14-
<span class="text truncate tw-flex-1 tw-mr-2">{{.Name}}</span>
15-
<a class="muted tw-float-right tw-p-2" href="{{$.RepoLink}}/settings/hooks/git/{{.Name|PathEscape}}">
16-
{{svg "octicon-pencil"}}
17-
</a>
18-
</div>
1915
{{end}}
2016
</div>
2117
</div>

0 commit comments

Comments
 (0)