File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
templates/repo/issue/labels Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -194,11 +194,11 @@ func (label *Label) ExclusiveScope() string {
194
194
if ! label .Exclusive {
195
195
return ""
196
196
}
197
- index := strings .Index (label .Name , "/" )
198
- if index == - 1 || index == 0 || index == len (label .Name )- 1 {
197
+ lastIndex := strings .LastIndex (label .Name , "/" )
198
+ if lastIndex == - 1 || lastIndex == 0 || lastIndex == len (label .Name )- 1 {
199
199
return ""
200
200
}
201
- return label .Name [:index ]
201
+ return label .Name [:lastIndex ]
202
202
}
203
203
204
204
// NewLabel creates a new label
Original file line number Diff line number Diff line change 39
39
</div>
40
40
<br/>
41
41
<small class="desc">{{.locale.Tr "repo.issues.label_exclusive_desc" | Safe}}</small>
42
- <div class="desc gt-hidden label-exclusive-warning">
43
- <br/> {{.locale.Tr "repo.issues.label_exclusive_warning" | Safe}}
42
+ <div class="desc gt-ml-2 gt-mt-3 gt- hidden label-exclusive-warning">
43
+ {{svg "octicon-alert"}} {{.locale.Tr "repo.issues.label_exclusive_warning" | Safe}}
44
44
</div>
45
45
</div>
46
46
<div class="field">
You can’t perform that action at this time.
0 commit comments