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

View File

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

View File

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