mirror of
https://0xacab.org/sutty/sutty
synced 2024-10-06 12:56:56 +00:00
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
|
||||||
= link_to t('posts.new'), new_site_post_path(@site, lang: @lang),
|
- if @site.templates.empty?
|
||||||
class: 'btn btn-success'
|
= link_to t('posts.new'), new_site_post_path(@site, lang: @lang),
|
||||||
- unless @site.templates.empty?
|
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' },
|
%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