mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 17:01:44 +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'
|
||||
|
||||
/ /.nav-collapse
|
||||
/ = yield :tabs
|
||||
/ .container
|
||||
/ = render 'depp/shared/flash'
|
||||
/ = render 'depp/shared/epp_results'
|
||||
/ = yield
|
||||
.container
|
||||
- display = (flash.empty?) ? 'none' : 'block'
|
||||
#flash{style: "display: #{display};"}
|
||||
- type = (flash[:notice]) ? 'bg-success' : 'bg-danger'
|
||||
.alert{class: type}= flash[:notice] || flash[:alert]
|
||||
- if params[:controller].start_with?('depp/')
|
||||
= render 'depp/shared/flash'
|
||||
= render 'depp/shared/epp_results'
|
||||
- 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
|
||||
|
||||
.footer.text-right
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue