%inherit file="local:templates.master"/> <%namespace name="POD" file="pod.templates.pod"/> <%def name="HistoryTabContent(poNode)">
% if poNode.is_shared==False: ${_('This document is not shared')} % else: ${_('This document is shared.')} % endif
% if poNode.is_shared==True:
${_('Groups')} | |
---|---|
${loGroupRightsOnNode.display_name} | % if loGroupRightsOnNode.hasReadAccess(): R % endif % if loGroupRightsOnNode.hasWriteAccess(): W % endif |
${_('Individual users')} | |
${loGroupRightsOnNode.display_name} | % if loGroupRightsOnNode.hasReadAccess(): R % endif % if loGroupRightsOnNode.hasWriteAccess(): W % endif |
###### ## ## 2014-05-06 - D.A. We do not share documents on internet yet. ## ##
## % if poNode.is_public==False: ## ${_('This document is not shared on internet')|n} ## % else: ## ${_('This document is shared on internet')|n}. ## ${_('The associated url is:')} ${poNode.public_url_key} ## % endif ##
% if user.user_id==poNode.owner_id or (user_rights and user_rights.hasWriteAccess()): ${_('Edit share options')} % endif %def> <%def name="FileTabContent(poNode)">${_("There is currently no attachment.")}
${POD.OpenModalButton(h.ID.AddFileModalForm(poNode), _(' Attach first file'))}
% else:${POD.OpenModalButton(h.ID.AddFileModalForm(poNode), _(' Attach a file'))}
% endif
${loFile.getTruncatedLabel(50)}
## FIXME SHOW IMAGE THUMBNAIL
${_("There is currently no child documents.")}
% endif${POD.OpenModalButton(h.ID.AddDocumentModalForm(poNode), _('Add a document'))}
% if len(poNode.getChildren())>0:${_("The calendar is empty.")}
${POD.OpenModalButton(h.ID.AddEventModalForm(poNode), _(' Add first event'))}
% else:${POD.OpenModalButton(h.ID.AddEventModalForm(poNode), _(' Add an event'))}
% endif % if len(poNode.getEvents())>0:${_("The address book is empty.")}
${POD.OpenModalButton(h.ID.AddContactModalForm(poNode), _('Add first contact'))}
% else:${POD.OpenModalButton(h.ID.AddContactModalForm(poNode), _('Add a contact'))}
% endif % for contact in poNode.getContacts(): % endfor %def> <%def name="CommentTabContent(current_user, poNode)">${_("The comment thread is empty.")}
${POD.OpenLinkButton(h.ID.AddCommentInlineForm(), _('Add a comment'))}
% endif
${comment._oOwner.display_name}
${_('the')}
${comment.getFormattedDate(comment.updated_at)}
${_('at')}
${comment.getFormattedTime(comment.updated_at)}
% if comment.owner_id==current_user.user_id:
% if comment.is_shared:
${h.ICON.Shared|n}
% else:
${h.ICON.Private|n}
% endif
% endif
${comment.data_content|n}