Add title to album links.
[Sone.git] / src / main / resources / templates / imageBrowser.html
index 7e93f76..019da9f 100644 (file)
 
                        <%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>
 
                        <%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>