163 lines
4.4 KiB
HTML
163 lines
4.4 KiB
HTML
<div class="winix"[if winix_function_param_is "ckeditor_browse"] style="padding: 1.5em;"[end]>
|
|
|
|
|
|
[# !! IMPROVE ME: move this html code to a ckeditor template]
|
|
[if winix_function_param_is "ckeditor_browse"]
|
|
<script type="text/javascript">function select(link) \{ window.opener.CKEDITOR.tools.callFunction([ls_ckeditor_funnum_browse], link); window.close(); \} </script>
|
|
|
|
<div class="uk-margin">
|
|
<ul class="uk-breadcrumb">
|
|
[for dir_tab]
|
|
<li>
|
|
<a href="[doc_base_url][dir_tab_link]ls/ckeditor_browse/CKEditor:itemcontent/CKEditorFuncNum:[ls_ckeditor_funnum_browse]">
|
|
[if cmp dir_tab_url ""]
|
|
[# !! IMPROVE ME it would be better to have a flag of some kind to indicate that this is a root dir]
|
|
{ls_root_dir_name}
|
|
[else]
|
|
[dir_tab_url]
|
|
[end]
|
|
</a>
|
|
</li>
|
|
[end]
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="uk-flex uk-margin-medium">
|
|
<div class="uk-width-1-4">
|
|
|
|
[if dir_childs_tab "with_parent"]
|
|
<ul class="uk-list uk-list-disc uk-list-collapse">
|
|
[for dir_childs_tab "with_parent"]
|
|
<li>
|
|
[if dir_childs_is_parent]
|
|
[# make sure the name of the textarea in fun_ckeditor.html is called: itemcontent]
|
|
[# is it needed?]
|
|
<a href="[doc_base_url][dir_parent]ls/ckeditor_browse/CKEditor:itemcontent/CKEditorFuncNum:[ls_ckeditor_funnum_browse]">../</a>
|
|
[else]
|
|
<a href="[doc_base_url][dir][dir_childs_tab_url]/ls/ckeditor_browse/CKEditor:itemcontent/CKEditorFuncNum:[ls_ckeditor_funnum_browse]">[dir_childs_tab_url]/</a>
|
|
[end]
|
|
</li>
|
|
[end]
|
|
</ul>
|
|
[end]
|
|
|
|
</div>
|
|
|
|
<div class="">
|
|
|
|
[if item_tab]
|
|
|
|
<ul class="uk-list uk-list-collapse" data-uk-grid>
|
|
|
|
[for item_tab]
|
|
<li><a href="javascript:select('[item_tab_link]')"><img data-src="[item_tab_link]/-/thumb" alt="[item_tab_subject]" height="120" data-uk-img></a></li>
|
|
[end]
|
|
|
|
</ul>
|
|
[else]
|
|
<h2>{ls_no_picture}</h2>
|
|
[end]
|
|
|
|
</div>
|
|
</div>
|
|
[else]
|
|
|
|
<h1>{ls_header}</h1>
|
|
|
|
[# !! improve me: we need a 'l' flag to a file too, now it's working for dirs only]
|
|
[if not item_is]
|
|
|
|
[if winix_function_param_is "l"]
|
|
|
|
[# loading dir childs table with a parent directory]
|
|
[# now the parameter can be passed directly to if-one]
|
|
[dir_childs_tab "with_parent"]
|
|
|
|
[if one dir_childs_tab item_tab]
|
|
|
|
<table class="uk-table uk-table-divider uk-table-small uk-table-justify uk-table-responsive">
|
|
<tr>
|
|
<th>{ls_type}</th>
|
|
<th>{ls_permissions}</th>
|
|
<th>{ls_owner}</th>
|
|
<th>{ls_group}</th>
|
|
<th>{ls_name}</th>
|
|
</tr>
|
|
|
|
[for dir_childs_tab]
|
|
<tr>
|
|
<td>d</td>
|
|
<td>[dir_childs_tab_privileges]</td>
|
|
<td>[dir_childs_tab_user]</td>
|
|
<td>[dir_childs_tab_group]</td>
|
|
<td>
|
|
[if dir_childs_is_parent]
|
|
<a href="[doc_base_url][dir_parent_without_slash][if winix_function_param_is "dirls"]/ls/l/dirls[end]">../</a>
|
|
[else]
|
|
<a href="[doc_base_url][dir][dir_childs_tab_url][if winix_function_param_is "dirls"]/ls/l/dirls[end]">[dir_childs_tab_url]/</a>
|
|
[end]
|
|
</td>
|
|
</tr>
|
|
[end]
|
|
|
|
[for item_tab]
|
|
<tr>
|
|
<td>[if item_tab_type_is_symlink]l[else][if item_tab_has_static_file]s[else]-[end][end]</td>
|
|
<td>[item_tab_privileges]</td>
|
|
<td>[item_tab_user]</td>
|
|
<td>[item_tab_group]</td>
|
|
<td><a href="[doc_base_url][dir][item_tab_url]">[item_tab_url]</a>[if item_tab_type_is_symlink] -> [item_tab_link_to][end]</td>
|
|
</tr>
|
|
[end]
|
|
</table>
|
|
|
|
[end]
|
|
|
|
[else]
|
|
|
|
[# loading dir childs table with a parent directory]
|
|
[dir_childs_tab "with_parent"]
|
|
|
|
[if dir_childs_tab]
|
|
<ul class="uk-list uk-list-disc uk-list-collapse">
|
|
[for dir_childs_tab]
|
|
<li>
|
|
[if dir_childs_is_parent]
|
|
<a href="[doc_base_url][dir_parent_without_slash][if winix_function_param_is "dirls"]/ls/dirls[end]">../</a>
|
|
[else]
|
|
<a href="[doc_base_url][dir][dir_childs_tab_url][if winix_function_param_is "dirls"]/ls/dirls[end]">[dir_childs_tab_url]/</a>
|
|
[end]
|
|
</li>
|
|
[end]
|
|
</ul>
|
|
[end]
|
|
[# !! IMPROVE ME those two lists (above and below) can be combined together]
|
|
[if item_tab]
|
|
<ul class="uk-list uk-list-disc uk-list-collapse">
|
|
[for item_tab]
|
|
<li><a href="[doc_base_url][dir][item_tab_url]">[item_tab_url]</a></li>
|
|
[end]
|
|
</ul>
|
|
[end]
|
|
|
|
[end]
|
|
|
|
[else]
|
|
|
|
[#!! improve me: may it would be better to not use a list here?]
|
|
<ul class="uk-list uk-list-disc uk-list-collapse">
|
|
<li><a href="[doc_base_url][dir][item_url]">[item_url]</a></li>
|
|
</ul>
|
|
|
|
[end]
|
|
|
|
|
|
|
|
[end]
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|