diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-02-14 22:15:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-14 22:15:18 +0800 |
commit | 7a9a5c8a69c2a3ba107a4dbc199f052d58262033 (patch) | |
tree | a6940099182c4427ff010fc2368aeabb67b57ff6 /templates | |
parent | 3a91ac51a93aa6e352896048ce37c01227b42055 (diff) | |
download | gitea-7a9a5c8a69c2a3ba107a4dbc199f052d58262033.tar.gz gitea-7a9a5c8a69c2a3ba107a4dbc199f052d58262033.zip |
Fix assigned issues dashboard (#920)
* Fix assigned/created issues in dashboard. (#3560)
* Fix assigned/created issues in dashboard.
* Use GetUserIssueStats for getting all Dashboard stats.
* Use gofmt to format the file properly.
* Replace &Issue{} with new(Issue).
* Check if user has access to given repository.
* Remove unnecessary filtering of issues.
* Return 404 error if invalid repository is given.
* Use correct number of issues in paginater.
* fix issues on dashboard
Diffstat (limited to 'templates')
-rw-r--r-- | templates/user/dashboard/issues.tmpl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/user/dashboard/issues.tmpl b/templates/user/dashboard/issues.tmpl index 615a2fe995..daf9b26dd1 100644 --- a/templates/user/dashboard/issues.tmpl +++ b/templates/user/dashboard/issues.tmpl @@ -5,9 +5,9 @@ <div class="ui grid"> <div class="four wide column"> <div class="ui secondary vertical filter menu"> - <a class="{{if eq .ViewType "all"}}ui basic blue button{{end}} item" href="{{.Link}}?repo={{.RepoID}}&sort={{$.SortType}}&state={{.State}}"> + <a class="{{if eq .ViewType "your_repositories"}}ui basic blue button{{end}} item" href="{{.Link}}?type=your_repositories&repo={{.RepoID}}&sort={{$.SortType}}&state={{.State}}"> {{.i18n.Tr "home.issues.in_your_repos"}} - <strong class="ui right">{{.IssueStats.AllCount}}</strong> + <strong class="ui right">{{.IssueStats.YourRepositoriesCount}}</strong> </a> {{if not .ContextUser.IsOrganization}} <a class="{{if eq .ViewType "assigned"}}ui basic blue button{{end}} item" href="{{.Link}}?type=assigned&repo={{.RepoID}}&sort={{$.SortType}}&state={{.State}}"> @@ -22,7 +22,7 @@ <div class="ui divider"></div> {{range .Repos}} <a class="{{if eq $.RepoID .ID}}ui basic blue button{{end}} repo name item" href="{{$.Link}}?type={{$.ViewType}}{{if not (eq $.RepoID .ID)}}&repo={{.ID}}{{end}}&sort={{$.SortType}}&state={{$.State}}"> - <span class="text truncate">{{$.ContextUser.Name}}/{{.Name}}</span> + <span class="text truncate">{{.FullName}}</span> <div class="floating ui {{if $.IsShowClosed}}red{{else}}green{{end}} label">{{if $.IsShowClosed}}{{.NumClosedIssues}}{{else}}{{.NumOpenIssues}}{{end}}</div> </a> {{end}} @@ -61,7 +61,7 @@ {{range .Issues}} {{ $timeStr:= TimeSince .Created $.Lang }} <li class="item"> - <div class="ui label">{{if not $.RepoID}}{{.Repo.Name}}{{end}}#{{.Index}}</div> + <div class="ui label">{{if not $.RepoID}}{{.Repo.FullName}}{{end}}#{{.Index}}</div> <a class="title has-emoji" href="{{AppSubUrl}}/{{.Repo.Owner.Name}}/{{.Repo.Name}}/issues/{{.Index}}">{{.Title}}</a> {{range .Labels}} |