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(` - - Rooms + + Conversations - - Conversations + + Rooms diff --git a/templates/components/contacts.html b/templates/components/contacts.html index 6a8b038..45a64dd 100644 --- a/templates/components/contacts.html +++ b/templates/components/contacts.html @@ -13,7 +13,7 @@ {% for contact in recent_contacts %} - {{ contact.first_name }} {{ contact.last_name }} + {{ contact.username }} {{ contact.last_name }} diff --git a/templates/profile/profile.html b/templates/profile/profile.html index 2af6600..82efae9 100644 --- a/templates/profile/profile.html +++ b/templates/profile/profile.html @@ -92,7 +92,7 @@ Save Changes diff --git a/templates/rooms/room.html b/templates/rooms/room.html index 23e4142..13eeaeb 100644 --- a/templates/rooms/room.html +++ b/templates/rooms/room.html @@ -25,7 +25,7 @@ button_text="Back to Rooms", button_url=url_for('rooms.rooms'), icon="fa-door-open", - button_class="btn-outline-secondary", + button_class="btn-secondary", button_icon="fa-arrow-left" ) }} diff --git a/templates/rooms/roombefore.html b/templates/rooms/roombefore.html index e69de29..e34df3c 100644 --- a/templates/rooms/roombefore.html +++ b/templates/rooms/roombefore.html @@ -0,0 +1,1904 @@ +@ -1,10 +1,24 @@ +{% extends "common/base.html" %} +{% from "components/header.html" import header %} + +{% block title %}Room - DocuPulse{% endblock %} + +{% block content %} + +{{ header( + title=room.name, + description=room.description or 'No description', +@ -20,68 +34,94 @@ + + + + + + + + + + + Files + + + {% if current_user.is_admin %} + + Manage Members + + {% endif %} + {% if current_user.is_admin or can_upload %} + + New Folder + + + + + Upload + + + {% endif %} + {% if current_user.is_admin or can_download %} + + Download Selected + + {% endif %} + {% if current_user.is_admin or can_delete %} + + Delete Selected + + {% endif %} + + + + + + 0% + + + + + + + + + + + + + + + × + + + + + + + Drop files here to upload + +@ -93,109 +133,118 @@ + + + + + + + Move to Trash + + + + + + + Move to Trash + + + + + + This item will be moved to trash. You can restore it from the trash page within 30 days. + + + + + + + + + + + + Create New Folder + + + + + + + + + + + + + + + + Rename + + + + + + + + + + + + + + + + + Item Details + + + + + + + + + + + + + + + Overwrite File? + + + + A file with this name already exists. Do you want to overwrite ? + + + + + + + +@ -217,1713 +266,29 @@ + + + + + + + + + +{% endblock %} \ No newline at end of file
A file with this name already exists. Do you want to overwrite ?