From 444e35b5c0e2f9cfe2ff390d00dd23111b2b59ce Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Mon, 30 Sep 2024 19:59:41 +0200 Subject: [PATCH] download column display is optionable close #427 --- app/class/Model.php | 1 + app/class/User.php | 1 + app/view/templates/home.php | 8 +++++--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/class/Model.php b/app/class/Model.php index 3e7e8a38..88b76380 100644 --- a/app/class/Model.php +++ b/app/class/Model.php @@ -50,6 +50,7 @@ abstract class Model public const METADATAS_NAMES = [ 'favicon' => 'favicon', 'id' => 'id', + 'download' => 'download', 'tag' => 'tag', 'title' => 'title', 'description' => 'description', diff --git a/app/class/User.php b/app/class/User.php index 54ace717..aeb5499f 100644 --- a/app/class/User.php +++ b/app/class/User.php @@ -39,6 +39,7 @@ class User extends Item public const COLUMNS = [ 'favicon', + 'download', 'tag', 'title', 'description', diff --git a/app/view/templates/home.php b/app/view/templates/home.php index 9c221bb2..a7cb2d65 100644 --- a/app/view/templates/home.php +++ b/app/view/templates/home.php @@ -165,8 +165,9 @@ - - + + + tag insert('macro_tablesort', ['opt' => $opt, 'th' => 'tag']) ?> @@ -296,6 +297,7 @@ class="redirection" + caneditpage($item)) { ?> @@ -303,7 +305,7 @@ class="redirection" - + taglinks($item->tag('array')) ?>