restore starring
This commit is contained in:
@@ -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) {
|
if (this.roomManager.canDelete) {
|
||||||
actions.push(`
|
actions.push(`
|
||||||
<button class="btn btn-sm file-action-btn" title="Delete" onclick="window.roomManager.modalManager.showDeleteModal('${file.name}', '${file.path || ''}')"
|
<button class="btn btn-sm file-action-btn" title="Delete" onclick="window.roomManager.modalManager.showDeleteModal('${file.name}', '${file.path || ''}')"
|
||||||
|
|||||||
@@ -83,13 +83,13 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link {% if request.endpoint == 'rooms.rooms' %}active{% endif %}" href="{{ url_for('rooms.rooms') }}">
|
<a class="nav-link {% if request.endpoint == 'conversations.conversations' %}active{% endif %}" href="{{ url_for('conversations.conversations') }}">
|
||||||
<i class="fas fa-door-open"></i> Rooms
|
<i class="fas fa-comments"></i> Conversations
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link {% if request.endpoint == 'conversations.conversations' %}active{% endif %}" href="{{ url_for('conversations.conversations') }}">
|
<a class="nav-link {% if request.endpoint == 'rooms.rooms' %}active{% endif %}" href="{{ url_for('rooms.rooms') }}">
|
||||||
<i class="fas fa-comments"></i> Conversations
|
<i class="fas fa-door-open"></i> Rooms
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<ul class="list-unstyled mb-3">
|
<ul class="list-unstyled mb-3">
|
||||||
{% for contact in recent_contacts %}
|
{% for contact in recent_contacts %}
|
||||||
<li class="mb-2">
|
<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">
|
<div class="flex flex-wrap gap-2 mt-1">
|
||||||
<a href="mailto:{{ contact.email }}"
|
<a href="mailto:{{ contact.email }}"
|
||||||
class="contact-link inline-flex items-center px-2 py-0.5 rounded text-sm font-normal">
|
class="contact-link inline-flex items-center px-2 py-0.5 rounded text-sm font-normal">
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
<div class="flex justify-end">
|
<div class="flex justify-end">
|
||||||
<button type="submit"
|
<button type="submit"
|
||||||
class="text-white px-6 py-2 rounded-lg transition duration-200"
|
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'"
|
onmouseover="this.style.backgroundColor='#1a8a90'"
|
||||||
onmouseout="this.style.backgroundColor='#16767b'">
|
onmouseout="this.style.backgroundColor='#16767b'">
|
||||||
Save Changes
|
Save Changes
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
button_text="Back to Rooms",
|
button_text="Back to Rooms",
|
||||||
button_url=url_for('rooms.rooms'),
|
button_url=url_for('rooms.rooms'),
|
||||||
icon="fa-door-open",
|
icon="fa-door-open",
|
||||||
button_class="btn-outline-secondary",
|
button_class="btn-secondary",
|
||||||
button_icon="fa-arrow-left"
|
button_icon="fa-arrow-left"
|
||||||
) }}
|
) }}
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user