Commit c4ed537 1 parent 489e916 commit c4ed537 Copy full SHA for c4ed537
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 128
128
<span class="no-select item {{if .HasSelectedLabel}}hide{{end}}">{{.i18n.Tr "repo.issues.new.no_label"}}</span>
129
129
{{range .Labels}}
130
130
<div class="item">
131
- <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>
131
+ <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>
132
132
</div>
133
133
{{end}}
134
134
{{range .OrgLabels}}
135
135
<div class="item">
136
- <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>
136
+ <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>
137
137
</div>
138
138
139
139
{{end}}
238
238
<div class="selected">
239
239
{{range .Issue.Assignees}}
240
240
<div class="item" style="margin-bottom: 10px;">
241
- <a href="{{$.RepoLink}}/issues?assignee={{.ID}}"><img class="ui avatar image" src="{{.RelAvatarLink}}"> {{.GetDisplayName}}</a>
241
+ <a href="{{$.RepoLink}}/{{if $.Issue.IsPull}}pulls{{else}} issues{{end}} ?assignee={{.ID}}"><img class="ui avatar image" src="{{.RelAvatarLink}}"> {{.GetDisplayName}}</a>
242
242
</div>
243
243
{{end}}
244
244
</div>
You can’t perform that action at this time.
0 commit comments