Change code to use new way to specify filter parameters.
[Sone.git] / src / main / resources / templates / viewPost.html
index 0209b20..5269800 100644 (file)
@@ -1,7 +1,16 @@
-<div id="sone">
+<%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>
 
-</div>
+               <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>