2012-07-23 15:25:37 +01:00
|
|
|
- if current_user || APP_CONFIG['anonymous_access']
|
|
|
|
.flash_notify
|
2012-07-25 19:05:25 +01:00
|
|
|
- if (flash_notify = FlashNotify.published.first) && flash_notify.should_show?(cookies[:flash_notify_hash])
|
2014-01-21 04:51:49 +00:00
|
|
|
.alert{class: "alert-#{flash_notify.status}"}
|
2013-05-17 12:24:18 +01:00
|
|
|
= flash_notify.body(I18n.locale).html_safe
|
2014-01-21 04:51:49 +00:00
|
|
|
%a.close#close-alert{:'data-dismiss'=>"alert", href: "#"} ×
|
2012-07-23 15:25:37 +01:00
|
|
|
|
2012-07-25 19:05:25 +01:00
|
|
|
:javascript
|
|
|
|
var FLASH_HASH_ID = "#{flash_notify.hash_id}";
|