impress/app/helpers/application_helper.rb

17 lines
365 B
Ruby
Raw Normal View History

2010-05-14 15:12:31 -07:00
module ApplicationHelper
2010-10-18 15:10:50 -07:00
def auth_server_icon_url
# TODO: if auth servers expand, don't hardcode path
URI::HTTP.build(
:host => Openneo::Auth.config.auth_server,
:path => '/favicon.png'
).to_s
end
2010-05-15 10:47:46 -07:00
def flashes
flash.inject('') do |html, pair|
key, value = pair
content_tag 'p', value, :class => key
end
end
2010-05-14 15:12:31 -07:00
end