We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6474cf commit 7d46cb6Copy full SHA for 7d46cb6
templates/repo/settings/protected_branch.tmpl
@@ -2,7 +2,11 @@
2
<div class="repo-setting-content">
3
<form class="ui form" action="{{.Link}}" method="post">
4
<h4 class="ui top attached header">
5
- {{ctx.Locale.Tr "repo.settings.branch_protection" .Rule.RuleName}}
+ {{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}}
10
</h4>
11
<div class="ui attached segment branch-protection">
12
<h5 class="ui dividing header">{{ctx.Locale.Tr "repo.settings.protect_patterns"}}</h5>
0 commit comments