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.title>
32 <p><%= Page.ImageBrowser.Album.Error.NotFound.Text|l10n|html></p>
36 <h1><%= Page.ImageBrowser.Album.Title|l10n|replace needle='{album}' replacementKey=album.title|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.title|html>" title="<% album.title|html>" />
55 <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
61 <%foreach album.images image>
63 <a href="imageBrowser.html?image=<%image.id|html>">
64 <% image|image-link max-width=200 max-height=150>
69 <div id="description">
70 <% album.description|html>
73 <%if album.sone.current>
74 <%include include/uploadImage.html>
75 <%include include/createAlbum.html>
80 <%elseif imageRequested>
87 <a href="imageBrowser.html?image=<%image.id|html>">
88 <% image|image-link max-width=200 max-height=150>
94 <%elseif soneRequested>
98 <p><%= Page.ImageBrowser.Sone.Error.NotFound.Text|l10n|html></p>
102 <h1><%= Page.ImageBrowser.Sone.Title|l10n|replace needle='{sone}' replacementKey=sone.niceName|html></h1>
104 <%foreach sone.albums album>
107 <a href="imageBrowser.html?album=<% album.id|html>">
108 <%ifnull album.image>
109 <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
111 <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
119 <%include include/createAlbum.html>
126 <%include include/tail.html>