44live/templates/space.html

62 lines
1.9 KiB
HTML
Raw Normal View History

2025-03-06 00:33:46 -05:00
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ data.space_name }}</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta content="44live" property="og:site_name">
<meta content="{{ data.space_name }}{{ " ("+data.building_name+")" if data.building_name }}" property="og:title">
<meta content='https://44live.stevenalexander.org/location.svg' property='og:image'>
<link rel="icon" type="image/x-icon" href="/location.svg">
<style>
* {
font-family: monospace;
}
b {
white-space: pre-wrap;
}
img {
max-width:100%;
}
footer {
display: flex;
background-color: lightblue;
padding: 5px;
justify-content: center;
}
</style>
</head>
<body>
<h1><a href="https://25live.collegenet.com/pro/louisville#!/home/location/{{ data.space_id }}/availability/daily">{{ data.space_name }}</a>{{ " ("+data.building_name+")" if data.building_name }}</h1>
<h2>Hours</h2>
<h3>
{%- for i in data.hours %}
{{ i.day_name[:3] }}: {{ i.open }} - {{ i.close }}<br>
{%- endfor %}
</h3>
{% if data.instructions %}
<h2>Instructions</h2>
<h3>{{ data.instructions|safe }}</h3>
{% endif %}
{%- if data.comments %}
<h2>Comments</h2>
<h3>{{ data.comments|safe }}</h3>
{%- endif %}
<h2>Layout(s)</h2>
{%- if data.layout %}
{%- if data.layout.append is defined %}
{%- for i in data.layout %}
{%- if i.layout_photo_id %}
<h3>{{ i.layout_name }} ({{ i.layout_capacity }} capacity)</h3>
<img src="https://25live.collegenet.com/25live/data/louisville/run/image?image_id={{ i.layout_photo_id }}">
{%- endif %}
{%- endfor %}
{%- elif data.layout.layout_photo_id %}
<h3>{{ data.layout.layout_name }} ({{ data.layout.layout_capacity }} capacity)</h3>
<img src="https://25live.collegenet.com/25live/data/louisville/run/image?image_id={{ data.layout.layout_photo_id }}">
{%- endif %}
{%- endif %}
<footer>Last modified at {{ data.last_mod_dt }} by {{ data.last_mod_user }}</footer>
</body>
</html>