0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-27 00:05:40 +01:00
gitea/routers/repo
iszla 3f9016430f Pagination on releases page (#2035)
* Added count to GetReleasesByRepoID so pagination will work

* Separated it out to a new function, can then also leave the API part unaffected

* Remove extra whitespace added in untouched function

* Added comment and corrected name in error handler

* Account for if the user is owner or not in the count

* Also check if repo is draft

* revert back to the correct count in the ReleasesToDisplay loop

* Fixed lint error regarding else with return statement

* Use Cond struct instead of string, corrected name in error handler

* Removed unused return variable names
2017-06-28 22:47:00 +08:00
..
attachment.go
branch.go Make branch deletion URL more like GitHub's, fixes #1397 (#1994) 2017-06-21 09:00:03 +08:00
commit.go
download.go
editor.go repo/editor: fix breadcrumb path cuts parent dirs (#3859) (#2032) 2017-06-22 23:30:47 +08:00
http.go Fix: http: multiple response.WriteHeader calls (#2038) 2017-06-28 14:08:47 +08:00
issue_label.go Load label ID in NewLabels (#2045) 2017-06-25 14:15:09 +08:00
issue_watch.go
issue.go Make branch deletion URL more like GitHub's, fixes #1397 (#1994) 2017-06-21 09:00:03 +08:00
middlewares.go
pull.go Fix displaying commits and files of PR created from now deleted fork (#2023) 2017-06-22 19:40:47 +02:00
release.go Pagination on releases page (#2035) 2017-06-28 22:47:00 +08:00
repo.go
setting.go Fix uppercase default branch bug (#1965) 2017-06-14 08:42:36 +08:00
view.go
webhook.go
wiki.go