Show pagination only if needed on repo issues page
@@ -87,6 +87,7 @@
{{end}}
{{with .Page}}
+ {{if gt .Total 1}}
<div class="center page buttons">
<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}}>
@@ -105,7 +106,8 @@
</div>
+ {{end}}
-{{template "base/footer" .}}
+{{template "base/footer" .}}