From 12b8072e2d1f84e5ada9418493d27ceba481206c Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 5 Dec 2010 13:36:57 +0100 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20try=20to=20show=20unknown=20post?= =?utf8?q?s.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/resources/i18n/sone.en.properties | 2 ++ src/main/resources/templates/viewPost.html | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/resources/i18n/sone.en.properties b/src/main/resources/i18n/sone.en.properties index 32ff6c6..d0c44f5 100644 --- a/src/main/resources/i18n/sone.en.properties +++ b/src/main/resources/i18n/sone.en.properties @@ -95,6 +95,8 @@ Page.ViewSone.PostList.Text.NoPostYet=This Sone has not yet posted anything. Page.ViewPost.Title=View Post - Sone Page.ViewPost.Page.Title=View Post by {sone} +Page.ViewPost.Page.TitleUnknownSone=View Unknown Post +Page.ViewPost.Text.UnknownPost=This post has not yet been downloaded. Page.Like.Title=Like Post - Sone Page.Unlike.Title=Unlike Post - Sone diff --git a/src/main/resources/templates/viewPost.html b/src/main/resources/templates/viewPost.html index 3de8ebc..a61f858 100644 --- a/src/main/resources/templates/viewPost.html +++ b/src/main/resources/templates/viewPost.html @@ -3,8 +3,14 @@ -

<%= Page.ViewPost.Page.Title|l10n|insert needle="{sone}" key=post.sone.niceName|html>

+ <%ifnull post.sone> +

<%= Page.ViewPost.Page.TitleUnknownSone|l10n|html>

- <%include include/viewPost.html> +

<%= Page.ViewPost.Text.UnknownPost|l10n|html>

+ <%else> +

<%= Page.ViewPost.Page.Title|l10n|insert needle="{sone}" key=post.sone.niceName|html>

+ + <%include include/viewPost.html> + <%/if> <%include include/tail.html> -- 2.7.4