summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-04 10:16:50 -0500
committerUnknwon <u@gogs.io>2015-11-04 10:16:50 -0500
commit00eb2b221ff189a658cf4a7d7fa40e55ae66dfd9 (patch)
treea12c762e52b9fe988b5850cb5200a425856bd26a
parent1b5e1bebc2448439570e2e49233bd6de066b82c6 (diff)
downloadgitea-00eb2b221ff189a658cf4a7d7fa40e55ae66dfd9.tar.gz
gitea-00eb2b221ff189a658cf4a7d7fa40e55ae66dfd9.zip
fix #1876
-rw-r--r--gogs.go2
-rw-r--r--routers/repo/issue.go5
-rw-r--r--templates/.VERSION2
3 files changed, 5 insertions, 4 deletions
diff --git a/gogs.go b/gogs.go
index 4cf63ac943..c903192b84 100644
--- a/gogs.go
+++ b/gogs.go
@@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting"
)
-const APP_VER = "0.6.24.1103 Beta"
+const APP_VER = "0.6.24.1104 Beta"
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index fb64f6a348..763d395bb5 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -124,7 +124,8 @@ func Issues(ctx *middleware.Context) {
} else {
total = int(issueStats.ClosedCount)
}
- ctx.Data["Page"] = paginater.New(total, setting.IssuePagingNum, page, 5)
+ pager := paginater.New(total, setting.IssuePagingNum, page, 5)
+ ctx.Data["Page"] = pager
// Get issues.
issues, err := models.Issues(&models.IssuesOptions{
@@ -133,7 +134,7 @@ func Issues(ctx *middleware.Context) {
RepoID: repo.ID,
PosterID: posterID,
MilestoneID: milestoneID,
- Page: page,
+ Page: pager.Current(),
IsClosed: isShowClosed,
IsMention: filterMode == models.FM_MENTION,
IsPull: isPullList,
diff --git a/templates/.VERSION b/templates/.VERSION
index 05e36c4634..fee1aa357c 100644
--- a/templates/.VERSION
+++ b/templates/.VERSION
@@ -1 +1 @@
-0.6.24.1103 Beta \ No newline at end of file
+0.6.24.1104 Beta \ No newline at end of file