File tree 1 file changed +3
-3
lines changed
templates/repo/issue/view_content
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 126
126
<span class="no-select item {{if .HasSelectedLabel}}hide{{end}}">{{.i18n.Tr "repo.issues.new.no_label"}}</span>
127
127
{{range .Labels}}
128
128
<div class="item">
129
- <a class="ui label {{if not .IsChecked}}hide{{end}}" id="label_{{.ID}}" href="{{$.RepoLink}}/issues?labels={{.ID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}" title="{{.Description | RenderEmojiPlain}}">{{.Name | RenderEmoji}}</a>
129
+ <a class="ui label {{if not .IsChecked}}hide{{end}}" id="label_{{.ID}}" href="{{$.RepoLink}}/{{if $.Issue.IsPull}}pulls{{else}} issues{{end}} ?labels={{.ID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}" title="{{.Description | RenderEmojiPlain}}">{{.Name | RenderEmoji}}</a>
130
130
</div>
131
131
{{end}}
132
132
{{range .OrgLabels}}
133
133
<div class="item">
134
- <a class="ui label {{if not .IsChecked}}hide{{end}}" id="label_{{.ID}}" href="{{$.RepoLink}}/issues?labels={{.ID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}" title="{{.Description | RenderEmojiPlain}}">{{.Name | RenderEmoji}}</a>
134
+ <a class="ui label {{if not .IsChecked}}hide{{end}}" id="label_{{.ID}}" href="{{$.RepoLink}}/{{if $.Issue.IsPull}}pulls{{else}} issues{{end}} ?labels={{.ID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}" title="{{.Description | RenderEmojiPlain}}">{{.Name | RenderEmoji}}</a>
135
135
</div>
136
136
137
137
{{end}}
236
236
<div class="selected">
237
237
{{range .Issue.Assignees}}
238
238
<div class="item" style="margin-bottom: 10px;">
239
- <a href="{{$.RepoLink}}/issues?assignee={{.ID}}"><img class="ui avatar image" src="{{.RelAvatarLink}}"> {{.GetDisplayName}}</a>
239
+ <a href="{{$.RepoLink}}/{{if $.Issue.IsPull}}pulls{{else}} issues{{end}} ?assignee={{.ID}}"><img class="ui avatar image" src="{{.RelAvatarLink}}"> {{.GetDisplayName}}</a>
240
240
</div>
241
241
{{end}}
242
242
</div>
You can’t perform that action at this time.
0 commit comments