Skip to content

Commit 8941f7f

Browse files
Nhlestlunny
authored andcommitted
Fix for a wrong URL in activity page of repository. (Using config url instead of an actual one) (#9571)
1 parent 0989404 commit 8941f7f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

templates/repo/activity.tmpl

+7-7
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
<div class="ui green label">{{$.i18n.Tr "repo.activity.published_release_label"}}</div>
124124
{{.TagName}}
125125
{{if not .IsTag}}
126-
<a class="title has-emoji" href="{{$.Repository.HTMLURL}}/src/{{.TagName | EscapePound}}">{{.Title}}</a>
126+
<a class="title has-emoji" href="{{$.RepoLink}}/src/{{.TagName | EscapePound}}">{{.Title}}</a>
127127
{{end}}
128128
{{TimeSinceUnix .CreatedUnix $.Lang}}
129129
</p>
@@ -140,7 +140,7 @@
140140
{{range .Activity.MergedPRs}}
141141
<p class="desc">
142142
<div class="ui purple label">{{$.i18n.Tr "repo.activity.merged_prs_label"}}</div>
143-
#{{.Index}} <a class="title has-emoji" href="{{$.Repository.HTMLURL}}/pulls/{{.Index}}">{{.Issue.Title}}</a>
143+
#{{.Index}} <a class="title has-emoji" href="{{$.RepoLink}}/pulls/{{.Index}}">{{.Issue.Title}}</a>
144144
{{TimeSinceUnix .MergedUnix $.Lang}}
145145
</p>
146146
{{end}}
@@ -156,7 +156,7 @@
156156
{{range .Activity.OpenedPRs}}
157157
<p class="desc">
158158
<div class="ui green label">{{$.i18n.Tr "repo.activity.opened_prs_label"}}</div>
159-
#{{.Index}} <a class="title has-emoji" href="{{$.Repository.HTMLURL}}/pulls/{{.Index}}">{{.Issue.Title}}</a>
159+
#{{.Index}} <a class="title has-emoji" href="{{$.RepoLink}}/pulls/{{.Index}}">{{.Issue.Title}}</a>
160160
{{TimeSinceUnix .Issue.CreatedUnix $.Lang}}
161161
</p>
162162
{{end}}
@@ -172,7 +172,7 @@
172172
{{range .Activity.ClosedIssues}}
173173
<p class="desc">
174174
<div class="ui red label">{{$.i18n.Tr "repo.activity.closed_issue_label"}}</div>
175-
#{{.Index}} <a class="title has-emoji" href="{{$.Repository.HTMLURL}}/issues/{{.Index}}">{{.Title}}</a>
175+
#{{.Index}} <a class="title has-emoji" href="{{$.RepoLink}}/issues/{{.Index}}">{{.Title}}</a>
176176
{{TimeSinceUnix .ClosedUnix $.Lang}}
177177
</p>
178178
{{end}}
@@ -188,7 +188,7 @@
188188
{{range .Activity.OpenedIssues}}
189189
<p class="desc">
190190
<div class="ui green label">{{$.i18n.Tr "repo.activity.new_issue_label"}}</div>
191-
#{{.Index}} <a class="title has-emoji" href="{{$.Repository.HTMLURL}}/issues/{{.Index}}">{{.Title}}</a>
191+
#{{.Index}} <a class="title has-emoji" href="{{$.RepoLink}}/issues/{{.Index}}">{{.Title}}</a>
192192
{{TimeSinceUnix .CreatedUnix $.Lang}}
193193
</p>
194194
{{end}}
@@ -209,9 +209,9 @@
209209
<div class="ui green label">{{$.i18n.Tr "repo.activity.unresolved_conv_label"}}</div>
210210
#{{.Index}}
211211
{{if .IsPull}}
212-
<a class="title has-emoji" href="{{$.Repository.HTMLURL}}/pulls/{{.Index}}">{{.Title}}</a>
212+
<a class="title has-emoji" href="{{$.RepoLink}}/pulls/{{.Index}}">{{.Title}}</a>
213213
{{else}}
214-
<a class="title has-emoji" href="{{$.Repository.HTMLURL}}/issues/{{.Index}}">{{.Title}}</a>
214+
<a class="title has-emoji" href="{{$.RepoLink}}/issues/{{.Index}}">{{.Title}}</a>
215215
{{end}}
216216
{{TimeSinceUnix .UpdatedUnix $.Lang}}
217217
</p>

0 commit comments

Comments
 (0)