44live/templates/event.html

98 lines
3.6 KiB
HTML
Raw Normal View History

2025-03-06 00:33:46 -05:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
2025-04-04 00:14:43 -04:00
<meta property="og:site_name" content="44live">
2025-04-07 02:33:02 -04:00
<title>{{ data.event_name }}{{ " ("+data.event_title+")" if data.event_title }}</title>
2025-03-06 00:33:46 -05:00
{%- if data.event_text %}
{%- if data.event_text.append is defined %}
{%- for i in data.event_text %}
{%- if i.text_type_id == 1 %}
2025-04-07 02:33:02 -04:00
<meta name="description" content="{{ i.text }}">
2025-03-06 00:33:46 -05:00
{%- endif %}
{%- endfor %}
{%- elif data.event_text.text_type_id == 1 %}
2025-04-07 02:33:02 -04:00
<meta name="description" content="{{ data.event_text.text }}">
2025-03-06 00:33:46 -05:00
{%- endif %}
{%- endif %}
2025-04-04 00:14:43 -04:00
<meta name="viewport" content="width=device-width,initial-scale=1">
2025-04-07 02:33:02 -04:00
<link rel="icon" href="clock.svg" type="image/svg+xml">
2025-04-04 00:14:43 -04:00
<style>*{font-family:monospace;}</style>
2025-03-06 00:33:46 -05:00
</head>
<body>
<h1><a href="https://25live.collegenet.com/pro/louisville#!/home/event/{{ data.event_id }}/details">{{ data.event_name }}</a>{{ " ("+data.event_title+")" if data.event_title }}</h1>
<h2>
{%- if "Rsrv" in data.profile.profile_name %}
{%- if data.profile.reservation.append is defined %}
Start: {{ data.profile.reservation[0].event_start_dt }}<br>
Until: {{ data.profile.reservation[-1].event_end_dt }}
{%- else %}
Start: {{ data.profile.reservation.event_start_dt }}<br>
Until: {{ data.profile.reservation.event_end_dt }}
{%- endif %}
{%- else %}
{{ data.profile.profile_name }}
{%- endif %}
</h2>
{%- if data.profile.append is not defined %}
<h2>
{%- if data.profile.reservation.append is defined %}
{%- if data.profile.reservation[0].space_reservation.append is defined %}
{%- for space in data.profile.reservation[0].space_reservation %}
2025-04-07 02:33:02 -04:00
<a href="{{ space.space.space_id }}">{{ space.space.formal_name }}</a><br>
2025-03-06 00:33:46 -05:00
{%- endfor %}
{%- else %}
2025-04-07 02:33:02 -04:00
<a href="{{ data.profile.reservation[0].space_reservation.space_id }}">{{ data.profile.reservation[0].space_reservation.space.formal_name }}</a>
2025-03-06 00:33:46 -05:00
{%- endif %}
{%- else %}
{%- if data.profile.reservation.space_reservation.append is defined %}
{%- for space in data.profile.reservation.space_reservation %}
2025-04-07 02:33:02 -04:00
<a href="{{ space.space.space_id }}">{{ space.space.formal_name }}</a><br>
2025-03-06 00:33:46 -05:00
{%- endfor %}
{%- else %}
2025-04-07 02:33:02 -04:00
<a href="{{ data.profile.reservation.space_reservation.space_id }}">{{ data.profile.reservation.space_reservation.space.formal_name }}</a>
2025-03-06 00:33:46 -05:00
{%- endif %}
{%- endif %}
</h2>
{%- endif %}
{%- if data.event_text %}
<h2>Description</h2>
{%- if data.event_text.append is defined %}
{%- for i in data.event_text %}
{%- if i.text_type_id == 1 %}
<h3>{{ i.text | safe }}</h3>
{%- endif %}
{%- endfor %}
{%- elif data.event_text.text_type_id == 1 %}
<h3>{{ data.event_text.text | safe }}</h3>
{%- endif %}
{%- endif %}
<h2>Contact(s)</h2>
{%- for i in data.role %}
<h3>{{ i.role_name }}: {{ i.contact.contact_first_name }} {{ i.contact.contact_middle_name }} {{ i.contact.contact_last_name }}</h3>
{%- if i.contact.email %}
<p>Email: {{ i.contact.email }}</p>
{%- endif %}
{%- if i.contact.phone %}
<p>Phone: {{ i.contact.phone }}</p>
{%- endif %}
{%- if i.contact.formatted_address %}
<p>Address: {{ i.contact.formatted_address }}</p>
{%- endif %}
{%- endfor %}
{%- if data.custom_attribute %}
<h2>Custom Attribute(s)</h2>
{%- if data.custom_attribute.append is defined %}
{%- for i in data.custom_attribute %}
<h3>{{ i.attribute_name }}</h3>
<p>{{ i.attribute_value }}</p>
{%- endfor %}
{%- else %}
<h3>{{ data.custom_attribute.attribute_name }}</h3>
<p>{{ data.custom_attribute.attribute_value }}</p>
{%- endif %}
{%- endif %}
2025-04-04 00:14:43 -04:00
<h2>Last modified at {{ data.last_mod_dt }} by {{ data.last_mod_user }}</h2>
2025-03-06 00:33:46 -05:00
</body>
</html>