aboutsummaryrefslogtreecommitdiff
path: root/backend/templates/home.html
diff options
context:
space:
mode:
Diffstat (limited to 'backend/templates/home.html')
-rw-r--r--backend/templates/home.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/backend/templates/home.html b/backend/templates/home.html
index f0b9b9c..37236ba 100644
--- a/backend/templates/home.html
+++ b/backend/templates/home.html
@@ -18,10 +18,12 @@
</p>
</article>
{{ end }}
+ {{ if ne .PagesNumber 1 }}
<div class="pagination">
- <a href="">Précédent</a>
- <p>01/15</p>
- <a href="">Suivant</a>
+ {{ if ne .CurrentPage 1 }}<a href="?page={{ before .CurrentPage }}">Précédent</a>{{else}}<p></p>{{end}}
+ <p>{{ .CurrentPage }}/{{ .PagesNumber }}</p>
+ {{ if ne .CurrentPage .PagesNumber }}<a href="?page={{ next .CurrentPage }}">Suivant</a>{{else}}<p></p>{{end}}
</div>
+ {{ end }}
</article>
{{end}} \ No newline at end of file