Show backlinks for album.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 11 Jan 2011 06:05:33 +0000 (07:05 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 11 Jan 2011 06:05:33 +0000 (07:05 +0100)
src/main/resources/templates/imageBrowser.html

index 6ec8426..fae4026 100644 (file)
                        <p><%= Page.ImageBrowser.Album.Error.NotFound.Text|l10n|html></p>
 
                <%else>
+
+                       <h2><% album.name|html></h2>
+
+                       <div class="backlinks">
+                               <%foreach album.backlinks backlink backlinks>
+                                       <div class="backlink">
+                                               <a href="<% backlink.target|html>"><% backlink.name|html></a>
+                                       </div>
+                                       <%if ! backlinks.last>
+                                               <div class="separator">&gt;</div>
+                                       <%/if>
+                               <%/foreach>
+                       </div>
+
                <%/if>
 
        <%/if>