1 <%include include/head.html>
3 <script language="javascript">
5 /* ajaxify album creation input field. */
6 $(document).ready(function() {
7 getTranslation("WebInterface.DefaultText.CreateAlbum.Name", function(text) {
8 $("#create-album input[name='name']").each(function() {
9 registerInputTextareaSwap(this, text, "name", false, true);
12 getTranslation("WebInterface.DefaultText.CreateAlbum.Description", function(text) {
13 $("#create-album input[name='description']").each(function() {
14 registerInputTextareaSwap(this, text, "description", true, true);
17 $("#create-album label").hide();
22 <div class="page-id hidden">image-browser</div>
28 <p><%= Page.ImageBrowser.Album.Error.NotFound.Text|l10n|html></p>
30 <%elseifnull album.name>
32 <p><%= Page.ImageBrowser.Album.Error.NotFound.Text|l10n|html></p>
36 <h1><%= Page.ImageBrowser.Album.Title|l10n|replace needle='{album}' replacementKey=album.name|html></h1>
38 <div class="backlinks">
39 <%foreach album.backlinks backlink backlinks>
40 <div class="backlink">
41 <a href="<% backlink.target|html>"><% backlink.name|html></a>
43 <%if ! backlinks.last>
44 <div class="separator">></div>
49 <%foreach album.albums album>
51 <a href="imageBrowser.html?album=<% album.id|html>">
53 <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.name|html>" title="<% album.name|html>" />
55 <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.name|html>" title="<% album.name|html>" />
61 <%foreach album.images image>
63 <a href="imageBrowser.html?image=<%image.id|html>">
65 <img src="images/unknown-image-0.png" width="200" height="150" alt="<% image.title|html>" title="<% image.title|html>" />
67 <img src="images/unknown-image-0.png" width="200" height="150" alt="<% image.title|html>" title="<% image.title|html>" />
73 <div id="description">
74 <% album.description|html>
77 <%if album.sone.current>
78 <%include include/uploadImage.html>
79 <%include include/createAlbum.html>
84 <%elseif imageRequested>
86 <%elseif soneRequested>
90 <p><%= Page.ImageBrowser.Sone.Error.NotFound.Text|l10n|html></p>
94 <h1><%= Page.ImageBrowser.Sone.Title|l10n|replace needle='{sone}' replacementKey=sone.niceName|html></h1>
96 <%foreach sone.albums album>
99 <a href="imageBrowser.html?album=<% album.id|html>">
100 <%ifnull album.image>
101 <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.name|html>" title="<% album.name|html>" />
103 <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.name|html>" title="<% album.name|html>" />
111 <%include include/createAlbum.html>
118 <%include include/tail.html>