github.com/Unknwon/cae = commit:2e70a1351b | github.com/Unknwon/cae = commit:2e70a1351b | ||||
github.com/Unknwon/com = | github.com/Unknwon/com = | ||||
github.com/Unknwon/i18n = commit:7457d88830 | github.com/Unknwon/i18n = commit:7457d88830 | ||||
github.com/Unknwon/macaron = commit:93de4f3fad | |||||
github.com/Unknwon/macaron = | |||||
github.com/Unknwon/paginater = | |||||
github.com/codegangsta/cli = commit:2bcd11f863 | github.com/codegangsta/cli = commit:2bcd11f863 | ||||
github.com/go-sql-driver/mysql = commit:a197e5d405 | github.com/go-sql-driver/mysql = commit:a197e5d405 | ||||
github.com/go-xorm/core = commit:be6e7ac47d | github.com/go-xorm/core = commit:be6e7ac47d | ||||
github.com/gogits/chardet = commit:2404f77725 | github.com/gogits/chardet = commit:2404f77725 | ||||
github.com/gogits/go-gogs-client = commit:92e76d616a | github.com/gogits/go-gogs-client = commit:92e76d616a | ||||
github.com/lib/pq = commit:30ed2200d7 | github.com/lib/pq = commit:30ed2200d7 | ||||
github.com/macaron-contrib/binding = commit:548a793679 | |||||
github.com/macaron-contrib/binding = | |||||
github.com/macaron-contrib/cache = commit:928d5c35cd | github.com/macaron-contrib/cache = commit:928d5c35cd | ||||
github.com/macaron-contrib/captcha = | github.com/macaron-contrib/captcha = | ||||
github.com/macaron-contrib/csrf = commit:98ddf5a710 | github.com/macaron-contrib/csrf = commit:98ddf5a710 | ||||
github.com/shurcooL/go = commit:bc30a0bd33 | github.com/shurcooL/go = commit:bc30a0bd33 | ||||
golang.org/x/net = commit:7dbad50ab5 | golang.org/x/net = commit:7dbad50ab5 | ||||
golang.org/x/text = commit:5f741289c4 | golang.org/x/text = commit:5f741289c4 | ||||
gopkg.in/ini.v1 = commit:177219109c | |||||
gopkg.in/ini.v1 = | |||||
gopkg.in/redis.v2 = commit:e617904962 | gopkg.in/redis.v2 = commit:e617904962 | ||||
[res] | [res] |
issues.filter_type.created_by_you = Created by you | issues.filter_type.created_by_you = Created by you | ||||
issues.filter_type.mentioning_you = Mentioning you | issues.filter_type.mentioning_you = Mentioning you | ||||
issues.opened_by = opened %[1]s by <a href="/%[2]s">%[2]s</a> | issues.opened_by = opened %[1]s by <a href="/%[2]s">%[2]s</a> | ||||
issues.previous = Previous Page | |||||
issues.next = Next Page | |||||
issues.previous = Previous | |||||
issues.next = Next | |||||
issues.label_title = Label name | issues.label_title = Label name | ||||
issues.label_color = Label color | issues.label_color = Label color | ||||
issues.label_count = %d labels | issues.label_count = %d labels |
"github.com/gogits/gogs/modules/setting" | "github.com/gogits/gogs/modules/setting" | ||||
) | ) | ||||
const APP_VER = "0.6.3.0726 Beta" | |||||
const APP_VER = "0.6.3.0728 Beta" | |||||
func init() { | func init() { | ||||
runtime.GOMAXPROCS(runtime.NumCPU()) | runtime.GOMAXPROCS(runtime.NumCPU()) |
list-style: none; | list-style: none; | ||||
font-size: 13px; | font-size: 13px; | ||||
padding-top: 15px; | padding-top: 15px; | ||||
.item { | |||||
>.item { | |||||
padding-top: 15px; | padding-top: 15px; | ||||
padding-bottom: 10px; | padding-bottom: 10px; | ||||
border-bottom: 1px dashed #AAA; | border-bottom: 1px dashed #AAA; |
"time" | "time" | ||||
"github.com/Unknwon/com" | "github.com/Unknwon/com" | ||||
"github.com/Unknwon/paginater" | |||||
"github.com/gogits/gogs/models" | "github.com/gogits/gogs/models" | ||||
"github.com/gogits/gogs/modules/auth" | "github.com/gogits/gogs/modules/auth" | ||||
page := ctx.QueryInt("page") | page := ctx.QueryInt("page") | ||||
if page <= 1 { | if page <= 1 { | ||||
page = 1 | page = 1 | ||||
} else { | |||||
ctx.Data["PreviousPage"] = page - 1 | |||||
} | } | ||||
if (!isShowClosed && int(issueStats.OpenCount) > setting.IssuePagingNum*page) || | |||||
(isShowClosed && int(issueStats.ClosedCount) > setting.IssuePagingNum*page) { | |||||
ctx.Data["NextPage"] = page + 1 | |||||
var total int | |||||
if !isShowClosed { | |||||
total = int(issueStats.OpenCount) | |||||
} else { | |||||
total = int(issueStats.ClosedCount) | |||||
} | } | ||||
ctx.Data["Page"] = paginater.New(total, setting.IssuePagingNum, page, 5) | |||||
// Get issues. | // Get issues. | ||||
issues, err := models.GetIssues(uid, assigneeID, repo.Id, posterID, milestoneID, | issues, err := models.GetIssues(uid, assigneeID, repo.Id, posterID, milestoneID, |
0.6.3.0726 Beta | |||||
0.6.3.0728 Beta |
</li> | </li> | ||||
{{end}} | {{end}} | ||||
{{with .Page}} | |||||
<div class="center page buttons"> | <div class="center page buttons"> | ||||
<a class="ui {{if not .PreviousPage}}disabled{{end}} blue button" href="{{.RepoLink}}/issues?type={{$.ViewType}}&state={{$.State}}&labels={{.SelectLabels}}&page={{.PreviousPage}}">{{.i18n.Tr "repo.issues.previous"}}</a> | |||||
<a class="ui {{if not .NextPage}}disabled{{end}} blue button" href="{{.RepoLink}}/issues?type={{$.ViewType}}&state={{$.State}}&labels={{.SelectLabels}}&page={{.NextPage}}">{{.i18n.Tr "repo.issues.next"}}</a> | |||||
<div class="ui borderless pagination menu"> | |||||
<a class="{{if not .HasPrevious}}disabled{{end}} item" {{if .HasPrevious}}href="{{$.RepoLink}}/issues?type={{$.ViewType}}&state={{$.State}}&labels={{$.SelectLabels}}&page={{.Previous}}"{{end}}> | |||||
<i class="left arrow icon"></i> {{$.i18n.Tr "repo.issues.previous"}} | |||||
</a> | |||||
{{range .Pages}} | |||||
{{if eq .Num -1}} | |||||
<a class="disabled item">...</a> | |||||
{{else}} | |||||
<a class="{{if .IsCurrent}}active{{end}} item" {{if not .IsCurrent}}href="{{$.RepoLink}}/issues?type={{$.ViewType}}&state={{$.State}}&labels={{$.SelectLabels}}&page={{.Num}}"{{end}}>{{.Num}}</a> | |||||
{{end}} | |||||
{{end}} | |||||
<a class="{{if not .HasNext}}disabled{{end}} item" {{if .HasNext}}href="{{$.RepoLink}}/issues?type={{$.ViewType}}&state={{$.State}}&labels={{$.SelectLabels}}&page={{.Next}}"{{end}}> | |||||
{{$.i18n.Tr "repo.issues.next"}} <i class="icon right arrow"></i> | |||||
</a> | |||||
</div> | |||||
</div> | </div> | ||||
{{end}} | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> |