UNPKG

punchcard-cms

Version:
56 lines (47 loc) 1.68 kB
{% extends "_donut.html" %} {% block pageHead %} {{ super() }} {% endblock %} {% block header %} {{ super() }} {% endblock %} {% block main %} <h1 class="base--h1">{{title}}</h1> <h2 class="base--h2">Revisions</h2> {% if content %} <table class="base--table"> <thead class="base--thead"> <tr class="base--tr"> <th class="base--th">revision</th> <th class="base--th">date</th> <th class="base--th">{{config.base}}</th> <th class="base--th" colspan="2">Actions</th> </tr> </thead> <tbody class="base--tbody"> {% for c in content %} {% if c.value %} <tr class="base--tr"> <td data-th="Revision" class="base--td">{{c.revision}}</td> <td data-th="date" class="base--td">{{c.created}}</td> <td data-th="{{config.base}}" class="base--td">{{c.identifier}}</td> <td data-th="Actions" class="base--td"><a href="/{{config.base}}/{{type.id}}/{{c.id}}/{{c.revision}}/{{config.actions.edit}}" class="base--link">{{config.actions.edit|capitalize}}</a></td> {% if c.approval != 0 %} {% if c.publishable %} <td data-th="" class="base--td"><a href="/{{config.base}}/{{type.id}}/{{c.id}}/{{c.revision}}/{{config.actions.approve}}" class="base--link">{{workflow[c.approval].name}}</a></td> {% else %} <td class="base--td" data-th="">Incomplete</td> {% endif %} {% else %} <td class="base--td" data-th="">Approved</td> {% endif %} </tr> {% endif %} {% endfor %} </tbody> </table> {% endif %} {% endblock %} {% block footer %} {{ super() }} {% endblock %}