mirror of
https://github.com/internetee/registry.git
synced 2025-08-12 04:29:33 +02:00
Registrar layout flash works with epp now
This commit is contained in:
parent
9ebc809c66
commit
0623b16bdb
1 changed files with 8 additions and 9 deletions
|
@ -44,16 +44,15 @@
|
||||||
%li= link_to t('log_out', user: current_user), '/registrar/logout'
|
%li= link_to t('log_out', user: current_user), '/registrar/logout'
|
||||||
|
|
||||||
/ /.nav-collapse
|
/ /.nav-collapse
|
||||||
/ = yield :tabs
|
|
||||||
/ .container
|
|
||||||
/ = render 'depp/shared/flash'
|
|
||||||
/ = render 'depp/shared/epp_results'
|
|
||||||
/ = yield
|
|
||||||
.container
|
.container
|
||||||
- display = (flash.empty?) ? 'none' : 'block'
|
- if params[:controller].start_with?('depp/')
|
||||||
#flash{style: "display: #{display};"}
|
= render 'depp/shared/flash'
|
||||||
- type = (flash[:notice]) ? 'bg-success' : 'bg-danger'
|
= render 'depp/shared/epp_results'
|
||||||
.alert{class: type}= flash[:notice] || flash[:alert]
|
- else
|
||||||
|
- display = (flash.empty?) ? 'none' : 'block'
|
||||||
|
#flash{style: "display: #{display};"}
|
||||||
|
- type = (flash[:notice]) ? 'bg-success' : 'bg-danger'
|
||||||
|
.alert{class: type}= flash[:notice] || flash[:alert]
|
||||||
= yield
|
= yield
|
||||||
|
|
||||||
.footer.text-right
|
.footer.text-right
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue