File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 2
2
<div class="repo-setting-content">
3
3
<form class="ui form" action="{{.Link}}" method="post">
4
4
<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}}
6
10
</h4>
7
11
<div class="ui attached segment branch-protection">
8
12
<h5 class="ui dividing header">{{ctx.Locale.Tr "repo.settings.protect_patterns"}}</h5>
9
- <div class="field">
13
+ <div class="field required ">
10
14
<label>{{ctx.Locale.Tr "repo.settings.protect_branch_name_pattern"}}</label>
11
- <input name="rule_name" type="text" value="{{.Rule.RuleName}}">
15
+ <input name="rule_name" type="text" value="{{.Rule.RuleName}}" required >
12
16
<input name="rule_id" type="hidden" value="{{.Rule.ID}}">
13
17
<p class="help tw-ml-0">{{ctx.Locale.Tr "repo.settings.protect_branch_name_pattern_desc" "https://github.com/gobwas/glob"}}</p>
14
18
</div>
You can’t perform that action at this time.
0 commit comments