diff options
Diffstat (limited to 'backend/templates/components.html')
| -rw-r--r-- | backend/templates/components.html | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/backend/templates/components.html b/backend/templates/components.html index 8f1bcc2..72bf40e 100644 --- a/backend/templates/components.html +++ b/backend/templates/components.html @@ -1,4 +1,4 @@ -{{define "logs_display"}} +{{define "section_display"}} <article> {{ $uri := .URI }} {{ range .Data }} <article> @@ -11,7 +11,19 @@ </article> {{ end }} <div class="pagination"> + {{ if .Paginate }} + <nav> + {{ 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}} + </nav> + {{ else }} <a href="/{{ $uri }}/">Voir plus</a> + {{ end }} </div> </article> {{end}} |
