Fix issue link in issues page

The link assumes that the issue belongs to the signed in
user, which is not necessarily the case
I changed it to use repository owner name instead
This commit is contained in:
Michael Litvak
2014-05-13 23:37:09 +03:00
parent 5d5c4535cb
commit cca2a53d6f
2 changed files with 7 additions and 1 deletions

View File

@ -36,7 +36,7 @@
{{range .Issues}}{{if .}}
<div class="list-group-item issue-item" id="issue-{{.Id}}">
<span class="number pull-right">#{{.Index}}</span>
<h5 class="title"><a href="/{{$.SignedUser.Name}}/{{.Repo.Name}}/issues/{{.Index}}">{{.Name}}</a></h5>
<h5 class="title"><a href="/{{.Repo.Owner.Name}}/{{.Repo.Name}}/issues/{{.Index}}">{{.Name}}</a></h5>
<p class="info">
<span class="author"><img class="avatar" src="{{.Poster.AvatarLink}}" alt="" width="20"/>
<a href="/user/{{.Poster.Name}}">{{.Poster.Name}}</a></span>