1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
Blog/templates/comment/comments.html.twig

22 lines
943 B
Twig
Raw Permalink Normal View History

2021-01-16 16:04:30 +01:00
{% extends 'admin/base-admin.html.twig' %}
2021-01-16 19:32:42 +01:00
{% block title %}Administration - Comments{% endblock %}
2021-01-16 16:04:30 +01:00
{% block body %}
2021-01-16 19:32:42 +01:00
<div class="container-fluid">
{% for comment in comments %}
<div class="card text-center">
<div class="card-body">
<h5 class="card-title">{{ comment.Post.title }}: {{ comment.username }}</h5>
<p class="card-text">{{ comment.content }}</p>
<a href="{{ path('comment-remove', {id: comment.id}) }}" class="btn btn-danger">Delete</a>
{% if comment.valid == false %}
<a href="{{ path('comment-valid', {id: comment.id}) }}" class="btn btn-primary">Validate</a>
{% endif %}
</div>
<div class="card-footer text-muted">{{ comment.createdAt.format('Y-m-d H:i:s') }}</div>
</div>
{% endfor %}
</div>
2021-01-16 16:04:30 +01:00
{% endblock %}