clarification
[Plinn.git] / skins / generic / revision_context_header.pt
1 <meta http-equiv="content-type" content="text/html;charset=utf-8" tal:omit-tag="" />
2 <div xmlns:tal="http://xml.zope.org/namespaces/tal"
3 xmlns:metal="http://xml.zope.org/namespaces/metal"
4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5 i18n:domain="plinn">
6 <div class="revision_context">
7 <div i18n:translate="">
8 This is an old revision of this content, as edited by
9 <span i18n:name="user" tal:omit-tag="" tal:content="options/ctUser">Bob l'éponge</span> at
10 <span i18n:name="datetime" tal:omit-tag="" tal:content="options/ctTime">14:07, 8 january 2009</span>.
11 </div>
12 <form tal:attributes="action string:${options/currentOb/absolute_url}/restore_revision"
13 tal:condition="options/restorationAllowed"
14 method="post">
15 <input type="hidden" name="key" tal:attributes="value options/revCtx/current/key"/>
16 <input type="submit" name="restore" value="Restore this revision" i18n:attributes="value"/>
17 </form>
18 <div tal:define="baseUrl options/currentOb/absolute_url;
19 previous options/revCtx/previous|nothing;
20 next options/revCtx/next|nothing">
21 <span tal:condition="previous" tal:omit-tag="">
22 <a tal:attributes="href python:'%s/load_revision/%s?pos:int=%d' % (baseUrl,
23 previous['key'],
24 options['pos'] + 1)"
25 i18n:translate="">← previous revision</a> |
26 </span>
27 <a tal:attributes="href python:options['currentOb'].absolute_url()" i18n:translate="">current revision</a>
28 <span tal:condition="next"> |
29 <a tal:attributes="href python:'%s/load_revision/%s?pos:int=%d' % (baseUrl,
30 next['key'],
31 options['pos'] - 1)"
32 i18n:translate="">next revision →</a>
33 </span>
34 </div>
35 </div>
36 </div>