diff --git a/app/templates/mod/user-list.html b/app/templates/mod/user-list.html
index 79ae6ec..3cd660b 100644
--- a/app/templates/mod/user-list.html
+++ b/app/templates/mod/user-list.html
@@ -8,7 +8,7 @@
{% if section == "header" %}
Unconfirmed guests
{% elif section == "content" %}
-
+
Username |
Signed up on |
@@ -32,7 +32,7 @@
{% if section == "header" %}
Other users
{% elif section == "content" %}
-
+
Username |
Permission |
diff --git a/app/templates/users/inbox.html b/app/templates/users/inbox.html
index 3970eaa..4c93b01 100644
--- a/app/templates/users/inbox.html
+++ b/app/templates/users/inbox.html
@@ -1,51 +1,65 @@
-{% from "common/macros.html" import timestamp, full_post %}
+{% from "common/macros.html" import timestamp, full_post, accordion %}
{% extends "base.html" %}
{% block title %}inbox{% endblock %}
{% block content %}
-
- {% if all_subscriptions is none %}
- You have no subscriptions.
- {% else %}
- Your subscriptions:
-
- {% for sub in all_subscriptions %}
- -
- {{ sub.thread_title }}
-
-
+
+ {% set has_subscriptions = all_subscriptions is not none %}
+ {% call(section) accordion(disabled=not has_subscriptions) %}
+ {% if section == "header" %}
+ {% if not has_subscriptions %}
+ (You have no subscriptions)
+ {% else %}
+ Your subscriptions
+ {% endif %}
+ {% elif section == "content" and has_subscriptions %}
+
+
+ Thread |
+ Unsubscribe |
+
+ {% for sub in all_subscriptions %}
+
+
+ {{ sub.thread_title }}
+ |
+
+
+ |
+
+ {% endfor %}
+
+ {% endif %}
+ {% endcall %}
+ {% if has_subscriptions %}
+ {% if not new_posts %}
+ You have no unread posts.
+ {% else %}
+ You have {{ total_unreads_count }} total unread {{("post" | pluralize(num=total_unreads_count))}}:
+ {% for thread in new_posts %}
+ {% call(section) accordion() %}
+ {% if section == "header" %}
+ {% set latest_post_id = thread.posts[-1].id %}
+ {% set unread_posts_text = " (" + (thread.unread_count | string) + (" unread post" | pluralize(num=thread.unread_count)) %}
+
{{thread.thread_title + unread_posts_text}}, latest at {{ timestamp(thread.newest_post_time) }})
+
+
+ {% elif section == "content" %}
+ {% for post in thread.posts %}
+ {{ full_post(post, no_reply = true) }}
+ {% endfor %}
+ {% endif %}
+ {% endcall %}
{% endfor %}
-
- {% endif %}
- {% if not new_posts %}
- You have no unread posts.
- {% else %}
- You have {{ total_unreads_count }} unread post{{(total_unreads_count | int) | pluralize }}:
- {% for thread in new_posts %}
-
-
-
- {% for post in thread.posts %}
- {{ full_post(post, no_reply = true) }}
- {% endfor %}
-
-
- {% endfor %}
+ {% endif %}
{% endif %}
{% endblock %}
diff --git a/data/static/js/ui.js b/data/static/js/ui.js
index 9c640bc..38f52cb 100644
--- a/data/static/js/ui.js
+++ b/data/static/js/ui.js
@@ -120,7 +120,7 @@ document.addEventListener("DOMContentLoaded", () => {
e.stopPropagation();
accordion.classList.toggle("hidden");
content.classList.toggle("hidden");
- toggleButton.textContent = content.classList.contains("hidden") ? "►" : "▼"
+ toggleButton.textContent = content.classList.contains("hidden") ? "+" : "-"
}
toggleButton.addEventListener("click", toggle);
diff --git a/data/static/style.css b/data/static/style.css
index 0afecda..bc0c2fa 100644
--- a/data/static/style.css
+++ b/data/static/style.css
@@ -570,25 +570,25 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus
border-collapse: collapse;
}
-.users-table {
+.colorful-table {
border-collapse: collapse;
width: 100%;
margin: 10px 0;
overflow: hidden;
}
-.users-table tr th {
+.colorful-table tr th {
background-color: #beb1ce;
padding: 5px 0;
}
-.users-table tr td {
+.colorful-table tr td {
background-color: rgb(177, 206, 204.5);
padding: 5px 0;
text-align: center;
}
-.users-table .small {
+.colorful-table .small {
width: 250px;
}
diff --git a/sass/style.scss b/sass/style.scss
index a24b672..e5aa2fc 100644
--- a/sass/style.scss
+++ b/sass/style.scss
@@ -567,25 +567,25 @@ input[type="text"], input[type="password"], textarea, select {
border-collapse: collapse;
}
-.users-table {
+.colorful-table {
border-collapse: collapse;
width: 100%;
margin: 10px 0;
overflow: hidden;
}
-.users-table tr th {
+.colorful-table tr th {
background-color: $button_color2;
padding: 5px 0;
}
-.users-table tr td {
+.colorful-table tr td {
background-color: $button_color;
padding: 5px 0;
text-align: center;
}
-.users-table .small {
+.colorful-table .small {
width: 250px;
}