Commit d80fa9f0 authored by azul's avatar azul

cleanup: more ui helper functions

parent 0c9bc87f
......@@ -215,21 +215,4 @@ module Common::Ui::LayoutHelper
def comma_join(*args)
args.select(&:present?).join(', ')
end
##
## declare strings used for logins
##
def login_context
@login_context ||= {
strings: {
login: I18n.t(:login),
username: I18n.t(:username),
password: I18n.t(:password),
forgot_password: I18n.t(:forgot_password_link),
create_account: I18n.t(:signup_link),
redirect: params[:redirect] || request.request_uri,
token: form_authenticity_token
}
}
end
end
......@@ -27,12 +27,4 @@ module Wikis::VersionsHelper
"<span class='btn btn-default disabled icon right_16 right'>#{:previous.t}</span>".html_safe
end
end
def version_user_link(version)
if version.user
link_to_user(version.user)
else
''
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment