[templates] Add food to homepage
This commit is contained in:
@ -13,8 +13,18 @@
|
|||||||
{% include "scrobbles/_scrobble_table.html" %}
|
{% include "scrobbles/_scrobble_table.html" %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% else %}
|
{% else %}
|
||||||
No tracks today
|
<p>No tracks today</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<h3><a href="{% url 'foods:food_list' %}">Food</a></h3>
|
||||||
|
{% if Food %}
|
||||||
|
{% with scrobbles=Food count=Food_count time=Food_time %}
|
||||||
|
{% include "scrobbles/_scrobble_table.html" %}
|
||||||
|
{% endwith %}
|
||||||
|
{% else %}
|
||||||
|
<p>No food today</p>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md">
|
<div class="col-md">
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user