haldis/app/templates/home.html

39 lines
1.2 KiB
HTML
Raw Normal View History

2015-03-31 20:15:22 +02:00
{% extends "layout.html" -%}
{% set active_page = "home" -%}
{% import "utils.html" as util -%}
{% block container %}
2019-12-05 19:39:35 +01:00
<div class="row hi_im_haldis_wrapper">
<div class="jumbotron hi_im_haldis">
<h2>Hi, I'm Haldis</h2>
2019-12-05 19:39:35 +01:00
<h3>What would you like to <span class="home_sir">eat</span>?</h3>
2015-03-31 20:15:22 +02:00
</div>
</div>
<div class="row container">
2015-03-31 20:15:22 +02:00
<div class="col-sm-5">
2015-06-04 21:20:38 +02:00
{% 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() %}
2015-06-05 11:34:39 +02:00
To create an order, fill in the form <a href="{{ url_for("order_bp.orders") }}">here</a>.
2015-06-04 21:20:38 +02:00
{% else %}
Login to create an order, or ask someone else.
{% endif %}
{%- endif %}
2015-03-31 20:15:22 +02:00
</div>
<div class="col-sm-5 col-sm-push-2">
2015-06-19 20:44:58 +02:00
{% if recently_closed|count > 0 -%}
2015-06-04 21:20:38 +02:00
<h3>Recently closed orders:</h3>
{% for order in recently_closed %}
{{ util.render_order(order) }}
{% endfor %}
{%- endif %}
2015-03-31 20:15:22 +02:00
</div>
</div>
{% endblock %}