grav-plugin-comments/admin/templates/comments.html.twig

42 lines
1.4 KiB
Twig
Raw Normal View History

2015-09-13 18:32:44 +00:00
{% extends 'partials/base.html.twig' %}
{% if admin.route %}
{% set context = admin.page(true) %}
{% endif %}
{% block titlebar %}
2015-09-14 12:48:17 +00:00
<h1><i class="fa fa-fw fa-file-text-o"></i> {{ "PLUGIN_COMMENTS.COMMENTS"|tu }}</h1>
2015-09-13 18:32:44 +00:00
{% endblock %}
{% block content %}
<div class="page-data">
2015-09-14 12:48:17 +00:00
<div class="gpm gpm-themes">
<h1>
{{"PLUGIN_COMMENTS.COMMENTS"|e|tu}}
</h1>
<table>
{% for file in grav.twig.files %}
<tr data-gpm-plugin="#">
<td class="gpm-name">
<!-- <i class="fa fa-fw fa-{{ plugin.icon }}"></i> -->
{{ file.fileName }}
{% if file.data.hasUnread %}<span class="gpm-version">Has {{file.data.unreadCount}} unread comments</span>{% endif %}
</td>
<td class="gpm-actions">
<span class="gpm-details-expand"><i class="fa fa-chevron-down"></i></span>
</td>
<td class="gpm-details">
<div class="table-wrapper">
{% include 'partials/comments-list.html.twig' with { file: file } %}
</div>
</td>
</tr>
{% endfor %}
</table>
2015-09-14 12:48:17 +00:00
</div>
2015-09-13 18:32:44 +00:00
</div>
{% endblock %}