+ <%foreach album.albums album>
+ <div class="album">
+ <a href="imageBrowser.html?album=<% album.id|html>">
+ <%ifnull album.image>
+ <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
+ <%else><!-- TODO -->
+ <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
+ <%/if>
+ </a>
+ </div>
+ <%/foreach>
+
+ <%foreach album.images image>
+ <div class="image">
+ <a href="imageBrowser.html?image=<%image.id|html>"><% image|image-link max-width=200 max-height=150></a>
+ </div>
+ <%/foreach>
+
+ <div id="description">
+ <% album.description|html>
+ </div>
+
+ <%if album.sone.current>
+ <%include include/uploadImage.html>
+ <%include include/createAlbum.html>
+ <%/if>
+
+ <%/if>
+
+ <%elseif imageRequested>
+
+ <%ifnull image>
+
+ <%else>
+
+ <div class="image">
+ <a href="imageBrowser.html?image=<%image.id|html>">
+ <% image|image-link max-width=200 max-height=150>
+ </a>
+ </div>
+
+ <%/if>
+
+ <%elseif soneRequested>
+
+ <%ifnull sone>
+
+ <p><%= Page.ImageBrowser.Sone.Error.NotFound.Text|l10n|html></p>
+
+ <%else>
+
+ <h1><%= Page.ImageBrowser.Sone.Title|l10n|replace needle='{sone}' replacementKey=sone.niceName|html></h1>
+
+ <%foreach sone.albums album>
+ <div class="album">
+ <div class="image">
+ <a href="imageBrowser.html?album=<% album.id|html>">
+ <%ifnull album.image>
+ <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
+ <%else><!-- TODO -->
+ <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
+ <%/if>
+ </a>
+ </div>
+ </div>
+ <%/foreach>
+
+ <%if sone.current>
+ <%include include/createAlbum.html>
+ <%/if>
+