add icons for default theme
This commit is contained in:
parent
fbf0a99410
commit
5c7c494908
8 changed files with 8 additions and 3 deletions
|
@ -36,8 +36,11 @@
|
|||
<tr>
|
||||
<td class="tcl">
|
||||
<div class="intd">
|
||||
<div {% if topic|has_unreads:user %}class="inew"{% else %}class="icon"{% endif %}><div class="nosize"><!-- --></div></div>
|
||||
<div {% if topic.sticky %}class="sticky"{% else %}{% if topic.closed %}class="closed"{% else %}{% if topic|has_unreads:user %}class="inew"{% else %}class="icon"{% endif %}{% endif %}{% endif %}><div class="nosize"><!-- --></div></div>
|
||||
<div class="tclcon">
|
||||
{% if topic.sticky %}
|
||||
{% trans "Sticky:" %}
|
||||
{% endif %}
|
||||
{% if topic|has_unreads:user %}
|
||||
<strong>{% link topic %} <span class="byuser">{% trans "by" %} {{ topic.user.username }}</span></strong>
|
||||
{% else %}
|
||||
|
|
|
@ -695,7 +695,7 @@ def close_topic(request, topic_id):
|
|||
topic = get_object_or_404(Topic, pk=topic_id)
|
||||
if forum_moderated_by(topic, request.user):
|
||||
if not topic.closed:
|
||||
Topic.objects.filter(pk=topik.id).update(closed=True)
|
||||
Topic.objects.filter(pk=topic.id).update(closed=True)
|
||||
return HttpResponseRedirect(topic.get_absolute_url())
|
||||
|
||||
|
||||
|
|
|
@ -112,6 +112,8 @@ LI.maintenancelink A:hover {COLOR: #B42000}
|
|||
|
||||
DIV.icon {background:url(../img/inactive_topic.gif)}
|
||||
DIV.inew {background:url(../img/active_topic.gif)}
|
||||
DIV.sticky {background:url(../img/sticky_topic.gif)}
|
||||
DIV.closed {background:url(../img/closed_topic.gif)}
|
||||
TR.inew DIV.icon {background:url(../img/active_topic.gif)}
|
||||
TR.isticky DIV.inew {background:url(../img/active_topic.gif)}
|
||||
TR.iclosed DIV.icon {background:url(../img/closed.png)}
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
BIN
static/forum/themes/default/img/closed_topic.gif
Normal file
BIN
static/forum/themes/default/img/closed_topic.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
BIN
static/forum/themes/default/img/sticky_topic.gif
Normal file
BIN
static/forum/themes/default/img/sticky_topic.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 619 B |
|
@ -236,7 +236,7 @@ DIV.blockform P INPUT {MARGIN-LEFT: 12px}
|
|||
.inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and
|
||||
.isticky = sticky topics. By default only .inew is different from the default.*/
|
||||
|
||||
DIV.icon,DIV.inew {
|
||||
DIV.icon,DIV.inew, DIV.sticky, DIV.closed {
|
||||
FLOAT: left;
|
||||
MARGIN-TOP: 0.1em;
|
||||
MARGIN-right: 0.4em;
|
||||
|
|
Reference in a new issue