{% extends "_donut.html" %} {% from "components/alert.html" import alert %} {% block pageHead %} {{ super() }} {% endblock %} {% block header %} {{ super() }} {% endblock %} {% block main %}

{{title}}

{% if revision %}

{{config.actions.approve|capitalize}} :: {{revision.identifier}}

{# Warnings #} {# Cancel Sunset #} {% if time.sunset.live.unix and not time.sunset.unix %} {{ alert('approve', 'warning', 'Approving this revision will remove the current sunset')}} {% endif %} {# Change Sunset #} {% if time.sunset.unix != time.sunset.live.unix and time.sunset.live.unix != 0 and time.sunset.unix != 0 %} {{ alert('approve', 'warning', 'Approving this revision will change the current sunset from ' + time.sunset.live.human.date + ' ' + time.sunset.live.human.time + ' - ' + time.sunset.live.human.zone + ' to ' + time.sunset.human.date + ' ' + time.sunset.human.time + ' - ' + time.sunset.human.zone)}} {% endif %} {# Immediate Sunset #} {% if time.sunset.unix <= time.now and time.sunset.unix != 0 %} {{ alert('approve', 'warning', 'Approving this revision will immediately sunset this content')}} {% endif %} {# Sunrise That Which Will Be Sunset #} {% if (time.sunset.live.unix and time.sunrise.unix > time.sunset.live.unix) or (time.sunset.unix and time.sunrise.unix > time.sunset.unix) %} {{ alert('approve', 'warning', 'Approving this revision will sunrise this content after it is scheduled to sunset')}} {% endif %} {# Immediate Sunset #} {% if time.sunrise.unix <= time %} {{ alert('approve', 'warning', 'Approving this revision will immediately sunrise it')}} {% endif %} {# Sunrise Override #} {% if scheduled.length > 0 %} {% set rvs = '' %} {% if scheduled.length == 1 %} {% set rvs = 'revision ' %} {% else %} {% set rvs = 'revisions ' %} {% endif %} {% for item in scheduled %} {% if not loop.first %} {% set rvs = rvs + ', ' %} {% endif %} {% set rvs = rvs + item.revision %} {% endfor %} {{ alert('approve', 'warning', 'Approving this revision will override scheduled ' + rvs)}} {% endif %} {# Attribtues #} {% if data %}
{% for attr, inputs in data %}

{{attr|capitalize}}

{% if inputs.length %} {# repeatable content #} {% for rpt in inputs %} {% for input, value in rpt %} {% if loop.first %}
{% endif %}
{{input}}
{{value.value}}
{% if loop.last %}
{% endif %} {% endfor %} {% endfor %} {% else %} {% for input, value in inputs %}
{{input}}
{{value.value}}
{% endfor %} {% endif %} {% endfor %} {# Sunrise/Sunset #}

Sunrise/Sunset

{% if time.sunrise.human %}
Sunrise
{{time.sunrise.human.date}} {{time.sunrise.human.time}} - {{time.sunrise.human.zone}}
{% endif %} {% if time.sunset.human %}
Sunset
{{time.sunset.human.date}} {{time.sunset.human.time}} - {{time.sunset.human.zone}}
{% endif %}
{% endif %} {% include "content/_form-approval.html" %} {% if revision.audit.entries %}

Previous Comments

{% for e in revision.audit.entries %} {% endfor %}
Person Action Step Comment Date
{{e.author.email}} {{e.action}} {{e.step}} {{e.comment}} {{e.created.date}}
{% endif %} {% endif %} {% endblock %} {% block footer %} {{ super() }} {% endblock %}