Files
growstuff/app/views/layouts/application.html.haml
Mackenzie Morgan 32b98a7e40 Add support for Bootstrap alert types
* All alerts are currently shoved into either red (error) or green (success)
* Add support for yellow (warning) and blue (info) alert types

Solution from this Stack Overflow: http://stackoverflow.com/questions/31094771/rails-bootstrap-haml-how-to-convert-this-code-to-display-flash-messages-to
2016-05-30 21:48:11 -04:00

32 lines
878 B
Plaintext

!!! 5
%html(lang="en" prefix="og: http://ogp.me/ns#")
= render :partial => "layouts/meta"
%body
= render :partial => "layouts/header"
#maincontainer.container
.row
.col-md-12
- if content_for?(:title)
%h1#title
= yield(:title)
- if content_for?(:subtitle)
%small= yield(:subtitle)
- if content_for?(:buttonbar)
%p
.btn-group
= yield(:buttonbar)
= render :partial => "shared/flash_messages", flash: flash
= yield
%footer
= render :partial => "layouts/footer"
/
Javascripts
\==================================================
/ Placed at the end of the document so the pages load faster
= javascript_include_tag "application"
!= Growstuff::Application.config.analytics_code