commit
9b1ae9069e
2 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@ def webhook_text(order_item: Order) -> typing.Optional[str]:
|
||||||
if order_item.courrier is not None:
|
if order_item.courrier is not None:
|
||||||
# pylint: disable=C0301
|
# pylint: disable=C0301
|
||||||
return "<!channel|@channel> {3} is going to {1}, order <{0}|here>! Deadline in {2} minutes!".format(
|
return "<!channel|@channel> {3} is going to {1}, order <{0}|here>! Deadline in {2} minutes!".format(
|
||||||
url_for("order_bp.order", id=order_item.id, _external=True),
|
url_for("order_bp.order_from_id", order_id=order_item.id, _external=True),
|
||||||
order_item.location.name,
|
order_item.location.name,
|
||||||
remaining_minutes(order_item.stoptime),
|
remaining_minutes(order_item.stoptime),
|
||||||
order_item.courrier.username.title(),
|
order_item.courrier.username.title(),
|
||||||
|
@ -27,7 +27,7 @@ def webhook_text(order_item: Order) -> typing.Optional[str]:
|
||||||
return "<!channel|@channel> New order for {}. Deadline in {} minutes. <{}|Open here.>".format(
|
return "<!channel|@channel> New order for {}. Deadline in {} minutes. <{}|Open here.>".format(
|
||||||
order_item.location.name,
|
order_item.location.name,
|
||||||
remaining_minutes(order_item.stoptime),
|
remaining_minutes(order_item.stoptime),
|
||||||
url_for("order_bp.order", id=order_item.id, _external=True),
|
url_for("order_bp.order_from_id", order_id=order_item.id, _external=True),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<b>Orders:</b> {{ order.items.count() }}</p>
|
<b>Orders:</b> {{ order.items.count() }}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4 col-lg-3">
|
<div class="col-md-4 col-lg-3">
|
||||||
<a class="btn btn-primary btn-block align-bottom" href="{{ url_for('order_bp.order', order_id=order.id) }}">Expand</a>
|
<a class="btn btn-primary btn-block align-bottom" href="{{ url_for('order_bp.order_from_id', order_id=order.id) }}">Expand</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
|
Loading…
Reference in a new issue