mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 06:51:42 +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
|
||||
.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')
|
||||
|
|
Loading…
Reference in a new issue