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

10 lines
431 B
Plaintext
Raw Normal View History

2012-07-23 15:25:37 +01:00
- if current_user || APP_CONFIG['anonymous_access']
.flash_notify
- 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}"}
= 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
:javascript
var FLASH_HASH_ID = "#{flash_notify.hash_id}";