From f47f846d260c1f38bd09d0ed5c9a859f34541ac0 Mon Sep 17 00:00:00 2001 From: Skia Date: Thu, 22 Feb 2018 22:14:26 +0100 Subject: [PATCH] forum: add button CSS class Signed-off-by: Skia --- core/static/core/style.scss | 8 ++++++++ forum/templates/forum/forum.jinja | 4 ++-- forum/templates/forum/last_unread.jinja | 5 +++-- forum/templates/forum/main.jinja | 2 +- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/core/static/core/style.scss b/core/static/core/style.scss index 183fea3a..26a374bf 100644 --- a/core/static/core/style.scss +++ b/core/static/core/style.scss @@ -1137,6 +1137,14 @@ textarea { /*------------------------------FORUM----------------------------------*/ #forum { + .button { + background-color: $primary-neutral-light-color; + border: outset $primary-neutral-dark-color 2px; + padding: 4px; + &:hover { + border: inset $primary-neutral-dark-color 2px; + } + } .topic { border: solid $primary-neutral-color 1px; padding: 1px; diff --git a/forum/templates/forum/forum.jinja b/forum/templates/forum/forum.jinja index 1886838f..426160ff 100644 --- a/forum/templates/forum/forum.jinja +++ b/forum/templates/forum/forum.jinja @@ -17,10 +17,10 @@

{{ forum.name }}

{% if user.is_in_group(settings.SITH_GROUP_FORUM_ADMIN_ID) or user.is_in_group(settings.SITH_GROUP_COM_ADMIN_ID) %} - {% trans %}New forum{% endtrans %}
+ {% trans %}New forum{% endtrans %}
{% endif %} {% if not forum.is_category %} - {% trans %}New topic{% endtrans %} + {% trans %}New topic{% endtrans %} {% endif %}

{% if forum.children.exists() %} diff --git a/forum/templates/forum/last_unread.jinja b/forum/templates/forum/last_unread.jinja index 9be995b8..d776d006 100644 --- a/forum/templates/forum/last_unread.jinja +++ b/forum/templates/forum/last_unread.jinja @@ -8,13 +8,14 @@ {% block content %}

Forum > + {% trans %}Last unread messages{% endtrans %}

{% trans %}Forum{% endtrans %}

{% trans %}Last unread messages{% endtrans %}

- {% trans %}Mark all as read{% endtrans %} - {% trans %}Refresh{% endtrans %} + {% trans %}Mark all as read{% endtrans %} + {% trans %}Refresh{% endtrans %}

{% for t in page_obj.object_list %} {% if user.can_view(t) %} diff --git a/forum/templates/forum/main.jinja b/forum/templates/forum/main.jinja index ccca49cb..ac2ac764 100644 --- a/forum/templates/forum/main.jinja +++ b/forum/templates/forum/main.jinja @@ -13,7 +13,7 @@

{% trans %}Forum{% endtrans %}

- {% trans %}View last unread messages{% endtrans %} + {% trans %}View last unread messages{% endtrans %}

{% if user.is_in_group(settings.SITH_GROUP_FORUM_ADMIN_ID) or user.is_in_group(settings.SITH_GROUP_COM_ADMIN_ID) %}