aboutsummaryrefslogtreecommitdiff
path: root/templates/album.qtpl
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-10-06 18:30:34 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-10-06 18:41:13 +0200
commit99a7e9ab02ae1980874be35f6a2651ca4bfdb951 (patch)
tree71d4a3f2a7e7df2b527344158dc8b7c684fef518 /templates/album.qtpl
parent91f7c40479aa9ef18c7927913be49a014a8a3115 (diff)
downloadlens-99a7e9ab02ae1980874be35f6a2651ca4bfdb951.tar.gz
lens-99a7e9ab02ae1980874be35f6a2651ca4bfdb951.tar.bz2
lens-99a7e9ab02ae1980874be35f6a2651ca4bfdb951.zip
feat: Simplify mosaic
The old implementation was not good and would render the list on mobile in the wrong order
Diffstat (limited to 'templates/album.qtpl')
-rw-r--r--templates/album.qtpl16
1 files changed, 8 insertions, 8 deletions
diff --git a/templates/album.qtpl b/templates/album.qtpl
index 58fc499..246c77c 100644
--- a/templates/album.qtpl
+++ b/templates/album.qtpl
@@ -20,15 +20,15 @@ func (m *AlbumPage) PreloadAttr() string {
{% func (p *AlbumPage) Title() %}Media{% endfunc %}
{% func (p *AlbumPage) Content() %}
-<h1 class="title text-size-1">{%s p.Name %}</h1>
-<div class="tags are-large">
-{% for _, a := range p.Albums %}
- <a href="/album?albumId={%s FromUInttoString(&a.ID) %}" class="tag text-size-2">{%s a.Name %}</a>
-{% endfor %}
-</div>
-<div class="columns">
+<section class="section">
+ <h1 class="title text-size-1">{%s p.Name %}</h1>
+ <div class="tags are-large">
+ {% for _, a := range p.Albums %}
+ <a href="/album?albumId={%s FromUInttoString(&a.ID) %}" class="tag text-size-2">{%s a.Name %}</a>
+ {% endfor %}
+ </div>
+</section>
{%= Mosaic(p.Medias, p.PreloadAttr()) %}
-</div>
<div>
<a href="/album?albumId={%s FromUInttoString(p.Next.AlbumID) %}&page={%d p.Next.Page %}" class="button is-pulled-right">next</a>
</div>