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 .row
.col .col
.btn-group .btn-group
- if @site.templates.empty?
= link_to t('posts.new'), new_site_post_path(@site, lang: @lang), = link_to t('posts.new'), new_site_post_path(@site, lang: @lang),
class: 'btn btn-success' class: 'btn btn-success'
- unless @site.templates.empty? - 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' }, %button.btn.btn-success.dropdown-toggle.dropdown-toggle-split{data: { toggle: 'split' },
aria: { haspopup: 'true', expanded: 'false' }} aria: { haspopup: 'true', expanded: 'false' }}
%span.sr-only= t('posts.dropdown') %span.sr-only= t('posts.dropdown')