Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1615150
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Mar 21, 8:31 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Mon, Mar 23, 8:31 PM (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
353031
Attached To
rWEBDNS WebDNS (edet4)
View Options
diff --git a/app/helpers/flash_helper.rb b/app/helpers/flash_helper.rb
index 805d878..a1b2085 100644
--- a/app/helpers/flash_helper.rb
+++ b/app/helpers/flash_helper.rb
@@ -1,24 +1,26 @@
module FlashHelper
- def bootstrap_class_for(flash_type)
- {
- success: 'alert-success',
- error: 'alert-danger',
- alert: 'alert-warning',
- notice: 'alert-info'
- }.fetch(flash_type.to_sym, flash_type.to_s)
- end
-
def flash_messages
flash.each do |msg_type, message|
concat(
content_tag(:div, message, class: "alert #{bootstrap_class_for(msg_type)} fade in") do
concat content_tag(:button, 'x', class: 'close', data: { dismiss: 'alert' })
concat message
end
)
end
nil
end
+
+ private
+
+ def bootstrap_class_for(flash_type)
+ {
+ success: 'alert-success',
+ error: 'alert-danger',
+ alert: 'alert-warning',
+ notice: 'alert-info'
+ }.fetch(flash_type.to_sym, flash_type.to_s)
+ end
end
Event Timeline
Log In to Comment