This repository has been archived on 2019-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
basta-server/ofu_app/templates/food/daily_food.jinja

48 lines
2.2 KiB
Django/Jinja

{% extends 'food/food_wrapper.jinja' %}
{% import '/macros/food_macros.jinja' as macros %}
{% block headline %}
<h1 class="text-center">Food </h1>
<p class="text-center">Day: {{ day.strftime("%d.%m.%Y") }}</p>
{% endblock %}
{% block content %}
<div class="container">
<div class="row">
{{ macros.day_menu(title='Feki', location_menu=feki_menu, fail_text='Die Feki Mensa hat heute geschlossen.') }}
{{ macros.day_menu(title='Austraße', location_menu=austr_menu, fail_text='Die Austr Mensa hat heute geschlossen.') }}
</div>
<div class="row">
{{ macros.day_menu(title='Erba', location_menu=erba_cafete, fail_text='Aktuell gibt es keine warmen Speisen') }}
{{ macros.day_menu(title='Markusplatz', location_menu=markus_cafete, fail_text='Aktuell gibt es keine warmen Speisen') }}
</div>
<div class="row">
<div class="col p-2">
<div class="p-3 border border-dark rounded bg-light text-dark">
<h2>Happy Hours Guide von Feki.de</h2>
{% if happy_hours %}
<table class="table">
<thead class="thead-inverse">
<tr>
<th>Location</th>
<th>Time</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{% for happy_hour in happy_hours %}
<tr>
<td>{{ happy_hour.location }}</td>
<td>{{ happy_hour.starttime.strftime('%H:%M') }} - {{ happy_hour.endtime.strftime('%H:%M') }}</td>
<td>{{ happy_hour.description }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>Leider gibt es heute keine Happy Hours :(</p>
{% endif %}
</div>
</div>
</div>
</div>
{% endblock %}