PonyConf/proposals/templates/proposals/talk_detail.html

142 lines
4.9 KiB
HTML
Raw Normal View History

2016-06-07 20:59:13 +00:00
{% extends 'base.html' %}
2016-07-23 10:03:12 +00:00
{% load i18n %}
2016-10-15 11:31:19 +00:00
{% block listingtab %} active{% endblock %}
2016-06-07 20:59:13 +00:00
{% block content %}
<h1>{{ talk.title }}</h1>
2016-06-14 21:58:04 +00:00
{% if edit_perm %}
2016-08-08 06:39:24 +00:00
<a class="btn btn-success" href="{% url 'edit-talk' talk.slug %}">{% trans "Edit" %}</a><br />
2016-06-14 21:58:04 +00:00
{% endif %}
2016-06-07 20:59:13 +00:00
2016-10-18 21:41:26 +00:00
<p>{% if talk.abstract %}{{ talk.abstract }}{% else %}<i>{% trans "No abstract provided." %}</i>{% endif %}</p>
2016-10-18 21:41:26 +00:00
{% if moderate_perm %}
2016-06-12 20:45:22 +00:00
2016-10-18 21:41:26 +00:00
<dl class="dl-horizontal">
2016-10-18 22:04:04 +00:00
<dt>{% trans "Format" %}</dt>
2016-10-18 21:41:26 +00:00
<dd><a href="{{ talk.event.get_absolute_url }}">{{ talk.event }}</a></dd>
<dt>{% trans "Topics" %}</dt>
2016-10-18 22:04:04 +00:00
<dd>{% for topic in talk.topics.all %}
<a href="{{ topic.get_absolute_url }}">{{ topic }}</a>{% if not forloop.last %}, {% endif %}
2016-10-18 21:41:26 +00:00
{% empty %}
2016-10-18 22:04:04 +00:00
<i>{% trans "No topics." %}</i>
{% endfor %}</dd>
2016-10-18 21:41:26 +00:00
2016-10-18 22:04:04 +00:00
<dt>{% trans "Track" %}</dt>
2016-10-18 21:41:26 +00:00
<dd>{% if talk.track %}
<a href="{{ talk.track.get_absolute_url }}">{{ talk.track }}</a>
{% else %}
<em>{% trans "No assigned yet." %}</em>
{% endif %}</dd>
<dt>Horaire</dt>
<dd>{% if talk.start_date %}
<span class="date">{{ talk.start_date|date:"l d b" }}</span>,
<span class="time">{{ talk.start_date|date:"H:i" }} &ndash; {% if talk.end_date %}{{ talk.end_date|date:"H:i" }}{% else %}?{% endif %}</span>
2016-10-18 21:41:26 +00:00
{% else %}<em>{% trans "not defined" %}</em>
{% endif %}
</dd>
<dt>Salle</dt>
<dd>{% if talk.room %}
2016-10-18 22:04:04 +00:00
<a href="{{ talk.room.get_absolute_url }}">
<span class="label label-info">{{ talk.room }}</span>
</a>
2016-10-18 21:41:26 +00:00
{% else %}<em>{% trans "not defined" %}</em>
{% endif %}
</dd>
2016-11-08 20:05:56 +00:00
{% if talk.registration_required %}
<dt>{% trans "Registrations" %}</dt>
<dd>{% if talk.attendees_limit %}{{ talk.attendees.count }} / {{ talk.attendees_limit }}{% else %}{% trans "required but unlimited" %}{% endif %}</dd>
{% endif %}
2016-10-18 21:41:26 +00:00
</dl>
{% endif %}
2016-10-18 22:04:04 +00:00
<h3>{% trans "Description" %}</h3>
2016-06-07 20:59:13 +00:00
<p>{% if talk.description %}{{ talk.description|linebreaksbr }}{% else %}<i>{% trans "No description provided." %}</i>{% endif %}</p>
2016-06-07 20:59:13 +00:00
2016-10-18 22:04:04 +00:00
<h3>{% trans "Speakers" %}</h3>
2016-06-07 20:59:13 +00:00
{% for speaker in talk.speakers.all %}
{% if forloop.first %}<ul>{% endif %}
<li><a href="{% url 'show-speaker' speaker.username %}">{{ speaker.profile }}</a></li>
{% if forloop.last %}</ul>{% endif %}
2016-06-07 20:59:13 +00:00
{% empty %}
<i>{% trans "No speakers." %}</i>
2016-06-07 20:59:13 +00:00
{% endfor %}
{% if moderate_perm %}
2016-10-18 21:41:26 +00:00
{% if not talk.track %}
2016-10-18 22:04:04 +00:00
<h3>{% trans "Track" %}</h3>
2016-10-18 21:41:26 +00:00
<p><em>{% trans "No assigned yet." %}</em></p>
{% for topic in talk.topics.distinct %}
2016-09-22 22:51:07 +00:00
{% if forloop.first %}<p>{% endif %}
{% if topic.track %}
<a class="btn btn-primary" href="{% url 'assign-talk-to-track' talk.slug topic.track.slug %}">{% trans "Assign to" %} {{ topic.track }}</a>
{% endif %}
{% if forloop.last %}</p>{% endif %}
2016-10-18 21:41:26 +00:00
{% endfor %}
2016-09-22 22:51:07 +00:00
{% endif %}
2016-09-21 22:53:09 +00:00
{% endif %}
2016-10-18 22:04:04 +00:00
<h3>{% trans "Notes" %}</h3>
2016-09-23 12:15:59 +00:00
<p>{% if talk.notes %}{{ talk.notes|linebreaksbr }}{% else %}<i>{% trans "No notes." %}</i>{% endif %}</p>
2016-09-21 22:53:09 +00:00
{% if moderate_perm %}
2016-07-23 10:03:12 +00:00
<h2>{% trans "Moderation" %}</h2>
2016-10-18 22:04:04 +00:00
<h3>{% trans "Status" %}</h3>
2016-10-18 20:47:16 +00:00
2016-10-18 21:41:26 +00:00
<span class="label label-{{ talk.accepted|yesno:"success,danger,warning" }}">{{ talk.accepted|yesno:"Accepted,Declined,Pending decision" }}</span><br />
2016-10-18 20:47:16 +00:00
{% if talk.accepted == None %}
2016-10-18 22:04:04 +00:00
<h3>{% trans "Vote" %}</h3>
<div class="btn-group" role="group" aria-label="vote">
<a class="btn {% if vote.vote == -2 %} active {% endif %}btn-danger" href="{% url 'vote' talk=talk.slug score='-2' %}">-2</a>
<a class="btn {% if vote.vote == -1 %} active {% endif %}btn-warning" href="{% url 'vote' talk=talk.slug score='-1' %}">-1</a>
<a class="btn {% if vote.vote == 0 %} active {% endif %}btn-default" href="{% url 'vote' talk=talk.slug score='0' %}"> 0</a>
<a class="btn {% if vote.vote == 1 %} active {% endif %}btn-info" href="{% url 'vote' talk=talk.slug score='1' %}">+1</a>
<a class="btn {% if vote.vote == 2 %} active {% endif %}btn-success" href="{% url 'vote' talk=talk.slug score='2' %}">+2</a>
</div>
2016-09-16 16:12:21 +00:00
<br /><br />
2016-10-18 22:04:04 +00:00
<p>{{ talk.vote_set.all|length }} {% trans "vote" %}{{ talk.vote_set.all|length|pluralize }}, {% trans "average:" %} {{ talk.score|floatformat:1 }}</p>
<a href="{% url 'accept-talk' talk.slug %}" class="btn btn-success">Accept</a>
<a href="{% url 'decline-talk' talk.slug %}" class="btn btn-danger">Decline</a>
{% endif %}
2016-07-03 20:39:29 +00:00
2016-11-08 20:05:56 +00:00
{% if talk.registration_required %}
<h3>{% trans "Attendees" %}</h3>
{% for attendee in talk.attendees.all %}
{% if forloop.first %}<ol>{% endif %}
<li><a href="mailto:{{ attendee.get_email }}">{{ attendee.get_name }}</a></li>
{% if forloop.last %}</ol>{% endif %}
{% empty %}
<em>{% trans "No attendees yet." %}</em>
{% endfor %}
{% endif %}
2016-10-18 22:04:04 +00:00
<h3>{% trans "Messages" %}</h3>
{% trans "These messages are for organization team only." %}<br /><br />
{% for message in talk.conversation.messages.all %}
{% include 'conversations/_message_detail.html' %}
{% endfor %}
{% include 'conversations/_message_form.html' %}
{% endif %}
2016-06-07 20:59:13 +00:00
{% endblock %}