diff --git a/README.md b/README.md index 716baca..eaf4f12 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,6 @@ Or clone from GitHub and put in the `user/plugins/comments` folder. # TODO -- Validate comment, name and email on the frontend form - Add language file for the frontend - Allow to moderate comments from the admin - Email the comment to the site admins (default to all with admin.super, could be configured) diff --git a/admin/templates/comments.html.twig b/admin/templates/comments.html.twig index 103cb60..8a54619 100644 --- a/admin/templates/comments.html.twig +++ b/admin/templates/comments.html.twig @@ -26,61 +26,75 @@ .pages-list .row p.page-route { margin: 0px 0 10px 0px; } + + th { background: #d9d9d9; } + + .comment { flex: 3 } + .details { flex: 1.5 } + + .center { + margin: 0 auto; + text-align: center; + display: block; + } + + .button:active { margin: 0 auto;} +
{% if file.data.hasUnread %}Has {{file.data.unreadCount}} unread comments{% else %}{{file.data.comments|length}} comments{% endif %}
- - - -Author | +Comment | +Details | +
---|---|---|
{{comment.author}} | +{{comment.text}} | +Page: {{comment.pageTitle}} + Date: {{comment.date}} |
+
Showing {{grav.twig.comments.totalRetrieved}} comments of {{grav.twig.comments.totalAvailable}}