Add links to previous and next images to backlinks.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 14 Nov 2011 20:24:10 +0000 (21:24 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 14 Nov 2011 20:24:10 +0000 (21:24 +0100)
src/main/resources/templates/imageBrowser.html

index 755c431..d3080f6 100644 (file)
                                        <div class="separator">&gt;</div>
                                <%/if>
                        <%/foreach>
+                       <%ifnull !image.previous><div class="backlink"><a href="imageBrowser.html?image=<%image.previous.id|html>">« <%image.previous.title|html></a></div><%/if>
+                       <%ifnull !image.next><div class="backlink"><a href="imageBrowser.html?image=<%image.next.id|html>">» <%image.next.title|html></a></div><%/if>
                </div>
 
                <%ifnull image>