Only include album creation form when browsing own albums.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 22 Mar 2011 19:45:51 +0000 (20:45 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 22 Mar 2011 19:45:51 +0000 (20:45 +0100)
src/main/resources/templates/imageBrowser.html

index ca2014d..e9d1ad9 100644 (file)
                                </div>
                        <%/foreach>
 
-                       <%include include/createAlbum.html>
-
                        <div id="description">
                                <% album.description|html>
                        </div>
 
+                       <%if album.sone.current>
+                               <%include include/createAlbum.html>
+                       <%/if>
+
                <%/if>
 
        <%elseif imageRequested>