5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 04:41:43 +00:00

abrir la version preliminar en otra pestaña

This commit is contained in:
f 2020-10-30 20:40:13 -03:00
parent f6d97beff4
commit c9e5cd382f
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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