<%include include/head.html>
- <h1><%= Page.ViewPost.Page.Title|l10n|insert needle="{sone}" key=post.sone.niceName|html></h1>
+ <div class="page-id hidden">view-post</div>
+ <div class="post-id hidden"><% post.id|html></div>
- <%include include/viewPost.html>
+ <%ifnull post.sone>
+ <h1><%= Page.ViewPost.Page.TitleUnknownSone|l10n|html></h1>
+
+ <p><%= Page.ViewPost.Text.UnknownPost|l10n|html></p>
+ <%else>
+ <h1><%= Page.ViewPost.Page.Title|l10n|replace needle="{sone}" replacementKey=post.sone.niceName|html></h1>
+
+ <%include include/viewPost.html>
+ <%/if>
<%include include/tail.html>