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
2017-10-03 14:10:06 +02:00

100 lines
4.1 KiB
Django/Jinja

{% extends 'base.jinja' %}
{% block headline %}
<h1 class="text-center">Essen an der OFU für {{ day }}</h1>
{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col p-2">
<div class="p-3 border border-dark rounded bg-light text-dark">
{% if feki_menu %}
<h2>{{ feki_menu.location }}</h2>
<p>{{ feki_menu.date }}</p>
{% for single_food in feki_menu.menu.all %}
<p>{{ single_food.name }}</p>
{% endfor %}
{% else %}
<p>Die Feki Mensa hat heute geschlossen :(</p>
{% endif %}
</div>
</div>
<div class="col p-2">
<div class="p-3 border border-dark rounded bg-light text-dark">
{% if austr_menu %}
<h2>{{ austr_menu.location }}</h2>
<p>{{ austr_menu.date }}</p>
{% for single_food in austr_menu.menu.all %}
<p>{{ single_food.name }}</p>
{% endfor %}
{% else %}
<p>Die Austr Mensa hat heute geschlossen :(</p>
{% endif %}
</div>
</div>
</div>
<div class="row">
<div class="col p-2">
<div class="p-3 border border-dark rounded bg-light text-dark">
{% if erba_cafete %}
<h2>{{ erba_cafete.location }}</h2>
<p>{{ erba_cafete.date }}</p>
{% for single_food in erba_cafete.menu.all %}
<p>{{ single_food.name }}</p>
{% endfor %}
{% else %}
<p>Ist heute Freitag?</p>
<p> Nein? Dann ist die Erba Cafete wohl heute geschlossen :(</p>
{% endif %}
</div>
</div>
<div class="col p-2">
<div class="p-3 border border-dark rounded bg-light text-dark">
{% if markus_cafete %}
<h2>{{ markus_cafete.location }}</h2>
<p>{{ markus_cafete.date }}</p>
{% for single_food in markus_cafete.menu.all %}
<p>{{ single_food.name }}</p>
{% endfor %}
{% else %}
<p>Ist heute Freitag?</p>
<p> Nein? Dann ist die Markus Cafete wohl heute geschlossen :(</p>
{% endif %}
</div>
</div>
</div>
<div class="row">
<div class="col p-2">
<div class="p-3 border border-dark rounded bg-light text-dark">
<h2>Happy Hour 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.time }}</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 %}