whoops 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/app/helpers/events_helper.rb +2 -2
- data/app/views/events/_detail.html.haml +1 -1
- metadata +1 -1
@@ -2,7 +2,7 @@ module EventsHelper
|
|
2
2
|
def format_detail(detail)
|
3
3
|
case detail
|
4
4
|
when String, Numeric then detail
|
5
|
-
when Array then
|
5
|
+
when Array then "<ul>#{detail.collect{|d| "<li>- #{format_detail(d)}</li>" }.join}</ul>"
|
6
6
|
when Hash then detail_table(detail)
|
7
7
|
else
|
8
8
|
detail.to_s
|
@@ -12,7 +12,7 @@ module EventsHelper
|
|
12
12
|
def detail_table(detail)
|
13
13
|
render :partial => 'events/detail', :object => detail
|
14
14
|
end
|
15
|
-
|
15
|
+
|
16
16
|
def breadcrumbs(*groups)
|
17
17
|
breadcrumbs = ""
|
18
18
|
groups.each do |group|
|