rosa-build/app/views/layouts/_notifies.html.haml

11 lines
481 B
Plaintext

- if current_user || APP_CONFIG['anonymous_access']
.flash_notify
- if (flash_notify = FlashNotify.published.first) && flash_notify.should_show?(cookies[:flash_notify_hash])
.alert{:class => "alert-#{flash_notify.status}"}
= flash_notify.body I18n.locale
%a.close#close-alert{:'data-dismiss'=>"alert", :href=>"#"} ×
:javascript
var FLASH_HASH_ID = "#{flash_notify.hash_id}";
var FLASH_EXPIRES_AT = "#{Date.today + 1.year}";