From 2a71bcf16b42e1f43f9013362a78630632400028 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 12 Apr 2023 14:43:47 +0800 Subject: [PATCH] * Code for task #90782. --- module/block/control.php | 6 +- .../block/view/docmycollectionblock.html.php | 68 ++++++++++--------- .../block/view/docrecentupdateblock.html.php | 4 +- 3 files changed, 44 insertions(+), 34 deletions(-) diff --git a/module/block/control.php b/module/block/control.php index 4f09490524..14b86d1614 100755 --- a/module/block/control.php +++ b/module/block/control.php @@ -2074,13 +2074,17 @@ class block extends control $pager = new pager(0, 6, 1); $docList = $this->loadModel('doc')->getDocsByBrowseType('collectedbyme', 0, 0, 'editedDate_desc', $pager); + $libList = array(); foreach($docList as $doc) { $doc->editedDate = substr($doc->editedDate, 0, 10); $doc->editInterval = helper::getDateInterval($doc->editedDate); + + $libList[] = $doc->lib; } - $this->view->docList = $docList; + $this->view->pricDocs = $this->doc->getPrivDocs($libList); + $this->view->docList = $docList; } /** diff --git a/module/block/view/docmycollectionblock.html.php b/module/block/view/docmycollectionblock.html.php index d4d9f0971b..c065d45e29 100644 --- a/module/block/view/docmycollectionblock.html.php +++ b/module/block/view/docmycollectionblock.html.php @@ -11,28 +11,26 @@ */ ?>
-
- - + diff --git a/module/block/view/docrecentupdateblock.html.php b/module/block/view/docrecentupdateblock.html.php index 32c60a9d4c..c75c37e8b1 100644 --- a/module/block/view/docrecentupdateblock.html.php +++ b/module/block/view/docrecentupdateblock.html.php @@ -22,6 +22,8 @@ .block-docrecentupdate .doc-list > .doc-box > .btn > h4 {padding-right: 5px;} .block-docrecentupdate .doc-list > .doc-item .file-icon {margin-right: 2px;} .block-docrecentupdate .doc-list > .doc-box .plug-title {height: 16px; overflow: hidden;} + +.block-docrecentupdate.block-sm .doc-list > .doc-box {flex: 0 1 100%;}
@@ -48,7 +50,7 @@ echo $editTip; ?> -

+

type == 'text' ? 'wiki-file' : $doc->type; echo html::image("static/svg/{$docType}.svg", "class='file-icon'");