room list: indicate room with unscheduled talks

This commit is contained in:
Élie Bouttier 2016-10-17 13:33:38 +02:00
parent 4b0bde3407
commit 7cd62940c3
1 changed files with 11 additions and 0 deletions

View File

@ -21,7 +21,9 @@
{{ room.capacity }} {% trans "place" %}{{ room.capacity|pluralize }}
{% if request|staff %}
|
<span{% if room.unscheduled_talks %} class="text-warning" data-toggle="tooltip" data-placement="bottom" title="{% trans "Some talks are not scheduled yet." %}"{% endif %}>
{{ room.talks.count }} {% trans "talk" %}{{ room.talks.count|pluralize }}
</span>
{% if request|orga %}
|
<a href="{% url 'edit-room' room.slug %}">{% bootstrap_icon "pencil" %}</a>
@ -37,3 +39,12 @@
</div>
{% endblock %}
{% block js_end %}
{{ block.super }}
<script type="text/javascript">
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
</script>
{% endblock %}