source: trunk/skins/lemill/document_byline.pt @ 579

Revision 579, 3.1 KB checked in by szabolcs, 13 years ago (diff)

closes #599 spent 10m

Line 
1<div metal:define-macro="byline"
2     i18n:domain="plone"
3     tal:condition="python: site_properties.allowAnonymousViewAbout or not isAnon"
4     tal:define="creators here/getAuthors | nothing;">
5
6    <div class="documentByLine">
7        <img src="" alt=""
8           title="This document is locked."
9           tal:define="locked portal_object/lock_icon.gif;
10                       lockable python:hasattr(here, 'wl_isLocked');"
11           tal:condition="python:lockable and here.wl_isLocked()"
12           tal:replace="structure python:locked.tag(title='Locked')"
13           i18n:attributes="title label_document_locked;"
14           />
15
16        <tal:creatornames tal:condition="python:creators and wf_state=='public'">
17          <tal:block i18n:domain="lemill" i18n:translate="label_by_authors_prefix">by
18          </tal:block>
19           <span tal:repeat="creator creators" tal:omit-tag="">
20           <a href="#"
21             tal:define="author python:here.getMember(creator)"
22             tal:attributes="href string:${portal_url}/community/${creator}"
23             tal:content="author/NiceName"
24             tal:on-error="string:"
25             >PLACEHOLDER</a><tal:separator condition="not:repeat/creator/end">, </tal:separator>
26           </span>
27          <tal:block i18n:domain="lemill" i18n:translate="label_by_authors_suffix"></tal:block>
28          &mdash;
29        </tal:creatornames>
30       
31        <tal:ifdraft condition="python:wf_state=='draft'">
32            <tal:cond condition="not:is_editable">
33                <metal:dialog metal:use-macro="container/join_a_group/macros/join_a_group" />
34            </tal:cond>
35            <tal:cond condition="is_editable" i18n:translate="draft">
36                (draft)
37            </tal:cond>
38        </tal:ifdraft>
39        <tal:ifhidden condition="python:wf_state=='hidden'" i18n:translate="hidden">
40        (hidden)
41        </tal:ifhidden>       
42
43        <tal:block i18n:domain="lemill" i18n:translate="text_last_modified_at">
44        last modified
45        <tal:block i18n:name="timestamp" tal:replace="python:toLocalizedTime(here.ModificationDate(),long_format=1)">
46        August 16, 2001 at 23:35:59</tal:block>
47        </tal:block>
48
49        <span class="state-expired"
50            tal:condition="python:portal.isExpired(here)"
51            i18n:translate="time_expired">
52        &mdash; expired
53        </span>
54
55        <span tal:define="locked portal_object/lock_icon.gif"
56              tal:condition="isLocked">
57            <img src=""
58                 tal:replace="structure python:locked.tag(title='This item is locked')"
59                 alt="Object locked"
60                 i18n:attributes="alt label_object_locked;" />
61        </span>
62
63        <div tal:condition="here/Contributors"
64             i18n:translate="text_contributors">
65            Contributors:
66            <span i18n:name="name"
67                  tal:omit-tag=""
68                  tal:content="python: ', '.join(here.Contributors())">
69              Mary
70            </span>
71        </div>
72
73        <tal:rights condition="here/Rights">
74        <div tal:replace="here/Rights">
75          Copyleft NiceCorp Inc.
76        </div>
77        </tal:rights>
78
79    </div>
80
81</div>
Note: See TracBrowser for help on using the repository browser.