Sith/com/templates/com/screen_list.jinja

40 lines
1014 B
Django/Jinja
Raw Normal View History

2017-11-28 14:02:46 +00:00
{% extends "core/base.jinja" %}
{% block title %}
{% trans %}Screens{% endtrans %}
2017-11-28 14:02:46 +00:00
{% endblock %}
{% block content %}
<div id="screen_list">
2017-11-28 14:02:46 +00:00
<div id="title">
<h3>{% trans %}Screens{% endtrans %}</h3>
<div id="links" class="right">
<a id="create" class="link" href="{{ url("com:screen_create") }}">{% trans %}Create{% endtrans %}</a>
</div>
2017-11-28 14:02:46 +00:00
</div>
<div id="screens">
{% if screen_list.count() == 0 %}
<div id="no-screens">{% trans %}No screens{% endtrans %}</div>
{% else %}
2017-11-28 14:02:46 +00:00
{% for screen in screen_list %}
<div class="screen">
<div class="name">{{ screen.name }}</div>
<a class="edit" href="{{ url("com:screen_edit", screen.id) }}">{% trans %}Edit{% endtrans %}</a>
<a class="slideshow" href="{{ url("com:screen_slideshow", screen.id) }}" target="_blank">{% trans %}Slideshow{% endtrans %}</a>
</div>
{% endfor %}
2017-11-28 14:02:46 +00:00
{% endif %}
2017-11-28 14:02:46 +00:00
</div>
</div>
2017-11-28 14:02:46 +00:00
{% endblock %}