mirror of https://github.com/snachodog/mybuddy.git
Rendering tag lists with templates
This commit is contained in:
parent
3fa652cc25
commit
4919222d41
|
@ -56,13 +56,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<td>{{ note.note }}</td>
|
<td>{{ note.note }}</td>
|
||||||
<td>
|
<td>
|
||||||
{% for tag in note.tags.all %}
|
{% include "core/render_tag_list.html" with tags=note.tags.all %}
|
||||||
<span class="badge badge-pill" style="background-color:{{ tag.color }};color:{{ tag.complementary_color }};">
|
|
||||||
{{ tag.name|escape }}
|
|
||||||
</span>
|
|
||||||
{% empty %}
|
|
||||||
-
|
|
||||||
{% endfor %}
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% empty %}
|
{% empty %}
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
<span class="badge badge-pill" style="background-color:{{ tag.color }};color:{{ tag.complementary_color }};">
|
||||||
|
{{ tag.name|escape }}
|
||||||
|
</span>
|
|
@ -0,0 +1,5 @@
|
||||||
|
{% for tag in tags %}
|
||||||
|
{% include "core/render_tag.html" %}
|
||||||
|
{% empty %}
|
||||||
|
-
|
||||||
|
{% endfor %}
|
Loading…
Reference in New Issue