mirror of
https://github.com/internetee/registry.git
synced 2025-08-11 20:19:34 +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,12 +44,11 @@
|
||||||
%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
|
||||||
|
- if params[:controller].start_with?('depp/')
|
||||||
|
= render 'depp/shared/flash'
|
||||||
|
= render 'depp/shared/epp_results'
|
||||||
|
- else
|
||||||
- display = (flash.empty?) ? 'none' : 'block'
|
- display = (flash.empty?) ? 'none' : 'block'
|
||||||
#flash{style: "display: #{display};"}
|
#flash{style: "display: #{display};"}
|
||||||
- type = (flash[:notice]) ? 'bg-success' : 'bg-danger'
|
- type = (flash[:notice]) ? 'bg-success' : 'bg-danger'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue