Commit 398fa5da authored by fred's avatar fred
Browse files

news: add category labels to main news

parent 0219a2a4
......@@ -745,6 +745,11 @@ body{
border:2px solid black;
}
.news .special a {
position: relative;
}
.special .labels .item,
.newsRoll .labels .item{
display:block;
background:#0000FF;
......
......@@ -2,6 +2,12 @@
{% load staticfiles %}
<div class="content content-inline {% if class != "special" %}inline{% endif %} cf {{ class }}">
<a class="block cf" href="{% url 'newsitem-view' slug=content.slug %}">
{% if class == "special" and content.category %}
<div class="label labels absolute">
<span class="item inBlock">{{ content.category.title }}</span>
</div>
{% endif %}
<div class="logo">
{% if class == "special" and content.image %}
<img class="normal" src="{{ content.image|thumbnail:'640x480' }}"/>
......
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