Skip to content

Commit

Permalink
Merge pull request #1148 from Amsterdam-Music-Lab/bugfix-er/missing-p…
Browse files Browse the repository at this point in the history
…articipant-url-id

show alternative for None in session table (url_id and finished_at)
  • Loading branch information
Evert-R authored Jun 25, 2024
2 parents 886bd0d + 9e2d145 commit 2983d7a
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions backend/experiment/templates/collection-dashboard-sessions.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,28 @@

<td>
<p>
<a href="{% url 'admin:participant_participant_change' session.participant.id %}" target="_blank">
{{ session.participant.participant_id_url }}</a>
{% if session.participant.participant_id_url %}
<a href="{% url 'admin:participant_participant_change' session.participant.id %}" target="_blank" title="Participant URL id">
{{ session.participant.participant_id_url }}
</a>
{% else %}
<a href="{% url 'admin:participant_participant_change' session.participant.id %}" target="_blank" title="Participant object id">
{{ session.participant.id }}
</a>
{% endif %}
</p>
</td>

<td>
<p>{{ session.started_at }}</p>
</td>

<td>
<p>{{ session.finished_at }}</p>
<td>
{% if session.finished_at %}
<p>{{ session.finished_at }}</p>
{% else %}
<p> - </p>
{% endif %}
</td>

<td>
Expand Down

0 comments on commit 2983d7a

Please sign in to comment.