- def describe_location(lat, lon, zoom, language)
+ def if_not_logged_in(tag = :div, &block)
+ content_tag(tag, capture(&block), :class => "hide_if_logged_in")
+ end
+
+ def if_user(user, tag = :div, &block)
+ if user
+ content_tag(tag, capture(&block), :class => "hidden show_if_user_#{user.id}")
+ end
+ end
+
+ def unless_user(user, tag = :div, &block)
+ if user
+ content_tag(tag, capture(&block), :class => "hide_if_user_#{user.id}")
+ else
+ content_tag(tag, capture(&block))
+ end
+ end
+
+ def if_administrator(tag = :div, &block)
+ content_tag(tag, capture(&block), :class => "hide_unless_administrator")
+ end
+
+ def describe_location(lat, lon, zoom = nil, language = nil)