## This file is subject to the terms and conditions defined in ## file 'LICENSE', which is part of this source code package. ## Copyright (c) 2009 SKR Farms (P) LTD. <%inherit file="/base/basic1.html"/> <%namespace name="elements" file="/component/elements.html"/> <%namespace name="forms" file="/component/forms.html"/> <%! page_tooltips = [ [ 'Help', """List of attachments (files) stored in this site. If you have the permission you can edit summary and tag fields""" ], [ 'Charts', """Charts are plotted for """ ], [ 'Timeline', """Log of updates done to all attachments.""" ], ] %> <%def name="hd_script()"> ${parent.hd_script()} <%def name="bd_body()"> <% pagebartext = "Attachments" tline = capture( elements.iconlink, h.url_attachtline, 'timeline', title="Attachment Timeline" ) charts = capture( elements.iconlink, h.url_attachcharts, 'barchart', title="Analytics on file attachments" ) addattachs = '
' +\ 'Add
' % h.url_addattachment %> ${elements.pagebar( pagebartext, [ addattachs, ], rspans=[ charts, tline ], tooltips=page_tooltips )}
% if c.userpanes :
% else :
% endif
% for id, url in h.url_attachpages : ${id} % endfor
${elements.attachments( c.authuser, c.attachments, c.editable, c.attachassc, c.aa, c.ua, c.la, c.pa, c.ta, c.ra, c.wa, )} % if c.editable : ${forms.form_attachssummary( c.authuser, h.suburl_attachssummary )} ${forms.form_attachstags( c.authuser, h.suburl_attachstags )} % endif
% for id, url in h.url_attachpages : ${id} % endfor
% if c.userpanes :
${elements.user_panes( c.userpanes )}
% endif
<%def name="bd_script()"> ${parent.bd_script()}