aboutsummaryrefslogtreecommitdiff
path: root/backend/templates/components.html
diff options
context:
space:
mode:
Diffstat (limited to 'backend/templates/components.html')
-rw-r--r--backend/templates/components.html20
1 files changed, 5 insertions, 15 deletions
diff --git a/backend/templates/components.html b/backend/templates/components.html
index da133a6..9792784 100644
--- a/backend/templates/components.html
+++ b/backend/templates/components.html
@@ -1,26 +1,16 @@
{{define "logs_display"}}
<article>
- {{ range .Logs }}
+ {{ $uri := .URI }}
+ {{ range .Data }}
<article>
- <h2><a href="/logs/{{ .Slug }}">{{ .LogTitle }}</a></h2>
+ <h2><a href="/{{ $uri }}/{{ .Slug }}">{{ .DataTitle }}</a></h2>
<figure>
- <a href="/logs/{{ .Slug }}"><img src="{{ static .Img.Src }}" alt="{{ .Img.Alt }}" /></a>
+ <a href="/{{ $uri }}/{{ .Slug }}"><img src="{{ static .Img.Src }}" alt="{{ .Img.Alt }}" /></a>
<figcaption>{{ .Img.Legend }}</figcaption>
</figure>
<p>{{ .Description }}</p>
</article>
- {{ end }} {{ if ne .PagesNumber 1 }}
- <div class="pagination">
- <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>
- </div>
{{ end }}
+ <a href="/{{ $uri }}/">Voir plus</a>
</article>
{{end}}