Barvy a preskrtnuti v seznamu korektur.

This commit is contained in:
Tomas "Jethro" Pokorny 2016-11-14 11:37:27 +01:00
parent 4ea24e673a
commit c9754b98e3
2 changed files with 19 additions and 1 deletions

View file

@ -0,0 +1,13 @@
.adding-text{
color: black;
}
.comitting-text
{
color: yellow;
}
.deprecated-text {
color: red;
text-decoration: line-through;
}

View file

@ -1,4 +1,9 @@
{% extends "korektury/base.html" %}
{% load staticfiles %}
{% block script%}
<link rel="stylesheet" type="text/css" media="screen, projection" href="{% static "korektury/opraf-list.css" %}" />
{% endblock %}
{% block content %}
@ -12,7 +17,7 @@
<ul>
{% for pdf in object_list %}
<li> <b>{{ pdf.nazev }}</b> <i>{{pdf.komentar}}</i> <a href="/korektury/{{pdf.id}}">{{pdf.pdf.name}}</a> </li>
<li><span {% if pdf.status = 'zanaseni'%} class="comitting-text" {% elif pdf.status = 'zastarale' %} class="deprecated-text" {% endif %}> <b>{{ pdf.nazev }}</b> <i>{{pdf.komentar}}</i> <a href="/korektury/{{pdf.id}}">{{pdf.pdf.name}}</a> </span> </li>
{% empty %}
<li> Nejsou žádné dokumenty ke korekturování.
{% endfor %}