PonyConf/accounts/templates/accounts/participant_list.html

63 lines
2.0 KiB
HTML
Raw Normal View History

2016-11-12 12:56:21 +00:00
{% extends 'staff.html' %}
2016-06-14 21:58:04 +00:00
2016-07-23 10:03:12 +00:00
{% load bootstrap3 accounts_tags i18n %}
2016-06-14 21:58:04 +00:00
2016-11-12 12:56:21 +00:00
{% block participantstab %} class="active"{% endblock %}
2016-06-14 21:58:04 +00:00
{% block content %}
2016-11-12 12:56:21 +00:00
<h1>{% trans "Participants" %}</h1>
2016-06-14 21:58:04 +00:00
<table class="table table-striped">
<tr>
<th>Username</th>
2016-08-28 14:12:43 +00:00
<th>Full name</th>
2016-06-27 23:04:45 +00:00
<th>Orga</th>
<th>Reviews</th>
<th>Conversations</th>
2016-06-14 21:58:04 +00:00
</tr>
{% for participation in participation_list %}
<tr>
2016-06-27 23:04:45 +00:00
<td><a href="{{ participation.get_absolute_url }}">{{ participation.user.username }}</a></td>
2016-06-14 21:58:04 +00:00
<td>{{ participation.user.get_full_name }}</td>
2016-07-09 21:44:52 +00:00
<td>{{ participation.is_orga|yesno:"✔,✘" }}</td>
<td>{% for topic in participation.topic_set.all %}{{ topic.get_link }}{% if not forloop.last %},
2016-06-27 23:04:45 +00:00
{% endif %}{% endfor %}</td>
2016-06-14 21:58:04 +00:00
<td>
2016-11-12 12:56:21 +00:00
<a href="{% url 'user-conversation' participation.user.username %}" data-toggle="tooltip" data-placement="bottom"
2016-07-23 10:03:12 +00:00
title="{% trans "View conversation" %}"><span class="glyphicon glyphicon-envelope"></span></a>
2016-06-14 21:58:04 +00:00
{% if request.user in participation.conversation.subscribers.all %}
2016-11-12 12:56:21 +00:00
<a href="{% url 'unsubscribe-conversation' participation.user.username %}?next={% url 'list-participants' %}"
2016-08-28 14:12:43 +00:00
data-toggle="tooltip" data-placement="bottom" title="{% trans "Unsubscribe from the conversation" %}">
2016-06-27 23:04:45 +00:00
<span class="glyphicon glyphicon-star"></span></a>
2016-06-14 21:58:04 +00:00
{% else %}
2016-11-12 12:56:21 +00:00
<a href="{% url 'subscribe-conversation' participation.user.username %}?next={% url 'list-participants' %}"
2016-08-28 14:12:43 +00:00
data-toggle="tooltip" data-placement="bottom" title="{% trans "Subscribe to the conversation" %}">
2016-06-27 23:04:45 +00:00
<span class="glyphicon glyphicon-star-empty"></span></a>
2016-06-14 21:58:04 +00:00
{% endif %}
</td>
</tr>
{% endfor %}
</table>
{% if request|orga %}
{% include "_form.html" %}
{% endif %}
{% endblock %}
{% block css %}
{{ block.css }}
{{ form.media.css }}
2016-06-14 21:58:04 +00:00
{% endblock %}
{% block js_end %}
{{ block.super }}
{{ form.media.js }}
2016-06-14 21:58:04 +00:00
<script type="text/javascript">
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
</script>
{% endblock %}