5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-05 15:15:44 +00:00

ir a la plantilla por defecto

This commit is contained in:
f 2018-10-02 17:13:31 -03:00
parent f72f1670d9
commit 4235a373fb
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7

View file

@ -10,9 +10,12 @@
.row
.col
.btn-group
= link_to t('posts.new'), new_site_post_path(@site, lang: @lang),
class: 'btn btn-success'
- unless @site.templates.empty?
- if @site.templates.empty?
= link_to t('posts.new'), new_site_post_path(@site, lang: @lang),
class: 'btn btn-success'
- else
= link_to t('posts.new'), new_site_post_path(@site, lang: @lang, template: @site.templates.first.id),
class: 'btn btn-success'
%button.btn.btn-success.dropdown-toggle.dropdown-toggle-split{data: { toggle: 'split' },
aria: { haspopup: 'true', expanded: 'false' }}
%span.sr-only= t('posts.dropdown')