Omit margin between header and backlinks.
[Sone.git] / src / main / resources / templates / imageBrowser.html
index 9bcaa9d..54f646f 100644 (file)
@@ -54,7 +54,7 @@
                                </script>
                        <%/if>
 
-                       <h1><%= Page.ImageBrowser.Album.Title|l10n|replace needle='{album}' replacementKey=album.title|html></h1>
+                       <h1 class="backlink"><%= Page.ImageBrowser.Album.Title|l10n|replace needle='{album}' replacementKey=album.title|html></h1>
 
                        <div class="backlinks">
                                <%foreach album.backlinks backlink backlinks>
 
                        <%foreach album.albums album>
                                <div class="album image">
-                                       <a href="imageBrowser.html?album=<% album.id|html>">
-                                               <%ifnull album.image>
+                                       <a href="imageBrowser.html?album=<% album.id|html>" title="<% album.title|html>">
+                                               <%ifnull album.albumImage>
                                                        <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>" />
+                                                       <% album.albumImage|image-link max-width=200 max-height=150 title==album.title>
                                                <%/if>
+                                               <br/>
+                                               <% album.title|html>
                                        </a>
                                </div>
                        <%/foreach>
@@ -89,7 +91,7 @@
                                <% album.description|html>
                        </div>
 
-                       <%if album.sone.current>
+                       <%if album.sone.local>
                                <%include include/uploadImage.html>
                                <%include include/createAlbum.html>
 
 
        <%elseif imageRequested>
 
-               <h1><%image.title|html></h1>
+               <h1 class="backlink"><%image.title|html></h1>
 
                <div class="backlinks">
                        <%foreach image.album.backlinks backlink backlinks>
 
                        <%foreach sone.albums album>
                                <div class="album image">
-                                       <a href="imageBrowser.html?album=<% album.id|html>">
-                                               <%ifnull album.image>
+                                       <a href="imageBrowser.html?album=<% album.id|html>" title="<% album.title|html>">
+                                               <%ifnull album.albumImage>
                                                        <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>" />
+                                                       <% album.albumImage|image-link max-width=200 max-height=150 title==album.title>
                                                <%/if>
+                                               <br/>
+                                               <% album.title|html>
                                        </a>
                                </div>
                        <%/foreach>
 
-                       <%if sone.current>
+                       <%if sone.local>
                                <%include include/createAlbum.html>
                        <%/if>