diff options
author | kendaru <soud@protonmail.com> | 2015-10-02 10:04:11 +0200 |
---|---|---|
committer | kendaru <soud@protonmail.com> | 2015-10-02 10:04:11 +0200 |
commit | 5c39d3fa7dfcb81bdaed222a73c8a7d3dd807e36 (patch) | |
tree | a1998d60ea8b59aad6ac6710d2103bddb3675ed8 /templates | |
parent | 87d64acc9f7de985603093980c8dc3fa651047a1 (diff) | |
download | gitea-5c39d3fa7dfcb81bdaed222a73c8a7d3dd807e36.tar.gz gitea-5c39d3fa7dfcb81bdaed222a73c8a7d3dd807e36.zip |
changed integrated page number to GET
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/stars.tmpl | 6 | ||||
-rw-r--r-- | templates/repo/watchers.tmpl | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/templates/repo/stars.tmpl b/templates/repo/stars.tmpl index 8ac67f5c50..af3193dcf7 100644 --- a/templates/repo/stars.tmpl +++ b/templates/repo/stars.tmpl @@ -35,19 +35,19 @@ {{if gt .TotalPages 1}} <div class="pagination"> {{if .HasPrevious}} - <a href="{{$.RepoLink}}/stars/{{.Previous}}">{{$.i18n.Tr "issues.previous"}}</a> + <a href="{{$.RepoLink}}/stars?page={{.Previous}}">{{$.i18n.Tr "issues.previous"}}</a> {{end}} {{range .Pages}} {{if eq .Num -1}} <a class="disabled item">...</a> {{else}} - <a class="{{if .IsCurrent}}active{{end}} item" {{if not .IsCurrent}}href="{{$.RepoLink}}/stars/{{.Num}}"{{end}}>{{.Num}}</a> + <a class="{{if .IsCurrent}}active{{end}} item" {{if not .IsCurrent}}href="{{$.RepoLink}}/stars?page={{.Num}}"{{end}}>{{.Num}}</a> {{end}} {{end}} {{if .HasNext}} - <a href="{{$.RepoLink}}/stars/{{.Next}}">{{$.i18n.Tr "issues.next"}}</a> + <a href="{{$.RepoLink}}/stars?page={{.Next}}">{{$.i18n.Tr "issues.next"}}</a> {{end}} </div> {{end}} diff --git a/templates/repo/watchers.tmpl b/templates/repo/watchers.tmpl index f02b201304..03aba0e9ad 100644 --- a/templates/repo/watchers.tmpl +++ b/templates/repo/watchers.tmpl @@ -35,19 +35,19 @@ {{if gt .TotalPages 1}} <div class="pagination"> {{if .HasPrevious}} - <a href="{{$.RepoLink}}/watchers/{{.Previous}}">{{$.i18n.Tr "issues.previous"}}</a> + <a href="{{$.RepoLink}}/watchers?page={{.Previous}}">{{$.i18n.Tr "issues.previous"}}</a> {{end}} {{range .Pages}} {{if eq .Num -1}} <a class="disabled item">...</a> {{else}} - <a class="{{if .IsCurrent}}active{{end}} item" {{if not .IsCurrent}}href="{{$.RepoLink}}/watchers/{{.Num}}"{{end}}>{{.Num}}</a> + <a class="{{if .IsCurrent}}active{{end}} item" {{if not .IsCurrent}}href="{{$.RepoLink}}/watchers?page={{.Num}}"{{end}}>{{.Num}}</a> {{end}} {{end}} {{if .HasNext}} - <a href="{{$.RepoLink}}/watchers/{{.Next}}">{{$.i18n.Tr "issues.next"}}</a> + <a href="{{$.RepoLink}}/watchers?page={{.Next}}">{{$.i18n.Tr "issues.next"}}</a> {{end}} </div> {{end}} |