Add link to “All Sones” to all image browser pages.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 15 Nov 2011 05:53:33 +0000 (06:53 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 15 Nov 2011 05:53:33 +0000 (06:53 +0100)
src/main/resources/i18n/sone.en.properties
src/main/resources/templates/imageBrowser.html

index 28deb38..afc445a 100644 (file)
@@ -204,6 +204,7 @@ Page.ImageBrowser.Sone.Title=Albums of {sone}
 Page.ImageBrowser.Sone.Error.NotFound.Text=The requested Sone could not be found. It is possible that it has not yet been downloaded.
 Page.ImageBrowser.Header.Albums=Albums
 Page.ImageBrowser.Header.Images=Images
+Page.ImageBrowser.Link.All=All Sones
 Page.ImageBrowser.CreateAlbum.Button.CreateAlbum=Create Album
 Page.ImageBrowser.Album.Edit.Title=Edit Album
 Page.ImageBrowser.Album.Delete.Title=Delete Album
index d3080f6..66eb33d 100644 (file)
                        <h1 class="backlink"><%= Page.ImageBrowser.Album.Title|l10n|replace needle='{album}' replacementKey=album.title|html></h1>
 
                        <div class="backlinks">
+                               <div class="backlink"><a href="imageBrowser.html?mode=gallery"><%= Page.ImageBrowser.Link.All|l10n|html></a></div>
+                               <div class="separator">&gt;</div>
                                <%foreach album.backlinks backlink backlinks>
                                        <div class="backlink">
                                                <a href="<% backlink.target|html>"><% backlink.name|html></a>
                <h1 class="backlink"><%image.title|html></h1>
 
                <div class="backlinks">
+                       <div class="backlink"><a href="imageBrowser.html?mode=gallery"><%= Page.ImageBrowser.Link.All|l10n|html></a></div>
+                       <div class="separator">&gt;</div>
                        <%foreach image.album.backlinks backlink backlinks>
                                <div class="backlink">
                                        <a href="<% backlink.target|html>"><% backlink.name|html></a>
 
                        <h1><%= Page.ImageBrowser.Sone.Title|l10n|replace needle='{sone}' replacementKey=sone.niceName|html></h1>
 
+                       <div class="backlinks">
+                               <div class="backlink"><a href="imageBrowser.html?mode=gallery"><%= Page.ImageBrowser.Link.All|l10n|html></a></div>
+                               <div class="separator">&gt;</div>
+                               <div class="backlink"><a href="imageBrowser.html?sone=<%sone.id|html>"><%sone.niceName|l10n|html></a></div>
+                       </div>
+
                        <%include include/browseAlbums.html albums=sone.albums>
 
                        <%if sone.local>