Commit f437a4d0eca7bc1323fb5fd2f029fc507a2f1326

Authored by hitier
1 parent ddb02ef0

Use feather-link for categories and labels

app/main/templates/categories.html
... ... @@ -8,18 +8,15 @@
8 8 <thead>
9 9 <tr>
10 10 <th scope="col" class="col-10">Catégories</th>
11   - <th scope="col" class="col-1">Modifier</th>
12   - <th scope="col" class="col-1">Effacer</th>
  11 + <th scope="col" class="col-1">Éditer</th>
13 12 </tr>
14 13 </thead>
15 14 <tbody>
16 15 {% for category in categories %}
17 16 <tr>
18 17 <td>{{ category.name }}</td>
19   - <td><a title="Modifier" href="{{ url_for('main.category_edit', category_id=category.id) }}"><i
20   - data-feather="edit"></i></a></td>
21   - <td><a title="Effacer" href="{{ url_for('main.category_delete', category_id=category.id) }}"><i
22   - data-feather="trash-2"></i></a></td>
  18 + <td>{{ commons.edit_link(url_for('main.category_edit', category_id=category.id)) }}
  19 + {{ commons.delete_link( url_for('main.category_delete', category_id=category.id)) }}</td>
23 20 </tr>
24 21 {% endfor %}
25 22 </tbody>
... ...
app/main/templates/labels.html
... ... @@ -8,18 +8,15 @@
8 8 <thead>
9 9 <tr>
10 10 <th scope="col" class="col-10">Labels</th>
11   - <th scope="col" class="col-1">Modifier</th>
12   - <th scope="col" class="col-1">Effacer</th>
  11 + <th scope="col" class="col-1">Éditer</th>
13 12 </tr>
14 13 </thead>
15 14 <tbody>
16 15 {% for label in labels %}
17 16 <tr>
18 17 <td>{{ label.name }}</td>
19   - <td><a title="Modifier" href="{{ url_for('main.label_edit', label_id=label.id) }}"><i
20   - data-feather="edit"></i></a></td>
21   - <td><a title="Effacer" href="{{ url_for('main.label_delete', label_id=label.id) }}"><i
22   - data-feather="trash-2"></i></a></td>
  18 + <td>{{ commons.edit_link(url_for('main.label_edit', label_id=label.id)) }}
  19 + {{ commons.delete_link( url_for('main.label_delete', label_id=label.id)) }}</td>
23 20 </tr>
24 21 {% endfor %}
25 22 </tbody>
... ...