From: Magnus Hagander Date: Thu, 10 Jul 2025 09:24:27 +0000 (+0200) Subject: Display session tags on voting page X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=b834e29ba31fe9c04023b71ee88793c95ac368ce;p=pgeu-system.git Display session tags on voting page --- 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%}
Speakers: {%for sp in s.speakerdata%}{{sp.fullname}}{%if sp.company%} ({{sp.company}}){%endif%}{%if not forloop.last%}, {%endif%}{%endfor%}
Track: {{s.trackname|default:""}}
+{%if conference.callforpaperstags%} +
Tags: {%for t in s.tags%}{{t}} {%endfor%}

+{%endif%} {%if conference.callforpapersrecording%}
Recording consent: {{s.recordingconsent | yesno:"Yes,No" }} {%endif%}