Add functions to detect a “view Sone” page and the ID of the shown Sone.
[Sone.git] / src / main / resources / templates / viewSone.html
index fcb2891..b736f8d 100644 (file)
@@ -1,6 +1,15 @@
 <%include include/head.html>
 
-       <%ifnull sone.name>
+       <div class="page-id hidden">view-sone</div>
+       <div class="sone-id hidden"><% sone.id|html></div>
+
+       <%ifnull sone>
+
+               <h1><%= Page.ViewSone.Page.TitleWithoutSone|l10n|html></h1>
+
+               <p><%= Page.ViewSone.NoSone.Description|l10n|insert needle="{sone}" key=sone.id|html></p>
+
+       <%elseifnull sone.name>
 
                <h1><%= Page.ViewSone.Page.TitleWithoutSone|l10n|html></h1>