Skip to content

Commit 7d46cb6

Browse files
authored
Update protected_branch.tmpl
1 parent f6474cf commit 7d46cb6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

templates/repo/settings/protected_branch.tmpl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
<div class="repo-setting-content">
33
<form class="ui form" action="{{.Link}}" method="post">
44
<h4 class="ui top attached header">
5-
{{ctx.Locale.Tr "repo.settings.branch_protection" .Rule.RuleName}}
5+
{{if .Rule.RuleName}}
6+
{{ctx.Locale.Tr "repo.settings.branch_protection" .Rule.RuleName}}
7+
{{else}}
8+
{{ctx.Locale.Tr "repo.settings.branches.add_new_rule"}}
9+
{{end}}
610
</h4>
711
<div class="ui attached segment branch-protection">
812
<h5 class="ui dividing header">{{ctx.Locale.Tr "repo.settings.protect_patterns"}}</h5>

0 commit comments

Comments
 (0)