style: adjust some knowledge database pages to revamped style (#28863)

This commit is contained in:
Frédéric Péters 2018-12-11 14:55:20 +01:00
parent 879fe9643a
commit d1642e2b0f
3 changed files with 14 additions and 0 deletions

View File

@ -19,11 +19,13 @@
{% block content %}
<div id="page-content">
{{ object.content|safe }}
<p class="keywords">
{% trans 'Keywords:' %}
{% for tag in object.tags.all %}{{tag}}{% if not forloop.last %}, {% endif %}{% endfor %}
</p>
</div>
{% endblock %}

View File

@ -13,10 +13,12 @@
{% block content %}
<div id="page-history">
<ul>
{% for version in versions_list %}
<li>{{ version.revision.date_created }}, <a href="{% url 'kb-page-version' slug=object.slug version=version.id %}">{% trans 'view' %}</a></li>
{% endfor %}
</ul>
</div>
{% endblock %}

View File

@ -214,6 +214,16 @@ form#kb-search {
margin-bottom: 2em;
}
form#kb-search + div {
background: white;
}
div#page-history,
div#page-content {
background: white;
padding: 1rem;
}
.contacts div.search input,
.kb div.search input {
margin: 0 1ex;