<% #main %>
<% story.skin Story#date %>
<% story.skin Story#content %>
<p class="small">
   <% story.link comment#form prefix="... " %>
   <% story.link edit prefix=" ... " %>
   <% story.link online prefix=" ... " %>
</p>
<a name="comments" id="comments"></a>
<p><% story.comments %></p>
<p><% story.backlinks %></p>

<% #edit %>
<form method="post" action="<% response.action %>">
<p>
   <div class="small"><% gettext Title suffix=: %></div>
   <div class="backup"><% story.input title class="formTitle" %></div>
</p>
<p>
   <div class="small"><% gettext Text suffix=: %></div>
   <div class="backup"><% story.textarea text cols="30" rows="15" 
   class="formText" %></div>
</p>
<p><fieldset>
   <legend class="small"><% gettext Options %></legend>
   <p><% gettext Tags suffix=: %> <% story.input tags %></p> 
   <p><% gettext "The story is {0} and {1}" <% story.select status %>
   <% story.select mode %> %></p>
   <p><% gettext "Comments of the story are {0}" <% story.select commentMode %> %></p>
</fieldset></p>
<p class="small">
   <% gettext "Created by {0} on {1}" <% story.creator %> 
   <% story.created short %> %>
   <% if <% story.created %> is <% story.modified %> then "" else 
      <% gettext "Last modified by {0} on {1}" <% story.modifier %>
      <% story.modified short %> prefix="<br />" %>
   %>
</p>
<p>
   <button type="submit" name="save" value="1"><% gettext Save %></button>
   <button type="button" id="restore" value="1"><% gettext Restore %></button>
   <a href="" class="cancel"><% gettext Cancel %></a>
</p>
</form>

<% #date %>
<div class="dayHeader"><% story.created format="EEEE, d. MMMM yyyy" %></div>

<% #content %>
<div class="storyTitle">
   <% story.title %>
</div>
<div class="storyDate">
   <% story.creator link %>
   <% story.created HH:mm suffix="h" %>
</div>
<div><% story.text | story.format %></div>

<% #preview %>
<% story.skin Story#content %>
<p class="small">
   <% story.link . Link prefix="... " %>
   <% story.comments link prefix="(" suffix=")" %>
   <% story.link comment#form prefix=" ... " %>
   <% story.link edit prefix=" ... " %>
</p>
<br />

<% #embed %>
<% story.title prefix='<div class="storyTitle">'suffix="</div>" %>
<% story.text | clip %>
<span class="small">
   <% story.link . <% gettext "Read more" prefix=[ suffix=] %> %>
   <% story.link edit <% gettext Edit %> prefix=" ... " %>
</span><br />

<% #history %>
<div class="historyItem">
   <% story.summary %>
   <div class="small">
      by <% story.creator %> (<% story.modified short %>)
   </div>
</div>

<% #result %>
<br /><% story.summary %>
<div class="small">by <% story.creator %> (<% story.modified short %>)</div>

<% #comment %>
<% story.skin Story#date %>
<% story.skin Story#content %>

<% #rss %>
<% story.text | story.format %>
