UI improvements
This commit is contained in:
parent
a37431771f
commit
7608476c6b
|
@ -60,8 +60,9 @@ div.clear {
|
|||
}
|
||||
|
||||
ul.pagination {
|
||||
font-size: .8>em;
|
||||
margin: 0;
|
||||
padding-left: 1em;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
ul.pagination li {
|
||||
|
@ -187,7 +188,7 @@ ul#management li {
|
|||
}
|
||||
|
||||
.status .published:before {
|
||||
content: '\f0f6';
|
||||
content: '\f1ea';
|
||||
}
|
||||
|
||||
.status .unpublished:before {
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
{% block title %}{% trans "Management" %}{% endblock %}
|
||||
{% block content %}
|
||||
<div class="category">
|
||||
{% trans "Category:" %}
|
||||
<span class="title">{% trans "Category:" %}</span>
|
||||
<select>
|
||||
<option value='' selected>---</option>
|
||||
<option value='' selected>{% trans "All" %}</option>
|
||||
{% for category in categories %}
|
||||
<option value='{{ category.id }}'>{{ category }}</option>
|
||||
{% endfor %}
|
||||
|
@ -15,13 +15,13 @@
|
|||
{% for obj in object_list %}
|
||||
<li>
|
||||
<div class="status">
|
||||
{% if obj.published %}
|
||||
{% if obj.is_published %}
|
||||
<span class="icon published" title="{% trans "published" %}"></span>
|
||||
{% endif %}
|
||||
{% if obj.expired %}
|
||||
{% if obj.is_expired %}
|
||||
<span class="icon expired" title="{% trans "expired" %}"></span>
|
||||
{% endif %}
|
||||
{% if obj.not_published %}
|
||||
{% if obj.is_not_published %}
|
||||
<span class="icon unpublished" title="{% trans "not published yet" %}"></span>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
@ -31,7 +31,7 @@
|
|||
</div>
|
||||
<div class="announce">
|
||||
<div class="title">{{ obj.title }}</div>
|
||||
<div class="text_preview">{{ obj.text|safe|truncatechars_html:100 }}</div>
|
||||
<div class="text_preview">{{ obj.text|safe|truncatechars_html:128 }}</div>
|
||||
</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
@ -41,7 +41,7 @@
|
|||
<ul class="pagination">
|
||||
{% if page_obj.has_previous %}
|
||||
<li class="prev">
|
||||
<a href="?page={{ object_list.previous_page_number }}" class="icon"></a>
|
||||
<a href="?page={{ page_obj.previous_page_number }}" class="icon"></a>
|
||||
</li>
|
||||
{% endif %}
|
||||
<li class="current">
|
||||
|
|
Reference in New Issue