diff options
author | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2016-09-29 18:54:45 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2016-10-01 00:21:37 +0300 |
commit | a2af7790045e22bef15d922e6feae85479b917bc (patch) | |
tree | 366197a440f07d3be9ef267013623dfc07e45ec1 /app/views/layouts | |
parent | 502c53b5fe52d7378a72f2363d39c6ed02108261 (diff) |
Add flash containers and broadcast messages below subnav
Diffstat (limited to 'app/views/layouts')
-rw-r--r-- | app/views/layouts/_flash.html.haml | 6 | ||||
-rw-r--r-- | app/views/layouts/_page.html.haml | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/app/views/layouts/_flash.html.haml b/app/views/layouts/_flash.html.haml index 3612f1ce5c6..baa8036de10 100644 --- a/app/views/layouts/_flash.html.haml +++ b/app/views/layouts/_flash.html.haml @@ -1,8 +1,10 @@ .flash-container.flash-container-page - if alert .flash-alert - = alert + %div{ class: (container_class) } + %span= alert - elsif notice .flash-notice - = notice + %div{ class: (container_class) } + %span= notice diff --git a/app/views/layouts/_page.html.haml b/app/views/layouts/_page.html.haml index 4f7839a881f..3950b4f53e7 100644 --- a/app/views/layouts/_page.html.haml +++ b/app/views/layouts/_page.html.haml @@ -20,6 +20,7 @@ .container-fluid = render "layouts/nav/#{nav}" .content-wrapper{ class: "#{layout_nav_class}" } + = yield :sub_nav = render "layouts/broadcast" = render "layouts/flash" = yield :flash_message |