From c9e5cd382fc681e8e4265c1946f463eb0d9128e2 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 30 Oct 2020 20:40:13 -0300 Subject: [PATCH] =?UTF-8?q?abrir=20la=20version=20preliminar=20en=20otra?= =?UTF-8?q?=20pesta=C3=B1a?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/posts/index.haml | 2 +- app/views/posts/show.haml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/posts/index.haml b/app/views/posts/index.haml index 1425a124..48c1d24a 100644 --- a/app/views/posts/index.haml +++ b/app/views/posts/index.haml @@ -20,7 +20,7 @@ = link_to t('sites.edit.btn', site: @site.title), edit_site_path(@site), class: 'btn' - if policy(@site).private? - = link_to t('sites.private'), '../private/' + @site.name, class: 'btn', target: '_blank' + = link_to t('sites.private'), '../private/' + @site.name, class: 'btn', target: '_blank', rel: 'noopener' = render 'sites/build', site: @site diff --git a/app/views/posts/show.haml b/app/views/posts/show.haml index 77b38d4d..52069a0d 100644 --- a/app/views/posts/show.haml +++ b/app/views/posts/show.haml @@ -13,7 +13,9 @@ class: 'btn btn-block' = link_to t('posts.preview'), site_post_preview_path(@site, @post.id), - class: 'btn btn-block' + class: 'btn btn-block', + target: '_blank', + rel: 'noopener' %table.table.table-condensed %thead