2012-07-23 15:25:37 +01:00
|
|
|
- if current_user || APP_CONFIG['anonymous_access']
|
|
|
|
.flash_notify
|
|
|
|
- flash_notify = FlashNotify.published.first
|
2012-07-25 13:41:06 +01:00
|
|
|
- if flash_notify && flash_notify.should_show?(cookies[:flash_notify_hash])
|
2012-07-23 15:25:37 +01:00
|
|
|
.alert{:class => "alert-#{flash_notify.status}"}
|
|
|
|
= flash_notify.body current_user.language
|
|
|
|
%a{:class=>"close", :'data-dismiss'=>"alert", :href=>"#", :id => 'close-alert'} ×
|
|
|
|
|
2012-07-25 13:41:06 +01:00
|
|
|
:javascript
|
|
|
|
var FLASH_HASH_ID = "#{flash_notify.hash_id}";
|
|
|
|
var FLASH_EXPIRES_AT = "#{Date.today + 1.year}";
|