* Wrapped display of creation and modification dates in <% if %> macros in Comment#edit skin * Slightly reduced code in global formatDate() method * Modified HopObject.created_macro() to prevent creation dates of transient objects from being displayed or formatted incorrectly * Modified HopObject.modified_macro() accordingly * Added width attribute to CSS definition for fieldset elements * Reduced macro code in Story#edit skin
96 lines
2.8 KiB
Text
96 lines
2.8 KiB
Text
<% #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.referrers %></p>
|
|
|
|
<% #edit %>
|
|
<% story.skin $Story#restore %>
|
|
<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">
|
|
<% if <% story.creator %> is null then "" else
|
|
<% gettext "Created by {0} on {1}" <% story.creator %> <% story.created %> %>
|
|
%>
|
|
<% if <% story.created %> is <% story.modified %> then "" else
|
|
<% gettext "Last modified by {0} on {1}" <% story.modifier %>
|
|
<% story.modified %> 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 />
|
|
|
|
<% #comment %>
|
|
<% story.skin Story#date %>
|
|
<% story.skin Story#content %>
|
|
|
|
<% #rss %>
|
|
<% this.text | this.format %>
|
|
|
|
<% #history %>
|
|
<div class="historyItem">
|
|
<% this.summary %>
|
|
<div class="small">
|
|
by <% this.creator %> (<% this.modified short %>)
|
|
</div>
|
|
</div>
|
|
|
|
<% #result %>
|
|
<br /><% this.summary %>
|
|
<div class="small">by <% this.creator %> (<% this.modified short %>)</div>
|