From: David ‘Bombe’ Roden Date: Tue, 11 Jan 2011 05:42:28 +0000 (+0100) Subject: Add text if an album was not found. X-Git-Tag: beta-freefall-0.6.2-1~126 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b58cd0a450858a1eb9986af0f60bbbe1d5ddcdc6;p=Sone.git Add text if an album was not found. --- diff --git a/src/main/resources/i18n/sone.en.properties b/src/main/resources/i18n/sone.en.properties index 8ebfee8..21c9c6b 100644 --- a/src/main/resources/i18n/sone.en.properties +++ b/src/main/resources/i18n/sone.en.properties @@ -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 diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html index 30c61e4..9e03ef2 100644 --- a/src/main/resources/templates/imageBrowser.html +++ b/src/main/resources/templates/imageBrowser.html @@ -2,4 +2,15 @@

<%= Page.ImageBrowser.Page.Title|l10n|html>

+ <%if albumRequested> + + <%ifnull album> + +

<%= Page.ImageBrowser.Album.Error.NotFound.Text|l10n|html>

+ + <%else> + <%/if> + + <%/if> + <%include include/tail.html>