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>
52 <a href="imageBrowser.html?album=<% album.id|html>">
54 <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.name|html>" title="<% album.name|html>" />
56 <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.name|html>" title="<% album.name|html>" />
63 <div id="description">
64 <% album.description|html>
67 <%if album.sone.current>
68 <%include include/uploadImage.html>
69 <%include include/createAlbum.html>
74 <%elseif imageRequested>
76 <%elseif soneRequested>
80 <p><%= Page.ImageBrowser.Sone.Error.NotFound.Text|l10n|html></p>
84 <h1><%= Page.ImageBrowser.Sone.Title|l10n|replace needle='{sone}' replacementKey=sone.niceName|html></h1>
86 <%foreach sone.albums album>
89 <a href="imageBrowser.html?album=<% album.id|html>">
91 <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.name|html>" title="<% album.name|html>" />
93 <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.name|html>" title="<% album.name|html>" />
101 <%include include/createAlbum.html>
108 <%include include/tail.html>