From b58cd0a450858a1eb9986af0f60bbbe1d5ddcdc6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 11 Jan 2011 06:42:28 +0100 Subject: [PATCH] Add text if an album was not found. --- src/main/resources/i18n/sone.en.properties | 1 + src/main/resources/templates/imageBrowser.html | 11 +++++++++++ 2 files changed, 12 insertions(+) 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> -- 2.7.4