From 1cacf6a8b54bd9dec685c8d5a0463d46e6123e8b Mon Sep 17 00:00:00 2001 From: mrilyew <99399973+mrilyew@users.noreply.github.com> Date: Fri, 23 May 2025 22:42:55 +0300 Subject: [PATCH] feat(docs): ux changes --- Web/Presenters/DocumentsPresenter.php | 6 ++-- Web/Presenters/templates/Documents/List.xml | 33 ++++++++++----------- Web/static/css/main.css | 2 +- 3 files changed, 19 insertions(+), 22 deletions(-) diff --git a/Web/Presenters/DocumentsPresenter.php b/Web/Presenters/DocumentsPresenter.php index b003b932..78f17bfc 100644 --- a/Web/Presenters/DocumentsPresenter.php +++ b/Web/Presenters/DocumentsPresenter.php @@ -73,10 +73,10 @@ final class DocumentsPresenter extends OpenVKPresenter $this->template->count = $docs->size(); $this->template->docs = iterator_to_array($docs->page($page, OPENVK_DEFAULT_PER_PAGE)); $this->template->locale_string = "you_have_x_documents"; - if ($owner_id < 0) { - $this->template->locale_string = "group_has_x_documents"; - } elseif ($current_tab != 0) { + if ($current_tab != 0) { $this->template->locale_string = "x_documents_in_tab"; + } else if ($owner_id < 0) { + $this->template->locale_string = "group_has_x_documents"; } $this->template->canUpload = $owner_id == $this->user->id || $this->template->group->canBeModifiedBy($this->user->identity); diff --git a/Web/Presenters/templates/Documents/List.xml b/Web/Presenters/templates/Documents/List.xml index ad9a9948..5007de25 100644 --- a/Web/Presenters/templates/Documents/List.xml +++ b/Web/Presenters/templates/Documents/List.xml @@ -20,28 +20,25 @@ {block content} {var $is_gallery = $current_tab == 3 || $current_tab == 4}
- -
-
- -
- - {$tab["name"]} - {$tab["count"]} - +
-
+
{tr($locale_string, $count)}.