mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-27 03:02:43 -04:00
* 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
32 lines
878 B
Plaintext
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
|