From 7f12c9b4ad68a7cf6a9d826b249d4362b49b7a5e Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Thu, 4 Apr 2019 00:24:37 +0200 Subject: [PATCH] UI Pages: Hide title if there is an image. --- src/templates/nodes/custom/page/view_embed.pug | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/templates/nodes/custom/page/view_embed.pug b/src/templates/nodes/custom/page/view_embed.pug index 413a167e..88aa0cad 100644 --- a/src/templates/nodes/custom/page/view_embed.pug +++ b/src/templates/nodes/custom/page/view_embed.pug @@ -12,7 +12,7 @@ include ../../../mixins/components +nav-secondary-link( href="{{ url_for('nodes.edit', node_id=node._id) }}") i.pi-edit.pr-2 - span Edit Post + span Edit Page | {% endif %} | {% if node.picture %} @@ -22,8 +22,7 @@ include ../../../mixins/components null, "{{ node.picture.thumbnail('h', api=api) }}", "{{ node.url }}") -| {% endif %} - +| {% else %} .container.pt-5 .row .col-12.text-center @@ -31,6 +30,7 @@ include ../../../mixins/components | {{ node.name }} hr.pb-2 +| {% endif %} .container.pb-5 .row