Add headers for subsections on an album page.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 21 Sep 2011 18:49:35 +0000 (20:49 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 21 Sep 2011 18:49:35 +0000 (20:49 +0200)
src/main/resources/i18n/sone.en.properties
src/main/resources/templates/imageBrowser.html

index 903eb6a..229f76e 100644 (file)
@@ -187,6 +187,8 @@ Page.ImageBrowser.Album.Title=Album “{album}”
 Page.ImageBrowser.Album.Error.NotFound.Text=The requested album could not be found. It is possible that it has not yet been downloaded, or that it has been deleted.
 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.CreateAlbum.Button.CreateAlbum=Create Album
 Page.ImageBrowser.Album.Edit.Title=Edit Album
 Page.ImageBrowser.Album.Label.Title=Title:
index 9f1aeab..8c7c429 100644 (file)
@@ -70,6 +70,7 @@
                        <p id="description"><% album.description|html></p>
 
                        <%foreach album.albums album>
+                               <%first><h2><%= Page.ImageBrowser.Header.Albums|l10n|html></h2><%/first>
                                <div class="album image">
                                        <a href="imageBrowser.html?album=<% album.id|html>" title="<% album.title|html>">
                                                <%ifnull album.albumImage>
@@ -84,6 +85,7 @@
                        <%/foreach>
 
                        <%foreach album.images image>
+                               <%first><h2><%= Page.ImageBrowser.Header.Images|l10n|html></h2><%/first>
                                <div class="image">
                                        <a href="imageBrowser.html?image=<%image.id|html>"><% image|image-link max-width=200 max-height=150></a>
                                </div>