summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--postgresqleu/confreg/views.py3
-rw-r--r--template/confreg/sessionvotes.html3
2 files changed, 5 insertions, 1 deletions
diff --git a/postgresqleu/confreg/views.py b/postgresqleu/confreg/views.py
index 30bab7a3..e7f7a514 100644
--- a/postgresqleu/confreg/views.py
+++ b/postgresqleu/confreg/views.py
@@ -2877,7 +2877,8 @@ def talkvote(request, confname):
avg,
COALESCE(votes, '{{}}'::jsonb) AS votes,
jsonb_build_object(%(username)s, '') || COALESCE(comments, '{{}}'::jsonb) AS comments,
- trackname, recordingconsent
+ trackname, recordingconsent,
+ (SELECT array_agg(tag) FROM confreg_conferencesessiontag t INNER JOIN confreg_conferencesession_tags cst ON cst.conferencesessiontag_id=t.id WHERE cst.conferencesession_id=s.id) AS tags
FROM confreg_conferencesession s
INNER JOIN confreg_status_strings status ON status.id=s.status
LEFT JOIN confreg_track track ON track.id=s.track_id
diff --git a/template/confreg/sessionvotes.html b/template/confreg/sessionvotes.html
index fd5ac053..53e11e01 100644
--- a/template/confreg/sessionvotes.html
+++ b/template/confreg/sessionvotes.html
@@ -278,6 +278,9 @@ ul.comments span.username {
{%endif%}
<div><strong>Speakers:</strong> {%for sp in s.speakerdata%}{{sp.fullname}}{%if sp.company%} ({{sp.company}}){%endif%}{%if not forloop.last%}, {%endif%}{%endfor%}</div>
<div><strong>Track:</strong> {{s.trackname|default:""}}</div>
+{%if conference.callforpaperstags%}
+ <div><strong>Tags:</strong> {%for t in s.tags%}<span class="label label-primary">{{t}}</span> {%endfor%}</div><br/>
+{%endif%}
{%if conference.callforpapersrecording%}
<div><strong>Recording consent:</strong> {{s.recordingconsent | yesno:"Yes,No" }}
{%endif%} <br/>