Add text if an album was not found.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 11 Jan 2011 05:42:28 +0000 (06:42 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 11 Jan 2011 05:42:28 +0000 (06:42 +0100)
src/main/resources/i18n/sone.en.properties
src/main/resources/templates/imageBrowser.html

index 8ebfee8..21c9c6b 100644 (file)
@@ -123,6 +123,7 @@ Page.UnfollowSone.Title=Unfollow Sone - Sone
 
 Page.ImageBrowser.Title=Image Browser - Sone
 Page.ImageBrowser.Page.Title=Image Browser
+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.NoPermission.Title=Unauthorized Access - Sone
 Page.NoPermission.Page.Title=Unauthorized Access
index 30c61e4..9e03ef2 100644 (file)
@@ -2,4 +2,15 @@
 
        <h1><%= Page.ImageBrowser.Page.Title|l10n|html></h1>
 
+       <%if albumRequested>
+
+               <%ifnull album>
+
+                       <p><%= Page.ImageBrowser.Album.Error.NotFound.Text|l10n|html></p>
+
+               <%else>
+               <%/if>
+
+       <%/if>
+
 <%include include/tail.html>