room list: indicate room with unscheduled talks
This commit is contained in:
parent
4b0bde3407
commit
7cd62940c3
|
@ -21,7 +21,9 @@
|
||||||
{{ room.capacity }} {% trans "place" %}{{ room.capacity|pluralize }}
|
{{ room.capacity }} {% trans "place" %}{{ room.capacity|pluralize }}
|
||||||
{% if request|staff %}
|
{% 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 }}
|
{{ room.talks.count }} {% trans "talk" %}{{ room.talks.count|pluralize }}
|
||||||
|
</span>
|
||||||
{% if request|orga %}
|
{% if request|orga %}
|
||||||
|
|
|
|
||||||
<a href="{% url 'edit-room' room.slug %}">{% bootstrap_icon "pencil" %}</a>
|
<a href="{% url 'edit-room' room.slug %}">{% bootstrap_icon "pencil" %}</a>
|
||||||
|
@ -37,3 +39,12 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block js_end %}
|
||||||
|
{{ block.super }}
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(function () {
|
||||||
|
$('[data-toggle="tooltip"]').tooltip()
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user