diff options
author | Unknwon <u@gogs.io> | 2015-07-25 02:52:25 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-07-25 02:52:25 +0800 |
commit | 1ba837a0556b2fb77f68248bf36ffe19603f0add (patch) | |
tree | 18a8667321bc4ba40cb532f44cc7aa20d33855b9 /templates | |
parent | 54b58e988d4fac4a3f67feef39d62134352fb07c (diff) | |
download | gitea-1ba837a0556b2fb77f68248bf36ffe19603f0add.tar.gz gitea-1ba837a0556b2fb77f68248bf36ffe19603f0add.zip |
new issue and label page
Diffstat (limited to 'templates')
-rw-r--r-- | templates/.VERSION | 2 | ||||
-rw-r--r-- | templates/repo/issue/list.tmpl | 30 |
2 files changed, 18 insertions, 14 deletions
diff --git a/templates/.VERSION b/templates/.VERSION index 3e39c8bbb5..76191dfa02 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.6.2.0724 Beta
\ No newline at end of file +0.6.2.0725 Beta
\ No newline at end of file diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index e62e9534e0..27cdeadc87 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -4,20 +4,18 @@ <div class="ui middle page grid body"> <div class="navbar"> {{template "repo/issue/navbar" .}} - {{if .IsRepositoryAdmin}} <div class="ui right floated secondary menu"> <a class="ui green button" href="{{$.RepoLink}}/issues/new">{{.i18n.Tr "repo.issues.new"}}</a> </div> - {{end}} </div> <div class="ui divider"></div> <div class="ui left"> <div class="ui tiny buttons"> - <a class="ui green basic button {{if not .IsShowClosed}}active{{end}}" href="{{.RepoLink}}/issues?type={{.ViewType}}"> + <a class="ui green basic button {{if not .IsShowClosed}}active{{end}}" href="{{.RepoLink}}/issues?type={{$.ViewType}}&state=open&labels={{.SelectLabels}}"> <i class="octicon octicon-issue-opened"></i> {{.i18n.Tr "repo.issues.open_tab" .IssueStats.OpenCount}} </a> - <a class="ui red basic button {{if .IsShowClosed}}active{{end}}" href="{{.RepoLink}}/issues?type={{.ViewType}}&state=closed"> + <a class="ui red basic button {{if .IsShowClosed}}active{{end}}" href="{{.RepoLink}}/issues?type={{.ViewType}}&state=closed&labels={{.SelectLabels}}"> <i class="octicon octicon-issue-closed"></i> {{.i18n.Tr "repo.issues.close_tab" .IssueStats.ClosedCount}} </a> @@ -30,12 +28,13 @@ <i class="dropdown icon"></i> </span> <div class="menu"> + <a class="item" href="{{$.RepoLink}}/issues?type={{$.ViewType}}&state={{$.State}}">{{.i18n.Tr "repo.issues.filter_label_no_select"}}</a> {{range .Labels}} - <a class="item" href="{{$.RepoLink}}/issues?type={{$.ViewType}}&state={{$.State}}&labels={{.ID}}"><span class="label color" style="background-color: {{.Color}}"></span> {{.Name}}</a> + <a class="item" href="{{$.RepoLink}}/issues?type={{$.ViewType}}&state={{$.State}}&labels={{.ID}}"><span class="octicon {{if eq $.SelectLabels .ID}}octicon-check{{end}}"></span><span class="label color" style="background-color: {{.Color}}"></span> {{.Name}}</a> {{end}} </div> </div> - <div class="ui {{if not .Milestones}}disabled{{end}} pointing dropdown jump item"> + <!-- <div class="ui {{if not .Milestones}}disabled{{end}} pointing dropdown jump item"> <span class="text"> {{.i18n.Tr "repo.issues.filter_milestone"}} <i class="dropdown icon"></i> @@ -45,8 +44,8 @@ <a class="item" href="{{$.RepoLink}}/issues">{{.Name}}</a> {{end}} </div> - </div> - <div class="ui {{if not .Assignees}}disabled{{end}} pointing dropdown jump item"> + </div> --> + <!-- <div class="ui {{if not .Assignees}}disabled{{end}} pointing dropdown jump item"> <span class="text"> {{.i18n.Tr "repo.issues.filter_assignee"}} <i class="dropdown icon"></i> @@ -56,17 +55,17 @@ <a class="item" href="{{$.RepoLink}}/issues">{{.Name}}</a> {{end}} </div> - </div> + </div> --> <div class="ui pointing dropdown type jump item"> <span class="text"> {{.i18n.Tr "repo.issues.filter_type"}} <i class="dropdown icon"></i> </span> <div class="menu"> - <a class="item" href="{{$.RepoLink}}/issues">{{.i18n.Tr "repo.issues.filter_type.all_issues"}}</a> - <a class="item" href="{{$.RepoLink}}/issues">{{.i18n.Tr "repo.issues.filter_type.assigned_to_you"}}</a> - <a class="item" href="{{$.RepoLink}}/issues">{{.i18n.Tr "repo.issues.filter_type.created_by_you"}}</a> - <a class="item" href="{{$.RepoLink}}/issues">{{.i18n.Tr "repo.issues.filter_type.mentioning_you"}}</a> + <a class="{{if eq .ViewType "all"}}active{{end}} item" href="{{$.RepoLink}}/issues?type=all&state={{$.State}}&labels={{.SelectLabels}}">{{.i18n.Tr "repo.issues.filter_type.all_issues"}}</a> + <a class="{{if eq .ViewType "assigned"}}active{{end}} item" href="{{$.RepoLink}}/issues?type=assigned&state={{$.State}}&labels={{.SelectLabels}}">{{.i18n.Tr "repo.issues.filter_type.assigned_to_you"}}</a> + <a class="{{if eq .ViewType "created_by"}}active{{end}} item" href="{{$.RepoLink}}/issues?type=created_by&state={{$.State}}&labels={{.SelectLabels}}">{{.i18n.Tr "repo.issues.filter_type.created_by_you"}}</a> + <a class="{{if eq .ViewType "mentioned"}}active{{end}} item" href="{{$.RepoLink}}/issues?type=mentioned&state={{$.State}}&labels={{.SelectLabels}}">{{.i18n.Tr "repo.issues.filter_type.mentioning_you"}}</a> </div> </div> </div> @@ -77,6 +76,11 @@ <li class="item"> <div class="ui {{if .IsRead}}black{{else}}green{{end}} label">#{{.Index}}</div> <a class="title" href="{{$.RepoLink}}/issues/{{.Index}}">{{.Name}}</a> + + {{range .Labels}} + <a class="ui label" href="{{$.RepoLink}}/issues?type={{$.ViewType}}&state={{$.State}}&labels={{.ID}}" style="background-color: {{.Color}}">{{.Name}}</a> + {{end}} + {{if .NumComments}}<span class="comment ui right"><i class="octicon octicon-comment"></i> {{.NumComments}}</span>{{end}} <p class="desc">{{$.i18n.Tr "repo.issues.opened_by" $timeStr .Poster.Name|Str2html}}</p> </li> |