impress/app/helpers/application_helper.rb

21 lines
455 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-10-18 15:17:08 -07:00
def login_path_with_return_to
login_path :return_to => request.request_uri
end
2010-05-14 15:12:31 -07:00
end