ir a la plantilla por defecto
This commit is contained in:
parent
f72f1670d9
commit
4235a373fb
1 changed files with 6 additions and 3 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue