fix(templates): add some comments

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-12-08 16:12:51 -08:00
parent 061e828f16
commit c3d962a0d0
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -82,6 +82,12 @@
{% endif %} {% endif %}
{% if request.user.is_elevated() and not result.ClosedTS %} {% if request.user.is_elevated() and not result.ClosedTS %}
{#
If RequestType is an orphan and it's not yet due, it's locked
to allow the maintainer time to react to such a request.
On request, orphans are locked for two weeks.
#}
{% if result.RequestType.ID == 2 and not due %} {% if result.RequestType.ID == 2 and not due %}
{% set time_left = idle_time - time_delta %} {% set time_left = idle_time - time_delta %}
{% if time_left > 48 * 3600 %} {% if time_left > 48 * 3600 %}