Commit f47f846d authored by Skia's avatar Skia
Browse files

forum: add button CSS class


Signed-off-by: Skia's avatarSkia <skia@libskia.so>
parent 80bffd00
...@@ -1137,6 +1137,14 @@ textarea { ...@@ -1137,6 +1137,14 @@ textarea {
/*------------------------------FORUM----------------------------------*/ /*------------------------------FORUM----------------------------------*/
#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 { .topic {
border: solid $primary-neutral-color 1px; border: solid $primary-neutral-color 1px;
padding: 1px; padding: 1px;
......
...@@ -17,10 +17,10 @@ ...@@ -17,10 +17,10 @@
<h3>{{ forum.name }}</h3> <h3>{{ forum.name }}</h3>
<p> <p>
{% if user.is_in_group(settings.SITH_GROUP_FORUM_ADMIN_ID) or user.is_in_group(settings.SITH_GROUP_COM_ADMIN_ID) %} {% if user.is_in_group(settings.SITH_GROUP_FORUM_ADMIN_ID) or user.is_in_group(settings.SITH_GROUP_COM_ADMIN_ID) %}
<a href="{{ url('forum:new_forum') }}?parent={{ forum.id }}">{% trans %}New forum{% endtrans %}</a> <br/> <a class="ib button" href="{{ url('forum:new_forum') }}?parent={{ forum.id }}">{% trans %}New forum{% endtrans %}</a> <br/>
{% endif %} {% endif %}
{% if not forum.is_category %} {% if not forum.is_category %}
<a href="{{ url('forum:new_topic', forum_id=forum.id) }}">{% trans %}New topic{% endtrans %}</a> <a class="ib button" href="{{ url('forum:new_topic', forum_id=forum.id) }}">{% trans %}New topic{% endtrans %}</a>
{% endif %} {% endif %}
</p> </p>
{% if forum.children.exists() %} {% if forum.children.exists() %}
......
...@@ -8,13 +8,14 @@ ...@@ -8,13 +8,14 @@
{% block content %} {% block content %}
<p> <p>
<a href="{{ url('forum:main') }}">Forum</a> > <a href="{{ url('forum:main') }}">Forum</a> >
<a href="{{ url('forum:last_unread') }}">{% trans %}Last unread messages{% endtrans %}</a>
</p> </p>
<div id="forum"> <div id="forum">
<h3>{% trans %}Forum{% endtrans %}</h3> <h3>{% trans %}Forum{% endtrans %}</h3>
<h4>{% trans %}Last unread messages{% endtrans %}</h4> <h4>{% trans %}Last unread messages{% endtrans %}</h4>
<p> <p>
<a class="ib" href="{{ url('forum:mark_all_as_read') }}">{% trans %}Mark all as read{% endtrans %}</a> <a class="ib button" href="{{ url('forum:mark_all_as_read') }}">{% trans %}Mark all as read{% endtrans %}</a>
<a class="ib" href="{{ url('forum:last_unread') }}">{% trans %}Refresh{% endtrans %}</a> <a class="ib button" href="{{ url('forum:last_unread') }}">{% trans %}Refresh{% endtrans %}</a>
</p> </p>
{% for t in page_obj.object_list %} {% for t in page_obj.object_list %}
{% if user.can_view(t) %} {% if user.can_view(t) %}
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<div id="forum"> <div id="forum">
<h3>{% trans %}Forum{% endtrans %}</h3> <h3>{% trans %}Forum{% endtrans %}</h3>
<p> <p>
<a class="ib" href="{{ url('forum:last_unread') }}">{% trans %}View last unread messages{% endtrans %}</a> <a class="ib button" href="{{ url('forum:last_unread') }}">{% trans %}View last unread messages{% endtrans %}</a>
</p> </p>
{% if user.is_in_group(settings.SITH_GROUP_FORUM_ADMIN_ID) or user.is_in_group(settings.SITH_GROUP_COM_ADMIN_ID) %} {% if user.is_in_group(settings.SITH_GROUP_FORUM_ADMIN_ID) or user.is_in_group(settings.SITH_GROUP_COM_ADMIN_ID) %}
<p> <p>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment