[% IF file %] [% INSERT $file IF file %] [% ELSE %]

[% IF path %]

## [% path %]

[%|l%]edit[%END%] | [%|l%]delete[%END%] | [%|l%]access[%END%]

[%|l(doc_owner)%]Owner : %1[%END%]
[%|l(doc_date)%]Last update : %1[%END%]
[% IF doc_title %] [%|l(doc_title)%]Description : %1[%END%]
[% END %] [%|l%]Up to higher level directory[%END%]
[% ELSE %]

## [%|l%]Listing of folder SHARED[%END%]

[% END %]

[% IF order_by != 'order_by_doc' %]
[% END %]
[%|l%]Document[%END%] |

[% IF order_by != 'order_by_author' %]
[% END %]
[%|l%]Author[%END%] |

[% IF order_by != 'order_by_size' %]
[% END %]
[%|l%]Size (Kb)[%END%] |

[% IF order_by != 'order_by_date' %]
[% END %]
[%|l%]Last update[%END%] |

[%|l%]Edit[%END%]

[%|l%]Delete[%END%]

[%|l%]Access[%END%]

[% IF empty %]
[%|l%]Empty folder[%END%]
[% ELSE %] [% IF sort_subdirs %] [% FOREACH s = sort_subdirs %] [% SET tmp = s.key s = s.value s.NAME = tmp IF s.key.defined %]

[% IF s.edit %]

[% ELSE %]
[% END %]

[% IF s.control %]
[% ELSE %]
[% END %]
[% s.doc %] | [% IF s.author_known %] [% s.author_mailto %] [% ELSE %] [%|l%]Unknown[%END%] [% END %] |  | [% s.date %] | [%|l%]edit[%END%] | [%|l%]delete[%END%] |  |  | [%|l%]access[%END%] |
[% END %] [% END %]

[% IF sort_files %] [% FOREACH f = sort_files %] [% SET tmp = f.key f = f.value f.NAME = tmp IF f.key.defined %]

[% IF f.edit %]
[% ELSE %]
[% END %]

[% IF f.control %]
[% ELSE %]
[% END %]
[% IF f.html %] [% f.doc %] [% ELSIF f.url %] [% f.anchor %] [% ELSE %] [% f.doc %] [% END %] | [% IF f.author_known %] [% f.author %] [% ELSE %] [%|l%]Unknown[%END%] [% END %] | [% IF !f.url %] [% f.size %] [% END %] | [% f.date %] | [%|l%]edit[%END%] | [%|l%]delete[%END%] |  |  | [%|l%]access[%END%] |
[% END %] [% END %] [% END %]

[% IF may_edit %]
[% IF path %] [%|l(path)%]Create a new folder inside the folder %1[%END%] [% ELSE %] [%|l%]Create a new folder inside the folder SHARED[%END%] [% END %] |
[%|l%]Create a new file[%END%] |
[%|l%]Add a bookmark[%END%] [%|l%]title[%END%] [%|l%]URL[%END%] |
[% IF path %] [%|l(path)%]Upload a file inside the folder %1[%END%] [% ELSE %] [%|l%]Upload a file inside the folder SHARED[%END%] [% END %] |  |
[% END %]

[% END %]