From 1134f5b0993f024a8810a537a04add171feb26ee Mon Sep 17 00:00:00 2001 From: Kobe Date: Wed, 28 May 2025 14:24:53 +0200 Subject: [PATCH] restore starring --- static/js/rooms/viewManager.js | 9 + templates/common/base.html | 8 +- templates/components/contacts.html | 2 +- templates/profile/profile.html | 2 +- templates/rooms/room.html | 2 +- templates/rooms/roombefore.html | 1904 ++++++++++++++++++++++++++++ 6 files changed, 1920 insertions(+), 7 deletions(-) diff --git a/static/js/rooms/viewManager.js b/static/js/rooms/viewManager.js index 98beef7..b0d8387 100644 --- a/static/js/rooms/viewManager.js +++ b/static/js/rooms/viewManager.js @@ -300,6 +300,15 @@ export class ViewManager { `); } + // Add star button + actions.push(` + + `); + if (this.roomManager.canDelete) { actions.push(` + + +
Files
+ +
+ {% if current_user.is_admin %} + + Manage Members + + {% endif %} + {% if current_user.is_admin or can_upload %} + +
+ + +
+ {% endif %} + {% if current_user.is_admin or can_download %} + + {% endif %} + {% if current_user.is_admin or can_delete %} + + {% endif %} +
+ +
+ +
+ + +
+ + +
+
+
+ + + + + + + + + + + + + + +@ -217,1713 +266,29 @@ +
+ +
+ + + + + + +{% endblock %} \ No newline at end of file