Merge branch 'release-0.9.7'
[Sone.git] / src / main / resources / templates / include / browseAlbums.html
1 <%foreach albums album>
2         <%first><h2><%= Page.ImageBrowser.Header.Albums|l10n|html></h2><%/first>
3         <%if loop.count|mod divisor==3><div class="album-row"><%/if>
4         <div id="album-<% album.id|html>" class="album">
5                 <div class="album-id hidden"><% album.id|html></div>
6                 <div class="album-container">
7                         <a href="imageBrowser.html?album=<% album.id|html>" title="<% album.title|html>">
8                                 <%ifnull album.albumImage>
9                                         <img src="images/unknown-image-0.png" width="333" height="250" alt="<% album.title|html>" title="<% album.title|html>" style="position: relative; top: 0px; left: -41px;" />
10                                 <%else><!-- TODO -->
11                                         <% album.albumImage|image-link max-width==250 max-height==250 mode==enlarge title=album.title>
12                                 <%/if>
13                         </a>
14                 </div>
15                 <div class="show-data">
16                         <div class="album-title"><% album.title|html> (<%= View.Sone.Stats.Images|l10n 0=album.images.size>)</div>
17                         <div class="album-description"><% album.description|parse sone=album.sone|render></div>
18                 </div>
19                 <%if album.sone.local>
20                         <form class="edit-album" action="editAlbum.html" method="post">
21                                 <input type="hidden" name="formPassword" value="<%formPassword|html>" />
22                                 <input type="hidden" name="returnPage" value="<%request.uri|html>" />
23                                 <input type="hidden" name="album" value="<%album.id|html>" />
24
25                                 <div class="move-buttons">
26                                                 <button <%first>class="hidden" <%/first>type="submit" name="moveLeft" value="true"><%= Page.ImageBrowser.Image.Button.MoveLeft|l10n|html></button>
27                                                 <button <%last>class="hidden" <%/last>type="submit" name="moveRight" value="true"><%= Page.ImageBrowser.Image.Button.MoveRight|l10n|html></button>
28                                 </div>
29
30                                 <div class="edit-data hidden">
31                                         <div>
32                                                 <input type="text" name="title" value="<%album.title|html>" />
33                                         </div>
34                                         <div>
35                                                 <textarea name="description"><%album.description|html></textarea>
36                                         </div>
37                                         <div>
38                                                 <button <%first>class="hidden" <%/first>type="submit" name="moveLeft" value="true"><%= Page.ImageBrowser.Image.Button.MoveLeft|l10n|html></button>
39                                                 <button type="submit" name="submit"><%= Page.ImageBrowser.Album.Button.Save|l10n|html></button>
40                                                 <button <%last>class="hidden" <%/last>type="submit" name="moveRight" value="true"><%= Page.ImageBrowser.Image.Button.MoveRight|l10n|html></button>
41                                         </div>
42                                 </div>
43                         </form>
44                 <%/if>
45         </div>
46         <%= false|store key==endRow>
47         <%if loop.count|mod divisor==3 offset==1><%= true|store key==endRow><%/if>
48         <%last><%= true|store key==endRow><%/last>
49         <%if endRow></div><%/if>
50 <%/foreach>