haldis/app/templates/home.html
2015-06-04 21:20:38 +02:00

38 lines
1.1 KiB
HTML

{% extends "layout.html" -%}
{% set active_page = "home" -%}
{% import "utils.html" as util -%}
{% block container %}
<div class="row">
<div class="jumbotron">
<h2>Hi, I'm Haldis</h2>
<h3>What would you like to eat, sir?</h3>
</div>
</div>
<div class="row">
<div class="col-sm-5">
{% if orders|count > 0 -%}
<h3>Open orders:</h3>
{% for order in orders %}
{{ util.render_order(order) }}
{% endfor %}
{% else %}
<h4>No orders available.</h4>
{% if not current_user.is_anonymous() %}
To create an order, fill in the form on the right.
{% else %}
Login to create an order, or ask someone else.
{% endif %}
{%- endif %}
</div>
<div class="col-sm-5 col-sm-push-2">
{% if orders|count > 0 -%}
<h3>Recently closed orders:</h3>
{% for order in recently_closed %}
{{ util.render_order(order) }}
{% endfor %}
{%- endif %}
</div>
</div>
{% endblock %}