antville/code/Story/Story.skin
Tobi Schäfer 12309653a5 * Decentralized markgettext() calls by moving them from i18n.js to the places where the messages actually are defined
* Added markgettext_macro()
 * Readjusted Admin.dropdown_macro() and the global defineConstants() methods to work with the modified markgettext() calls
 * Updated Members.properties and added SQL patch for lowercasing all membership status due to the modified margettext() calls
 * Added Membership.role_macro() as convenience method
 * Removed syntactic sugar from HopObject.link_macro() and moved it to the compatibility layer to prevent current layouts from breaking
 * Removed obsolete permission for non-existing Image.replace_action()
2010-04-25 17:31:44 +00:00

99 lines
3 KiB
Text

<% #main %>
<% story.skin Story#date %>
<% story.skin Story#content %>
<p class="small">
<% story.link comment#form <% gettext Comment context=verb %> prefix="... " %>
<% story.link edit <% gettext Edit %> prefix=" ... " %>
</p>
<a name="comments" id="comments"></a>
<p><% story.comments %></p>
<p><% story.referrers %></p>
<% #edit %>
<p class="storyTitle"><% response.title %></p>
<% 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>
<div class="small"><% gettext "Tags (separated by commas):" %></div>
<div class="backup"><% story.input tags class=formText %></div>
</p>
<p><fieldset>
<legend class="small"><% gettext Options %></legend>
<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 "EEEE, d. MMMM yyyy" %></div>
<% #content %>
<div class="storyTitle">
<% story.title %>
</div>
<div class="storyDate">
<% story.creator link suffix=, %>
<% story.created HH:mm suffix="h" %>
</div>
<div><% story.text | story.format %></div>
<% #preview %>
<% story.skin Story#content %>
<p class="small">
<% story.link main <% gettext Link %> prefix="... " %>
<% story.comments link prefix="(" suffix=")" %>
<% story.link comment#form <% gettext Comment context=verb %> prefix=" ... " %>
<% story.link edit <% gettext Edit %> prefix=" ... " %>
</p>
<br />
<% #embed %>
<% story.title prefix='<div class="storyTitle">'suffix="</div>" %>
<% story.text | clip %>
<span class="small">
<% story.link main <% 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">
<% this.creator %>, <% this.modified short %>
</div>
</div>
<% #result %>
<br /><% this.summary %>
<div class="small">by <% this.creator %> (<% this.modified short %>)</div>