restore starring

This commit is contained in:
2025-05-28 14:24:53 +02:00
parent 6272f71355
commit 1134f5b099
6 changed files with 1920 additions and 7 deletions

View File

@@ -300,6 +300,15 @@ export class ViewManager {
`);
}
// Add star button
actions.push(`
<button class="btn btn-sm file-action-btn" title="${file.starred ? 'Unstar' : 'Star'}"
onclick="window.roomManager.fileManager.toggleStar('${file.name}', '${file.path || ''}')"
style="background-color:${file.starred ? 'var(--warning-opacity-15)' : 'var(--primary-opacity-8)'};color:${file.starred ? 'var(--warning-color)' : 'var(--primary-color)'};">
<i class="fas fa-star"></i>
</button>
`);
if (this.roomManager.canDelete) {
actions.push(`
<button class="btn btn-sm file-action-btn" title="Delete" onclick="window.roomManager.modalManager.showDeleteModal('${file.name}', '${file.path || ''}')"

View File

@@ -83,13 +83,13 @@
</a>
</li>
<li class="nav-item">
<a class="nav-link {% if request.endpoint == 'rooms.rooms' %}active{% endif %}" href="{{ url_for('rooms.rooms') }}">
<i class="fas fa-door-open"></i> Rooms
<a class="nav-link {% if request.endpoint == 'conversations.conversations' %}active{% endif %}" href="{{ url_for('conversations.conversations') }}">
<i class="fas fa-comments"></i> Conversations
</a>
</li>
<li class="nav-item">
<a class="nav-link {% if request.endpoint == 'conversations.conversations' %}active{% endif %}" href="{{ url_for('conversations.conversations') }}">
<i class="fas fa-comments"></i> Conversations
<a class="nav-link {% if request.endpoint == 'rooms.rooms' %}active{% endif %}" href="{{ url_for('rooms.rooms') }}">
<i class="fas fa-door-open"></i> Rooms
</a>
</li>
<li class="nav-item">

View File

@@ -13,7 +13,7 @@
<ul class="list-unstyled mb-3">
{% for contact in recent_contacts %}
<li class="mb-2">
<div class="fw-semibold">{{ contact.first_name }} {{ contact.last_name }}</div>
<div class="fw-semibold">{{ contact.username }} {{ contact.last_name }}</div>
<div class="flex flex-wrap gap-2 mt-1">
<a href="mailto:{{ contact.email }}"
class="contact-link inline-flex items-center px-2 py-0.5 rounded text-sm font-normal">

View File

@@ -92,7 +92,7 @@
<div class="flex justify-end">
<button type="submit"
class="text-white px-6 py-2 rounded-lg transition duration-200"
style="background-color: #16767b; border: 1px solid #16767b;"
style="background-color: var(--primary-color); border: 1px solid var(--primary-color);"
onmouseover="this.style.backgroundColor='#1a8a90'"
onmouseout="this.style.backgroundColor='#16767b'">
Save Changes

View File

@@ -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"
) }}

File diff suppressed because it is too large Load Diff