forked from rc/aircox
work on home page, fix views & templates issues
This commit is contained in:
21
aircox/templates/aircox/widgets/log_item.html
Normal file
21
aircox/templates/aircox/widgets/log_item.html
Normal file
@ -0,0 +1,21 @@
|
||||
{% load i18n aircox %}
|
||||
{% comment %}
|
||||
Context objects:
|
||||
- object: object to render
|
||||
- hide_schedule: if true, hide the schedule
|
||||
|
||||
In case of modification, you might want to check on `assets/vue/player.vue`
|
||||
for design review.
|
||||
|
||||
{% endcomment %}
|
||||
|
||||
{% if object|is_diffusion %}
|
||||
{% with object as diffusion %}
|
||||
{% include "aircox/widgets/diffusion_item.html" %}
|
||||
{% endwith %}
|
||||
{% else %}
|
||||
{% with object.track as object %}
|
||||
{% include "aircox/widgets/track_item.html" %}
|
||||
{% endwith %}
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user