abrir la version preliminar en otra pestaña
This commit is contained in:
parent
f6d97beff4
commit
c9e5cd382f
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue