diff options
author | iszla <iszla@users.noreply.github.com> | 2017-06-28 16:47:00 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-06-28 22:47:00 +0800 |
commit | 3f9016430f5a712bdff05a9cc941a287be0f217d (patch) | |
tree | 874a5bb1a3823a7e74590a6212968ea12384fe25 /routers/api | |
parent | 1f4d84b7b26c08e5a0e3abbaac650ac39d48c9d3 (diff) | |
download | gitea-3f9016430f5a712bdff05a9cc941a287be0f217d.tar.gz gitea-3f9016430f5a712bdff05a9cc941a287be0f217d.zip |
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
Diffstat (limited to 'routers/api')
0 files changed, 0 insertions, 0 deletions