Added blog post view functionality

Signed-off-by: Gergely Polonkai <polesz@w00d5t0ck.info>
This commit is contained in:
Polonkai Gergely
2012-08-27 18:09:30 +02:00
parent 6747a48332
commit 764951f73c
4 changed files with 450 additions and 13 deletions

View File

@@ -0,0 +1,17 @@
{# vim: ft=htmljinja
#}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% block content %}
<h3>Blog</h3>
{% for post in posts %}
<h4>{{ post.title }}</h4>
{{ post.createdAt|date('Y-m-d H:i') }}<br />
{% if not post.published %}
inaktív<br />
{% endif %}
{{ post.content }}
<hr />
{% else %}
Nincs bejegyzés.
{% endfor %}
{% endblock %}