Projet

Général

Profil

0001-style-adjust-some-knowledge-database-pages-to-revamp.patch

Frédéric Péters, 11 décembre 2018 14:56

Télécharger (1,88 ko)

Voir les différences:

Subject: [PATCH] style: adjust some knowledge database pages to revamped style
 (#28863)

 welco/kb/templates/kb/page_detail.html  |  2 ++
 welco/kb/templates/kb/page_history.html |  2 ++
 welco/static/css/style.css              | 10 ++++++++++
 3 files changed, 14 insertions(+)
welco/kb/templates/kb/page_detail.html
19 19

  
20 20
{% block content %}
21 21

  
22
<div id="page-content">
22 23
{{ object.content|safe }}
23 24

  
24 25
<p class="keywords">
25 26
{% trans 'Keywords:' %}
26 27
{% for tag in object.tags.all %}{{tag}}{% if not forloop.last %}, {% endif %}{% endfor %}
27 28
</p>
29
</div>
28 30

  
29 31
{% endblock %}
welco/kb/templates/kb/page_history.html
13 13

  
14 14
{% block content %}
15 15

  
16
<div id="page-history">
16 17
<ul>
17 18
{% for version in versions_list %}
18 19
<li>{{ version.revision.date_created }}, <a href="{% url 'kb-page-version' slug=object.slug version=version.id %}">{% trans 'view' %}</a></li>
19 20
{% endfor %}
20 21
</ul>
22
</div>
21 23

  
22 24
{% endblock %}
welco/static/css/style.css
214 214
	margin-bottom: 2em;
215 215
}
216 216

  
217
form#kb-search + div {
218
	background: white;
219
}
220

  
221
div#page-history,
222
div#page-content {
223
	background: white;
224
	padding: 1rem;
225
}
226

  
217 227
.contacts div.search input,
218 228
.kb div.search input {
219 229
	margin: 0 1ex;
220
-