revamp footer
This commit is contained in:
parent
81c18097a5
commit
6466ea9653
11 changed files with 44 additions and 12 deletions
13
app/views/layouts/_footer.html.haml
Normal file
13
app/views/layouts/_footer.html.haml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
- unless FoodsoftConfig[:page_footer].to_s == 'blank'
|
||||
%footer
|
||||
.pull-right
|
||||
= link_to_unless FoodsoftConfig[:foodsoft_url].blank?, I18n.t('layouts.foodsoft'), FoodsoftConfig[:foodsoft_url]
|
||||
- if Foodsoft::REVISION.blank?
|
||||
= "v#{Foodsoft::VERSION}"
|
||||
- else
|
||||
%abbr{title: t('.revision', revision: Foodsoft::REVISION)}= "v#{Foodsoft::VERSION}"
|
||||
%p
|
||||
- if (s = FoodsoftConfig[:page_footer]).blank?
|
||||
= link_to FoodsoftConfig[:name], FoodsoftConfig[:homepage]
|
||||
- else
|
||||
= raw s
|
||||
|
|
@ -48,6 +48,5 @@
|
|||
%h1= yield(:title)
|
||||
= yield
|
||||
|
||||
%footer
|
||||
%p= t '.footer'
|
||||
= render 'layouts/footer'
|
||||
#modalContainer.modal.hide.fade(tabindex="-1" role="dialog")
|
||||
|
|
|
|||
|
|
@ -8,5 +8,4 @@
|
|||
%h1= yield(:title)
|
||||
= yield
|
||||
|
||||
%footer
|
||||
%p= t '.footer'
|
||||
= render 'layouts/footer'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue