diff --git a/templates/content/_buttons.html.twig b/templates/content/_buttons.html.twig index 9ec32b24..70f9d198 100644 --- a/templates/content/_buttons.html.twig +++ b/templates/content/_buttons.html.twig @@ -5,37 +5,27 @@ {{ macro.button('action.save', 'fa-save', 'success', {'type': 'submit', 'form': 'editcontent'}) }} {% if record.id %} -
+
- {{ macro.button( - 'action.preview', - 'fa-external-link-square-alt', - 'primary', - { 'type': 'submit', - 'form': 'editcontent', - 'formtarget': '_blank', - 'formaction': path('bolt_content_edit_preview', {'id': record.id }) - }) - }} + {{ macro.button( + 'action.preview', + 'fa-external-link-square-alt', + 'primary', + { 'type': 'submit', + 'form': 'editcontent', + 'formtarget': '_blank', + 'formaction': path('bolt_content_edit_preview', {'id': record.id }) + }) }} - {% if record.status == "published" %} - - + + {% if record.status == "published" %} +
+ View live
+ {{ record|link(true)|trim('https://', side='left') }} +
+ {% endif %} + {% endif %} - -
-{% endif %}