Restyle forum lists
This commit is contained in:
@@ -327,22 +327,22 @@ fieldset {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.topic .topic-link {
|
||||
.forum .topic-link {
|
||||
background: url(img/torch-on.png) no-repeat left center;
|
||||
height: 48px;
|
||||
padding-left: 48px;
|
||||
}
|
||||
|
||||
.topic .topic-link ul {
|
||||
.forum .topic-link ul {
|
||||
list-style: none;
|
||||
font-size: x-small;
|
||||
}
|
||||
|
||||
.topic .topic-link a {
|
||||
.forum .topic-link a {
|
||||
font-size: large;
|
||||
}
|
||||
|
||||
.forum tr.topic {
|
||||
.forum tr, .forum tr {
|
||||
border-top: #888 solid 1px;
|
||||
border-bottom: #aaa solid 1px;
|
||||
}
|
||||
|
@@ -1,5 +1,6 @@
|
||||
{% load mptt_tags %}
|
||||
{% load minecraft %}
|
||||
{% load markup %}
|
||||
{% if forums %}
|
||||
<table class="forum">
|
||||
<tr class="header">
|
||||
@@ -9,10 +10,10 @@
|
||||
</tr>
|
||||
{% for f in forums %}
|
||||
<tr class="{% cycle 'even' 'odd' %} subforum">
|
||||
<td><a href="{{ f.get_absolute_url }}">{{ f.name }}</a></td>
|
||||
<td class="topic-link"><ul><li><a href="{{ f.get_absolute_url }}">{{ f.name }}</a></li><li>{{f.description|markdown}}</li></ul></td>
|
||||
<td>{{ f.topicCount }}</td>
|
||||
{% if f.latestTopic %}
|
||||
<td><a href="{{f.latestTopic.get_absolute_url}}">{{f.latestTopic.title}}</a> {% include 'common/user_tile.html' with user=f.latestTopic.lastPost.user %}</td>
|
||||
<td class="author-info"><div class="avatar">{% avatar f.latestTopic.lastPost.user 32 %}</div><ul><li>{{f.latestTopic.lastPost.user}}</li><li>{{f.latestTopic.created}}</li><li>In <em><a href="{{f.latestTopic.get_absolute_url}}">{{f.latestTopic}}</a></em></ul></td>
|
||||
{% else %}
|
||||
<td><em>No posts...</em></td>
|
||||
{% endif %}
|
||||
|
@@ -2,10 +2,11 @@
|
||||
{% load minecraft %}
|
||||
|
||||
{% block breadcrumb %}
|
||||
<a href="{% url forums.views.index%}">Forums</a>
|
||||
<a href="{% url local.views.index%}">Home</a>
|
||||
{%for f in forum.get_ancestors %}
|
||||
> <a href="{{f.get_relative_url}}">{{f}}</a>
|
||||
{%endfor%}
|
||||
> {{forum}}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
Reference in New Issue
Block a user