Change code to use new way to specify filter parameters.
[Sone.git] / src / main / resources / templates / viewPost.html
index 3de8ebc..5269800 100644 (file)
@@ -3,8 +3,14 @@
        <div class="page-id hidden">view-post</div>
        <div class="post-id hidden"><% post.id|html></div>
 
-       <h1><%= Page.ViewPost.Page.Title|l10n|insert needle="{sone}" key=post.sone.niceName|html></h1>
+       <%ifnull post.sone>
+               <h1><%= Page.ViewPost.Page.TitleUnknownSone|l10n|html></h1>
 
-       <%include include/viewPost.html>
+               <p><%= Page.ViewPost.Text.UnknownPost|l10n|html></p>
+       <%else>
+               <h1><%= Page.ViewPost.Page.Title|l10n|replace needle=="{sone}" replacement=post.sone.niceName|html></h1>
+
+               <%include include/viewPost.html>
+       <%/if>
 
 <%include include/tail.html>