Skip to content

Commit

Permalink
Fix 500 errors for MIVS admin pages
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsuta committed Nov 27, 2024
1 parent e627944 commit 958cff6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion uber/templates/mivs_admin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h3>MIVS Submitted Games</h3>
{% if game.status == c.ACCEPTED and not game.confirmed %}Confirm deadline: {{ game.studio.confirm_deadline|datetime_local('%x %-I:%M%p') }}{% endif %}
</td>
<td><a href="../mivs/continue_app?id={{ game.studio.id }}" target="_blank">{{ game.studio.name }}</a></td>
<td>{{ game.studio.primary_contacts[0].full_name }}</td>
<td>{{ game.studio.primary_contacts[0].full_name if game.studio.primary_contacts else 'N/A' }}</td>
<td><a href="assign_judges?game_id={{ game.id }}">{{ game.reviews|length }}</a></td>
<td>
{% if game.game_reviews %}
Expand Down
24 changes: 14 additions & 10 deletions uber/templates/mivs_admin/studios.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,21 @@ <h3>
<a href="../mivs/continue_app?id={{ studio.id }}" target="_blank">{{ studio.name }}</a>
</td>
<td>
{%- if studio.primary_contacts[0].attendee -%}
<a href="#attendee_form?id={{ studio.primary_contacts[0].attendee.id }}">{{ studio.primary_contacts[0].full_name }}</a>
{%- else -%}
{{ studio.primary_contacts[0].full_name }}
{%- endif %}
<br>
<a href="mailto:{{ studio.primary_contacts[0].email }}">{{ studio.primary_contacts[0].email }}</a>
{% if studio.primary_contacts[0].cellphone_num -%}
{% if studio.primary_contacts %}
{%- if studio.primary_contacts[0].attendee -%}
<a href="#attendee_form?id={{ studio.primary_contacts[0].attendee.id }}">{{ studio.primary_contacts[0].full_name }}</a>
{%- elif studio.primary_contacts -%}
{{ studio.primary_contacts[0].full_name }}
{%- endif %}
<br>
{{ studio.primary_contacts[0].cellphone_num }}
{%- endif %}
<a href="mailto:{{ studio.primary_contacts[0].email }}">{{ studio.primary_contacts[0].email }}</a>
{% if studio.primary_contacts[0].cellphone_num -%}
<br>
{{ studio.primary_contacts[0].cellphone_num }}
{% else %}
No primary contacts~
{%- endif %}
{% endif %}
</td>
<td>
{{ studio.website|url_to_link(is_relative=False) }}
Expand Down

0 comments on commit 958cff6

Please sign in to comment.