X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/blogbundle/blobdiff_plain/6cb4d37df4bd723af08140de8c2d6da88475e3f8..6fdb7d38ea6fae48333958e6995d750928338bf7:/Resources/views/article/index.html.twig diff --git a/Resources/views/article/index.html.twig b/Resources/views/article/index.html.twig new file mode 100644 index 0000000..817a4e0 --- /dev/null +++ b/Resources/views/article/index.html.twig @@ -0,0 +1,29 @@ +{% extends 'RapsysBlogBundle::body.html.twig' %} +{% block blog_title %}

{% trans %}Dev log{% endtrans %}

{% endblock %} +{% block content %} +
+

{% trans %}Articles list{% endtrans %}

+ {% for article in articles %} +
+
+

{{article.title}}

+

+ {% trans with {'%date%': article.created|localizeddate('full', 'short')} %}Published the %date%{% endtrans %}{% if article.created != article.updated %}{% trans with {'%date%': article.updated|localizeddate('short', 'short')} %}, edited the %date%{% endtrans %}{% endif %} + {% if article.keywords %} + + {% transchoice article.keywords|length %}{1} Keyword:|]1,Inf[ Keywords:{% endtranschoice %} + {% for slug, keyword in article.keywords %} + {{ keyword }} + {% endfor %} + + {% endif %} +

+
+

{{article.description}}

+ +
+ {% endfor %} +
+{% endblock %}