Projet

Général

Profil

0001-general-generalise-links-list-css-class-on-relevant-.patch

Frédéric Péters, 10 août 2018 11:30

Télécharger (4,46 ko)

Voir les différences:

Subject: [PATCH] general: generalise links-list css class on relevant cells
 (#25631)

 .../templates/combo/notificationscell.html            |  2 ++
 combo/apps/wcs/templates/combo/wcs/categories.html    | 11 +++++++++++
 .../apps/wcs/templates/combo/wcs/current_drafts.html  |  3 ++-
 combo/apps/wcs/templates/combo/wcs/current_forms.html |  2 +-
 .../apps/wcs/templates/combo/wcs/user_all_forms.html  |  2 +-
 .../apps/wcs/templates/combo/wcs/user_done_forms.html |  2 +-
 6 files changed, 18 insertions(+), 4 deletions(-)
 create mode 100644 combo/apps/wcs/templates/combo/wcs/categories.html
combo/apps/notifications/templates/combo/notificationscell.html
2 2
{% block cell-content %}
3 3
<h2>{% trans "Notifications" %}</h2>
4 4
{% if notifications %}
5
<div class="links-list">
5 6
<ul>
6 7
  {% for notification in notifications %}
7 8
  <li class="combo-notification {% if notification.acked %}combo-notification-acked{% endif %}"
......
15 16
  </li>
16 17
  {% endfor %}
17 18
</ul>
19
</div>
18 20
{% else %}
19 21
<p>{% trans 'No notifications.' %}</p>
20 22
{% endif %}
combo/apps/wcs/templates/combo/wcs/categories.html
1
{% block cell-content %}
2
{% if categories %}
3
<div class="links-list">
4
<ul>
5
  {% for data in categories.data %}
6
  <li><a href="{{ data.url }}">{{ data.title }}</a></li>
7
  {% endfor %}
8
</ul>
9
</div>
10
{% endif %}
11
{% endblock %}
combo/apps/wcs/templates/combo/wcs/current_drafts.html
2 2
{% block cell-content %}
3 3
<h2>{% trans 'Current Drafts' %}</h2>
4 4
{% for slug, forms in current_drafts.items %}
5
<div class="current-drafts-{{ slug }} current-drafts list-of-forms">
5
<div class="links-list current-drafts-{{ slug }} current-drafts list-of-forms">
6 6
  {% if forms.data %}
7 7
  <ul>
8 8
    {% for data in forms.data %}
......
17 17
  {% endif %}
18 18
</div>
19 19
{% endfor %}
20
</div>
20 21
{% endblock %}
combo/apps/wcs/templates/combo/wcs/current_forms.html
2 2
{% block cell-content %}
3 3
<h2>{% trans 'Current Forms' %}</h2>
4 4
{% for slug, forms in current_forms.items %}
5
  <div class="current-forms-{{ slug }} current-forms list-of-forms">
5
  <div class="links-list current-forms-{{ slug }} current-forms list-of-forms">
6 6
  {% include "combo/wcs/list_of_forms.html" with forms=forms %}
7 7
  </div>
8 8
{% endfor %}
combo/apps/wcs/templates/combo/wcs/user_all_forms.html
2 2
{% block cell-content %}
3 3
<h2>{% trans 'All Forms' %}</h2>
4 4
{% for slug, forms in user_forms.items %}
5
  <div class="user-forms-{{ slug }} user-all-forms list-of-forms">
5
  <div class="links-list user-forms-{{ slug }} user-all-forms list-of-forms">
6 6
  {% include "combo/wcs/list_of_forms.html" with forms=forms %}
7 7
  </div>
8 8
{% endfor %}
combo/apps/wcs/templates/combo/wcs/user_done_forms.html
2 2
{% block cell-content %}
3 3
<h2>{% trans 'Done Forms' %}</h2>
4 4
{% for slug, forms in user_forms.items %}
5
  <div class="user-forms-{{ slug }} list-of-forms">
5
  <div class="links-list user-forms-{{ slug }} list-of-forms">
6 6
  {% include "combo/wcs/list_of_forms.html" with forms=forms %}
7 7
  </div>
8 8
{% endfor %}
9
-