From 542e12296d67f5a5a5f75bd0a5d52edb73804945 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Tue, 17 Jan 2017 16:12:19 +0100 Subject: [PATCH 1/2] Tweaked the admin blog post show page --- app/Resources/views/admin/blog/show.html.twig | 29 ++++--------------- web/css/main.css | 4 +++ 2 files changed, 10 insertions(+), 23 deletions(-) diff --git a/app/Resources/views/admin/blog/show.html.twig b/app/Resources/views/admin/blog/show.html.twig index d69e83090..6ffaef00d 100644 --- a/app/Resources/views/admin/blog/show.html.twig +++ b/app/Resources/views/admin/blog/show.html.twig @@ -4,30 +4,13 @@ {% block main %}

{{ post.title }}

+

{{ post.publishedAt|localizeddate('long', 'medium', null, 'UTC') }}

- - - - - - - - - - - - - - - - - {# it's not mandatory to set the timezone in localizeddate(). This is done to - avoid errors when the 'intl' PHP extension is not available and the application - is forced to use the limited "intl polyfill", which only supports UTC and GMT #} - - - -
{{ 'label.summary'|trans }}{{ post.summary|md2html }}
{{ 'label.content'|trans }}{{ post.content|md2html }}
{{ 'label.author'|trans }}

{{ post.author.email }}

{{ 'label.published_at'|trans }}

{{ post.publishedAt|localizeddate('long', 'medium', null, 'UTC') }}

+
+

{{ 'label.summary'|trans }}: {{ post.summary }}

+
+ + {{ post.content|md2html }} {% endblock %} {% block sidebar %} diff --git a/web/css/main.css b/web/css/main.css index e217d19b5..739731cff 100644 --- a/web/css/main.css +++ b/web/css/main.css @@ -32,6 +32,10 @@ i { vertical-align: middle; } +/* Utilities + ------------------------------------------------------------------------- */ +.m-b-0 { margin-bottom: 0 } + /* Page elements ------------------------------------------------------------------------- */ body { From 96ade18dca5f9f97cc97f3390e6fc8bf0ffb785c Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 19 Jan 2017 11:24:29 +0100 Subject: [PATCH 2/2] Also display the author name in the post metadata --- app/Resources/views/admin/blog/show.html.twig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Resources/views/admin/blog/show.html.twig b/app/Resources/views/admin/blog/show.html.twig index 6ffaef00d..64d919dc7 100644 --- a/app/Resources/views/admin/blog/show.html.twig +++ b/app/Resources/views/admin/blog/show.html.twig @@ -4,7 +4,10 @@ {% block main %}

{{ post.title }}

-

{{ post.publishedAt|localizeddate('long', 'medium', null, 'UTC') }}

+

{{ 'label.summary'|trans }}: {{ post.summary }}