Add album title below image.
[Sone.git] / src / main / resources / templates / imageBrowser.html
index 9bcaa9d..c205877 100644 (file)
                                                <%ifnull album.image>
                                                        <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>
 
                                                <%ifnull album.image>
                                                        <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>