20 lines
455 B
Ruby
20 lines
455 B
Ruby
module ApplicationHelper
|
|
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
|
|
|
|
def flashes
|
|
flash.inject('') do |html, pair|
|
|
key, value = pair
|
|
content_tag 'p', value, :class => key
|
|
end
|
|
end
|
|
|
|
def login_path_with_return_to
|
|
login_path :return_to => request.request_uri
|
|
end
|
|
end
|