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,21 +654,23 @@ end
unless Setting.find_by(name: 'home_content').try(:value)
setting = Setting.find_or_initialize_by(name: 'home_content')
setting.value = <<~HTML
<div class="m-sm">
<div id="news">#{I18n.t('app.admin.settings.item_news')}</div>
</div>
<div class="row wrapper">
<div class="col-lg-8">
<div id="projects">#{I18n.t('app.admin.settings.item_projects')}</div>
<div>
<div class="m-sm">
<div id="news">#{I18n.t('app.admin.settings.item_news')}</div>
</div>
<div class="col-lg-4 m-t-lg">
<div id="twitter">#{I18n.t('app.admin.settings.item_twitter')}</div>
<div id="members">#{I18n.t('app.admin.settings.item_members')}</div>
<div class="row wrapper">
<div class="col-lg-8">
<div id="projects">#{I18n.t('app.admin.settings.item_projects')}</div>
</div>
<div class="col-lg-4 m-t-lg">
<div id="twitter">#{I18n.t('app.admin.settings.item_twitter')}</div>
<div id="members">#{I18n.t('app.admin.settings.item_members')}</div>
</div>
</div>
</div>
<div class="row wrapper m-t-sm">
<div class="col-lg-12">
<div id="events">#{I18n.t('app.admin.settings.item_events')}</div>
<div class="row wrapper m-t-sm">
<div class="col-lg-12">
<div id="events">#{I18n.t('app.admin.settings.item_events')}</div>
</div>
</div>
</div>
HTML