Filename | Type | Size | Date | Actions
--- | --- | --- | --- | ---
[% can_edit = c.check_permissions(page.path, c.user).edit; can_attachment = c.check_permissions(page.path, c.user).attachment;

%] [% FOR attachment IN page.attachments +%]

[% attachment.name %] [% IF attachment.is_image %]
[% END %]

[% loc(attachment.human_type) %]

[%IF attachment.size %][% attachment.human_size %] [% ELSE %] Unknown[%END%]

[% attachment.uploaded.strftime('%Y-%m-%d') %]

[% IF attachment.is_image +%]
- [% loc('view full size') %]
[% ELSIF attachment.is_text +%]
- [% loc('view in your browser') %]
[% END %] [% IF can_edit +%]
- [%loc('insert link')%]
[% IF attachment.is_image +%]
- [% loc('insert thumbnail') %]
[% END %] [% END %] [% IF can_attachment +%]
- [% loc('delete') %]
[% END +%]

[% END +%]

[% loc('View as gallery') %]