From 2a154f8c9a772d61e7dabb5e3fd110ba00cc6007 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 14 Dec 2020 11:02:20 +0000 Subject: merge branch files_ng into dev --- view/tpl/breadcrumb.tpl | 11 ++ view/tpl/categories_widget.tpl | 6 +- view/tpl/cloud_actionspanel.tpl | 15 ++- view/tpl/cloud_directory.tpl | 290 ++++++++++++++++++++++++++++++++-------- view/tpl/field_select.tpl | 2 +- view/tpl/xchan_vcard.tpl | 31 +++-- 6 files changed, 281 insertions(+), 74 deletions(-) create mode 100644 view/tpl/breadcrumb.tpl (limited to 'view/tpl') diff --git a/view/tpl/breadcrumb.tpl b/view/tpl/breadcrumb.tpl new file mode 100644 index 000000000..205b712d9 --- /dev/null +++ b/view/tpl/breadcrumb.tpl @@ -0,0 +1,11 @@ + diff --git a/view/tpl/categories_widget.tpl b/view/tpl/categories_widget.tpl index 1341c652c..fd27dca44 100755 --- a/view/tpl/categories_widget.tpl +++ b/view/tpl/categories_widget.tpl @@ -1,12 +1,12 @@

{{$title}}

{{$desc}}
- + - +
diff --git a/view/tpl/cloud_actionspanel.tpl b/view/tpl/cloud_actionspanel.tpl index 292452cca..65319379f 100644 --- a/view/tpl/cloud_actionspanel.tpl +++ b/view/tpl/cloud_actionspanel.tpl @@ -19,15 +19,16 @@
-
+
{{if $quota.limit || $quota.used}}{{/if}}
- + - {{include file="field_checkbox.tpl" field=$notify}} +
+ You can select files via the upload button or drop them right here or into an existing folder. +
{{if $lockstate}} @@ -41,4 +42,10 @@
+{{if $breadcrumbs_html}} {{$aclselect}} +{{/if}} +{{if $breadcrumbs_html}} +{{$breadcrumbs_html}} +
+{{/if}} diff --git a/view/tpl/cloud_directory.tpl b/view/tpl/cloud_directory.tpl index 90347d274..618de418f 100644 --- a/view/tpl/cloud_directory.tpl +++ b/view/tpl/cloud_directory.tpl @@ -1,84 +1,258 @@ -
-{{if $tiles}} +
+ {{if $tiles}} {{* this is needed to append the upload files in the right order *}}
{{if $parentpath}}
- - -
.. -
+ +
+ .. +
{{/if}} {{foreach $entries as $item}} {{/foreach}}
-{{else}} + {{else}} - - - - + + + + + + - {{if $parentpath}} - - - - - - - + {{if $parentpath}} + + + + - {{/if}} + + + + {{/if}} + {{if $channel_id && $is_owner && $entries.0}} + + + + + + + + + {{/if}} {{* this is needed to append the upload files in the right order *}} - {{foreach $entries as $item}} - - - - {{if $item.is_owner}} - - - - - - {{else}} - {{if $is_admin || $item.is_creator}} - {{/if}} - - - + {{foreach $entries as $item}} + + + + + + + + {{/if}} + + - - + + - - {{/foreach}} + {{/foreach}}
{{$name}}{{*{{$type}}*}}{{* multi tool checkbox *}}{{* icon *}}{{$name}}{{* categories *}}{{* lock icon *}}{{* tools icon *}} {{$size}} {{$lastmod}}
{{*{{$parentpath.icon}}*}}..{{*[{{$parent}}]*}}
..
{{* this is for display consistency *}}
+
+ +
+
+
+ +
+
+ {{if $is_owner}} + + {{else if $is_admin}} + + {{/if}} +
+
+ + + +
+ {{include file="field_select.tpl" field=$newfolder}} + {{include file="field_checkbox.tpl" field=$copy}} +
+
+ {{include file="field_input.tpl" field=$categories}} +
+
+ {{if $is_owner}} + {{include file="field_checkbox.tpl" field=$recurse}} + {{/if}} +
+ +
+ {{if $is_owner}} + + {{/if}} + +
+
+
+
+
{{$item.displayName}}{{$item.attachIcon}}
{{else}}{{/if}}{{*{{$item.type}}*}}{{$item.sizeFormatted}}{{$item.lastmodified}}
+ {{if $channel_id && $is_owner}} +
+ +
+ {{/if}} +
{{$item.name}}{{$item.terms}}{{if $item.lockstate == 'lock'}}{{/if}} + {{if ($item.is_owner || $item.is_creator) && $item.attach_id}} + + {{else}} + {{if ($is_admin || !$item.collection) && $item.attach_id}} + + {{/if}} + {{$item.size_formatted}}{{$item.last_modified}}
+
+ + + +
+ {{include file="field_input.tpl" field=$item.newfilename}} +
+
+ {{include file="field_select.tpl" field=$item.newfolder}} + {{include file="field_checkbox.tpl" field=$item.copy}} +
+
+ {{include file="field_input.tpl" field=$item.categories}} +
+
+ {{if $item.is_owner}} + {{if !$item.collection}}{{include file="field_checkbox.tpl" field=$item.notify}}{{/if}} + {{if $item.collection}}{{include file="field_checkbox.tpl" field=$item.recurse}}{{/if}} + {{/if}} +
+ +
+ {{if $item.is_owner}} + + {{/if}} + +
+
+
+ +
+
{{/if}}
diff --git a/view/tpl/field_select.tpl b/view/tpl/field_select.tpl index 8c3776841..7cc624fab 100755 --- a/view/tpl/field_select.tpl +++ b/view/tpl/field_select.tpl @@ -1,4 +1,4 @@ -
+
-
- -
- - - - -
-
- {{if $lockstate}} - - {{/if}} - +
+
+ + + + + + +
+
+ {{if $lockstate}} + + {{/if}} + +
-
- -
+ +
+
+
-
- {{if $quota.limit || $quota.used}}{{/if}} -
- - - - {{include file="field_checkbox.tpl" field=$notify}} -
- You can select files via the upload button or drop them right here or into an existing folder. -
-
-
- {{if $lockstate}} - - {{/if}} - +
+
+ {{if $quota.limit || $quota.used}}{{/if}} + + + + + {{include file="field_checkbox.tpl" field=$notify}} +
+ You can select files via the upload button or drop them right here or into an existing folder.
-
- -
+
+
+ {{if $lockstate}} + + {{/if}} + +
+
+ +
+
+
{{if $breadcrumbs_html}} {{$aclselect}} -- cgit v1.2.3 From 8188a551f3bf9cb817338241985fe0bd45cafd43 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 15 Dec 2020 12:12:38 +0000 Subject: fix regression in files aclselect --- view/tpl/cloud_actionspanel.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/tpl') diff --git a/view/tpl/cloud_actionspanel.tpl b/view/tpl/cloud_actionspanel.tpl index e9f7bbc38..039d19fac 100644 --- a/view/tpl/cloud_actionspanel.tpl +++ b/view/tpl/cloud_actionspanel.tpl @@ -48,7 +48,7 @@

-{{if $breadcrumbs_html}} +{{if $aclselect}} {{$aclselect}} {{/if}} {{if $breadcrumbs_html}} -- cgit v1.2.3 From 27df896a9cb1f713c49e290f2a4e7d9860aff1d5 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 16 Dec 2020 08:26:19 +0000 Subject: files_ng: implement lockview --- view/tpl/cloud_directory.tpl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'view/tpl') diff --git a/view/tpl/cloud_directory.tpl b/view/tpl/cloud_directory.tpl index 618de418f..6f70c6bfe 100644 --- a/view/tpl/cloud_directory.tpl +++ b/view/tpl/cloud_directory.tpl @@ -152,7 +152,12 @@ {{$item.name}} {{$item.terms}} - {{if $item.lockstate == 'lock'}}{{/if}} + + {{if $item.lockstate == 'lock'}} + + + {{/if}} + {{if ($item.is_owner || $item.is_creator) && $item.attach_id}} - -- cgit v1.2.3 From b2e80efe3f42c6329be7356580d62ea3525717b8 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 17 Dec 2020 10:04:24 +0000 Subject: files_ng: provide bbcode snippets in the info panel --- view/tpl/cloud_directory.tpl | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/cloud_directory.tpl b/view/tpl/cloud_directory.tpl index 8fe31767c..a6993fe97 100644 --- a/view/tpl/cloud_directory.tpl +++ b/view/tpl/cloud_directory.tpl @@ -214,13 +214,19 @@
{{if ! $item.collection}}
- - + +
+ {{if $item.embed_bbcode}} +
+ + +
+ {{/if}} {{/if}}
- - + +
@@ -172,23 +173,27 @@ Rename Move or copy Categories - {{if !$item.collection}} {{if $item.is_owner}} {{/if}} + {{if $item.collection}} + Download + {{else}} Download {{/if}} {{$delete}}
{{else}} - {{if ($is_admin || !$item.collection) && $item.attach_id}} + {{if $is_admin || $item.attach_id}} {{/foreach}} @@ -160,25 +160,25 @@ {{/if}} - {{if ($item.is_owner || $item.is_creator) && $item.attach_id}} + {{if ($is_owner || $item.is_creator) && $item.attach_id}}