diff --git a/config/settings.py b/config/settings.py index 6229eb87..c830041b 100755 --- a/config/settings.py +++ b/config/settings.py @@ -356,3 +356,16 @@ if not LOCAL_DEVELOPMENT: # Markdown content BASE_CONTENT = env("BOOST_CONTENT_DIRECTORY", "/website") + +# Machina settings +MACHINA_DEFAULT_AUTHENTICATED_USER_FORUM_PERMISSIONS = [ + "can_see_forum", + "can_read_forum", + "can_start_new_topics", + "can_reply_to_topics", + "can_edit_own_posts", + "can_post_without_approval", + "can_create_polls", + "can_vote_in_polls", + "can_download_file", +] diff --git a/static/css/styles.css b/static/css/styles.css index 747a60e5..0482e100 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -887,14 +887,18 @@ input[type=file] { left: 0px; } +.inset-y-0 { + top: 0px; + bottom: 0px; +} + .inset-x-0 { left: 0px; right: 0px; } -.inset-y-0 { - top: 0px; - bottom: 0px; +.right-3 { + right: 0.75rem; } .top-0 { @@ -917,10 +921,6 @@ input[type=file] { left: 0px; } -.right-3 { - right: 0.75rem; -} - .top-14 { top: 3.5rem; } @@ -1149,6 +1149,10 @@ input[type=file] { margin-right: 0.25rem; } +.-mt-1 { + margin-top: -0.25rem; +} + .block { display: block; } @@ -1277,6 +1281,10 @@ input[type=file] { width: 33.333333%; } +.w-\[100px\] { + width: 100px; +} + .w-6 { width: 1.5rem; } @@ -1313,6 +1321,10 @@ input[type=file] { width: 200px; } +.w-\[110px\] { + width: 110px; +} + .min-w-0 { min-width: 0px; } @@ -1664,6 +1676,15 @@ input[type=file] { background-color: rgb(49 74 87 / var(--tw-bg-opacity)); } +.bg-red-500 { + --tw-bg-opacity: 1; + background-color: rgb(239 68 68 / var(--tw-bg-opacity)); +} + +.bg-green\/50 { + background-color: rgb(90 213 153 / 0.5); +} + .bg-opacity-70 { --tw-bg-opacity: 0.7; } @@ -1877,6 +1898,10 @@ input[type=file] { padding-left: 0.75rem; } +.pl-2 { + padding-left: 0.5rem; +} + .pl-8 { padding-left: 2rem; } @@ -1897,10 +1922,6 @@ input[type=file] { padding-bottom: 0.25rem; } -.pl-2 { - padding-left: 0.5rem; -} - .pb-16 { padding-bottom: 4rem; } diff --git a/templates/base.html b/templates/base.html index edfe7f88..9f34182a 100644 --- a/templates/base.html +++ b/templates/base.html @@ -37,6 +37,11 @@
{% include "includes/_header.html" %} + +
+ {% block messages %}{% include "partials/messages.html" %}{% endblock messages %} +
+ {% comment %}body block is for use in forums{% endcomment %} {% block forum_body %}{% endblock %} diff --git a/templates/board_base.html b/templates/board_base.html index 9c74d0fc..a393e59f 100644 --- a/templates/board_base.html +++ b/templates/board_base.html @@ -52,12 +52,6 @@ {% endspaceless %}
-
-
-
- {% block messages %}{% include "partials/messages.html" %}{% endblock messages %} -
-
{% endblock forum_body %} diff --git a/templates/forum_conversation/topic_detail.html b/templates/forum_conversation/topic_detail.html index 61c3a729..f2cecdf4 100644 --- a/templates/forum_conversation/topic_detail.html +++ b/templates/forum_conversation/topic_detail.html @@ -49,9 +49,9 @@ {% endif %} {% spaceless %} -

+

{{ post.subject }} -   +  

{% endspaceless %}

diff --git a/templates/includes/_header.html b/templates/includes/_header.html index b459ff86..d5473fef 100644 --- a/templates/includes/_header.html +++ b/templates/includes/_header.html @@ -7,7 +7,7 @@