1 <%include include/head.html>
3 <div class="page-id hidden">image-browser</div>
9 <p><%= Page.ImageBrowser.Album.Error.NotFound.Text|l10n|html></p>
11 <%elseifnull album.title>
13 <p><%= Page.ImageBrowser.Album.Error.NotFound.Text|l10n|html></p>
17 <%if album.sone.local>
18 <script language="javascript">
20 getTranslation("WebInterface.DefaultText.UploadImage.Title", function(text) {
21 $("#upload-image :input[name='title']").each(function() {
22 registerInputTextareaSwap(this, text, "title", false, true);
25 getTranslation("WebInterface.DefaultText.UploadImage.Description", function(text) {
26 $("#upload-image :input[name='description']").each(function() {
27 registerInputTextareaSwap(this, text, "description", true, false);
30 $("#upload-image label").hide();
31 getTranslation("WebInterface.DefaultText.CreateAlbum.Name", function(text) {
32 $("#create-album input[name='name']").each(function() {
33 registerInputTextareaSwap(this, text, "name", false, true);
36 getTranslation("WebInterface.DefaultText.CreateAlbum.Description", function(text) {
37 $("#create-album input[name='description']").each(function() {
38 registerInputTextareaSwap(this, text, "description", true, true);
41 $("#create-album label").hide();
42 getTranslation("WebInterface.DefaultText.EditAlbum.Title", function(text) {
43 $("#edit-album input[name='title']").each(function() {
44 registerInputTextareaSwap(this, text, "title", false, true);
47 getTranslation("WebInterface.DefaultText.EditAlbum.Description", function(text) {
48 $("#edit-album :input[name='description']").each(function() {
49 registerInputTextareaSwap(this, text, "description", true, false);
52 $("#edit-album label").hide();
57 <h1 class="backlink"><%= Page.ImageBrowser.Album.Title|l10n|replace needle='{album}' replacementKey=album.title|html></h1>
59 <div class="backlinks">
60 <%foreach album.backlinks backlink backlinks>
61 <div class="backlink">
62 <a href="<% backlink.target|html>"><% backlink.name|html></a>
64 <%if ! backlinks.last>
65 <div class="separator">></div>
70 <p id="description"><% album.description|html></p>
72 <%foreach album.albums album>
73 <%first><h2><%= Page.ImageBrowser.Header.Albums|l10n|html></h2><%/first>
74 <div class="album image">
75 <a href="imageBrowser.html?album=<% album.id|html>" title="<% album.title|html>">
76 <%ifnull album.albumImage>
77 <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
79 <% album.albumImage|image-link max-width=200 max-height=150 title==album.title>
87 <%foreach album.images image>
88 <%first><h2><%= Page.ImageBrowser.Header.Images|l10n|html></h2><%/first>
90 <a href="imageBrowser.html?image=<%image.id|html>"><% image|image-link max-width=200 max-height=150></a>
95 <%if album.sone.local>
96 <%include include/uploadImage.html>
97 <%include include/createAlbum.html>
99 <h2><%= Page.ImageBrowser.Album.Edit.Title|l10n|html></h2>
101 <form id="edit-album" action="editAlbum.html" method="post">
102 <input type="hidden" name="formPassword" value="<%formPassword|html>" />
103 <input type="hidden" name="album" value="<%album.id|html>" />
106 <label for="title"><%= Page.ImageBrowser.Album.Label.Title|l10n|html></label>
107 <input type="text" name="title" value="<%album.title|html>" />
110 <label for="description"><%= Page.ImageBrowser.Album.Label.Description|l10n|html></label>
111 <textarea name="description"><%album.description|html></textarea>
113 <button type="submit"><%= Page.ImageBrowser.Album.Button.Save|l10n|html></button>
117 <form id="delete-album" action="deleteAlbum.html" method="get">
118 <input type="hidden" name="album" value="<%album.id|html>" />
119 <button type="submit"><%= Page.ImageBrowser.Album.Button.Delete|l10n|html></button>
127 <%elseif imageRequested>
129 <h1 class="backlink"><%image.title|html></h1>
131 <div class="backlinks">
132 <%foreach image.album.backlinks backlink backlinks>
133 <div class="backlink">
134 <a href="<% backlink.target|html>"><% backlink.name|html></a>
136 <%if ! backlinks.last>
137 <div class="separator">></div>
146 <%if image.sone.local>
147 <script language="javascript">
149 getTranslation("WebInterface.DefaultText.EditImage.Title", function(text) {
150 $("#edit-image input[name='title']").each(function() {
151 registerInputTextareaSwap(this, text, "title", false, true);
154 getTranslation("WebInterface.DefaultText.EditImage.Description", function(text) {
155 $("#edit-image :input[name='description']").each(function() {
156 registerInputTextareaSwap(this, text, "description", true, false);
159 $("#edit-image label").hide();
164 <div class="single-image">
166 <a href="/<%image.key|html>"><% image|image-link max-width=640 max-height=480></a>
168 <a href="imageBrowser.html?image=<%image.id|html>"><% image|image-link max-width=640 max-height=480></a>
172 <p class="parsed"><%image.description|parse sone=image.sone></p>
174 <%if image.sone.local>
176 <h2><%= Page.ImageBrowser.Image.Edit.Title|l10n|html></h2>
178 <form id="edit-image" action="editImage.html" method="post">
179 <input type="hidden" name="formPassword" value="<%formPassword|html>" />
180 <input type="hidden" name="image" value="<%image.id|html>" />
183 <label for="title"><%= Page.ImageBrowser.Image.Title.Label|l10n|html></label>
184 <input type="text" name="title" value="<%image.title|html>" />
187 <label for="description"><%= Page.ImageBrowser.Image.Description.Label|l10n|html></label>
188 <textarea name="description"><%image.description|html></textarea>
191 <button type="submit"><%= Page.ImageBrowser.Image.Button.Save|l10n|html></button>
195 <h2><%= Page.ImageBrowser.Image.Delete.Title|l10n|html></h2>
197 <form id="delete-image" action="deleteImage.html" method="get">
198 <input type="hidden" name="image" value="<%image.id|html>" />
199 <button type="submit"><%= Page.ImageBrowser.Image.Button.Delete|l10n|html></button>
206 <%elseif soneRequested>
209 <script language="javascript">
211 getTranslation("WebInterface.DefaultText.CreateAlbum.Name", function(text) {
212 $("#create-album input[name='name']").each(function() {
213 registerInputTextareaSwap(this, text, "name", false, true);
216 getTranslation("WebInterface.DefaultText.CreateAlbum.Description", function(text) {
217 $("#create-album input[name='description']").each(function() {
218 registerInputTextareaSwap(this, text, "description", true, true);
221 $("#create-album label").hide();
228 <p><%= Page.ImageBrowser.Sone.Error.NotFound.Text|l10n|html></p>
232 <h1><%= Page.ImageBrowser.Sone.Title|l10n|replace needle='{sone}' replacementKey=sone.niceName|html></h1>
234 <%foreach sone.albums album>
235 <div class="album image">
236 <a href="imageBrowser.html?album=<% album.id|html>" title="<% album.title|html>">
237 <%ifnull album.albumImage>
238 <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
240 <% album.albumImage|image-link max-width=200 max-height=150 title==album.title>
249 <%include include/createAlbum.html>
256 <%include include/tail.html>