projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Show albums and images in columns of three.
[Sone.git]
/
src
/
main
/
resources
/
templates
/
imageBrowser.html
diff --git
a/src/main/resources/templates/imageBrowser.html
b/src/main/resources/templates/imageBrowser.html
index
45836db
..
a8f1e98
100644
(file)
--- a/
src/main/resources/templates/imageBrowser.html
+++ b/
src/main/resources/templates/imageBrowser.html
@@
-54,7
+54,7
@@
</script>
<%/if>
</script>
<%/if>
- <h1><%= Page.ImageBrowser.Album.Title|l10n|replace needle='{album}' replacementKey=album.title|html></h1>
+ <h1
class="backlink"
><%= Page.ImageBrowser.Album.Title|l10n|replace needle='{album}' replacementKey=album.title|html></h1>
<div class="backlinks">
<%foreach album.backlinks backlink backlinks>
<div class="backlinks">
<%foreach album.backlinks backlink backlinks>
@@
-67,28
+67,40
@@
<%/foreach>
</div>
<%/foreach>
</div>
+ <p id="description"><% album.description|html></p>
+
<%foreach album.albums album>
<%foreach album.albums album>
+ <%first><h2><%= Page.ImageBrowser.Header.Albums|l10n|html></h2><%/first>
+ <%if loop.count|mod divisor=3><div class="image-row"><%/if>
<div class="album image">
<div class="album image">
- <a href="imageBrowser.html?album=<% album.id|html>">
- <%ifnull album.
i
mage>
+ <a href="imageBrowser.html?album=<% album.id|html>"
title="<% album.title|html>"
>
+ <%ifnull album.
albumI
mage>
<img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
<%else><!-- TODO -->
<% album.albumImage|image-link max-width=200 max-height=150 title==album.title>
<%/if>
<img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
<%else><!-- TODO -->
<% album.albumImage|image-link max-width=200 max-height=150 title==album.title>
<%/if>
+ <br/>
+ <% album.title|html>
</a>
</div>
</a>
</div>
+ <%= false|store key=endRow>
+ <%if loop.count|mod divisor=3 offset=1><%= true|store key=endRow><%/if>
+ <%last><%= true|store key=endRow><%/last>
+ <%if endRow></div><%/if>
<%/foreach>
<%foreach album.images image>
<%/foreach>
<%foreach album.images image>
+ <%first><h2><%= Page.ImageBrowser.Header.Images|l10n|html></h2><%/first>
+ <%if loop.count|mod divisor=3><div class="image-row"><%/if>
<div class="image">
<a href="imageBrowser.html?image=<%image.id|html>"><% image|image-link max-width=200 max-height=150></a>
</div>
<div class="image">
<a href="imageBrowser.html?image=<%image.id|html>"><% image|image-link max-width=200 max-height=150></a>
</div>
+ <%= false|store key=endRow>
+ <%if loop.count|mod divisor=3 offset=1><%= true|store key=endRow><%/if>
+ <%last><%= true|store key=endRow><%/last>
+ <%if endRow></div><%/if>
<%/foreach>
<%/foreach>
- <div id="description">
- <% album.description|html>
- </div>
-
<%if album.sone.local>
<%include include/uploadImage.html>
<%include include/createAlbum.html>
<%if album.sone.local>
<%include include/uploadImage.html>
<%include include/createAlbum.html>
@@
-123,7
+135,7
@@
<%elseif imageRequested>
<%elseif imageRequested>
- <h1><%image.title|html></h1>
+ <h1
class="backlink"
><%image.title|html></h1>
<div class="backlinks">
<%foreach image.album.backlinks backlink backlinks>
<div class="backlinks">
<%foreach image.album.backlinks backlink backlinks>
@@
-229,15
+241,22
@@
<h1><%= Page.ImageBrowser.Sone.Title|l10n|replace needle='{sone}' replacementKey=sone.niceName|html></h1>
<%foreach sone.albums album>
<h1><%= Page.ImageBrowser.Sone.Title|l10n|replace needle='{sone}' replacementKey=sone.niceName|html></h1>
<%foreach sone.albums album>
+ <%if loop.count|mod divisor=3><div class="image-row"><%/if>
<div class="album image">
<div class="album image">
- <a href="imageBrowser.html?album=<% album.id|html>">
- <%ifnull album.
i
mage>
+ <a href="imageBrowser.html?album=<% album.id|html>"
title="<% album.title|html>"
>
+ <%ifnull album.
albumI
mage>
<img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
<%else><!-- TODO -->
<% album.albumImage|image-link max-width=200 max-height=150 title==album.title>
<%/if>
<img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
<%else><!-- TODO -->
<% album.albumImage|image-link max-width=200 max-height=150 title==album.title>
<%/if>
+ <br/>
+ <% album.title|html>
</a>
</div>
</a>
</div>
+ <%= false|store key=endRow>
+ <%if loop.count|mod divisor=3 offset=1><%= true|store key=endRow><%/if>
+ <%last><%= true|store key=endRow><%/last>
+ <%if endRow></div><%/if>
<%/foreach>
<%if sone.local>
<%/foreach>
<%if sone.local>