1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00

fix homepage layout

This commit is contained in:
Sylvain 2020-01-22 14:16:35 +01:00
parent 0459eb93d2
commit 34a3286870
2 changed files with 15 additions and 18 deletions

View File

@ -636,8 +636,3 @@ body.container{
left: -4px;
}
}
.home-page {
@extend .wrapper;
}

View File

@ -654,6 +654,7 @@ end
unless Setting.find_by(name: 'home_content').try(:value)
setting = Setting.find_or_initialize_by(name: 'home_content')
setting.value = <<~HTML
<div>
<div class="m-sm">
<div id="news">#{I18n.t('app.admin.settings.item_news')}</div>
</div>
@ -671,6 +672,7 @@ unless Setting.find_by(name: 'home_content').try(:value)
<div id="events">#{I18n.t('app.admin.settings.item_events')}</div>
</div>
</div>
</div>
HTML
setting.save
end