diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-07 16:51:14 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-07 16:51:14 -0400 |
commit | 33d32585b1b7232c764e8cb8629a33076902c882 (patch) | |
tree | 4450575c9a0a71c8a7d51e9b4eafee321226d8c2 /templates | |
parent | 6fb7229beaadb53f59cb85d80976f99708a7434d (diff) | |
download | gitea-33d32585b1b7232c764e8cb8629a33076902c882.tar.gz gitea-33d32585b1b7232c764e8cb8629a33076902c882.zip |
Add mention, read/unread support of issue tracker
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin/repos.tmpl | 4 | ||||
-rw-r--r-- | templates/issue/list.tmpl | 2 | ||||
-rw-r--r-- | templates/issue/user.tmpl | 10 |
3 files changed, 8 insertions, 8 deletions
diff --git a/templates/admin/repos.tmpl b/templates/admin/repos.tmpl index 2c5e3d3b7d..f6f3a7be98 100644 --- a/templates/admin/repos.tmpl +++ b/templates/admin/repos.tmpl @@ -26,8 +26,8 @@ {{range .Repos}} <tr> <td>{{.Id}}</td> - <th>{{.UserName}}</th> - <td><a href="/{{.UserName}}/{{.Name}}">{{.Name}}</a></td> + <th>{{.Owner.Name}}</th> + <td><a href="/{{.Owner.Name}}/{{.Name}}">{{.Name}}</a></td> <td><i class="fa fa{{if .IsPrivate}}-check{{end}}-square-o"></i></td> <td>{{.NumWatches}}</td> <td>{{.NumIssues}}</td> diff --git a/templates/issue/list.tmpl b/templates/issue/list.tmpl index 0b995f810c..e66015af87 100644 --- a/templates/issue/list.tmpl +++ b/templates/issue/list.tmpl @@ -21,7 +21,7 @@ </div> <div class="issues list-group"> {{range .Issues}}{{if .Poster}} - <div class="list-group-item issue-item" id="issue-{{.Id}}"> + <div class="list-group-item issue-item{{if not .IsRead}} unread{{end}}" id="issue-{{.Id}}"> <span class="number pull-right">#{{.Index}}</span> <h5 class="title"><a href="{{$.RepoLink}}/issues/{{.Index}}">{{.Name}}</a></h5> <p class="info"> diff --git a/templates/issue/user.tmpl b/templates/issue/user.tmpl index e1711d4476..f480c63a8f 100644 --- a/templates/issue/user.tmpl +++ b/templates/issue/user.tmpl @@ -21,19 +21,19 @@ <li><a href="/issues?type=created_by&repoid={{.RepoId}}&state={{.State}}"{{if eq .ViewType "created_by"}} class="active"{{end}}>Created by you <strong class="pull-right">{{.IssueStats.CreateCount}}</strong></a></li> <li><hr/></li> {{range .Repos}} - <li><a href="/issues?type={{$.ViewType}}{{if eq $.RepoId .Id}}{{else}}&repoid={{.Id}}{{end}}" class="sm{{if eq $.RepoId .Id}} active{{end}}">{{$.SignedUser.Name}}/{{.Name}} <strong class="pull-right">{{.NumOpenIssues}}</strong></a></li> + <li><a href="/issues?type={{$.ViewType}}{{if eq $.RepoId .Id}}{{else}}&repoid={{.Id}}{{end}}&state={{$.State}}" class="sm{{if eq $.RepoId .Id}} active{{end}}">{{$.SignedUser.Name}}/{{.Name}} <strong class="pull-right">{{if $.IsShowClosed}}{{.NumClosedIssues}}{{else}}{{.NumOpenIssues}}{{end}}</strong></a></li> {{end}} </ul> </div> <div class="col-md-9"> <div class="filter-option"> <div class="btn-group"> - <a class="btn btn-default issue-open{{if not .IsShowClosed}} active{{end}}" href="/issues?type={{.ViewType}}">{{..IssueStats.OpenCount}} Open</a> - <a class="btn btn-default issue-close{{if .IsShowClosed}} active{{end}}" href="/issues?type={{.ViewType}}&state=closed">{{.IssueStats.ClosedCount}} Closed</a> + <a class="btn btn-default issue-open{{if not .IsShowClosed}} active{{end}}" href="/issues?type={{.ViewType}}&repoid={{.RepoId}}">Open</a> + <a class="btn btn-default issue-close{{if .IsShowClosed}} active{{end}}" href="/issues?type={{.ViewType}}&repoid={{.RepoId}}&state=closed">Closed</a> </div> </div> <div class="issues list-group"> - {{range .Issues}} + {{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> @@ -44,7 +44,7 @@ <span class="comment"><i class="fa fa-comments"></i> {{.NumComments}}</span> </p> </div> - {{end}} + {{end}}{{end}} </div> </div> </div> |