This commit is contained in:
chiu 2020-05-08 11:13:21 +08:00
parent 99d63dbaed
commit 043c59f22f
1 changed files with 1 additions and 1 deletions

View File

@ -2,6 +2,6 @@ module SsoLoginBox::LoginTag
def self.show def self.show
url_for_sso = File.read("#{ENV['PWD']}/sso_url.txt").force_encoding('utf-8').gsub(/\n/,'') url_for_sso = File.read("#{ENV['PWD']}/sso_url.txt").force_encoding('utf-8').gsub(/\n/,'')
"<div style=\"text-align: right;\" class=\"pull-right\"> "<div style=\"text-align: right;\" class=\"pull-right\">
<a style=\"border: 0.1em solid;padding: 0.5em;\" href=\"#{url_for_sso}\">#{t('nccu_lib_login')}</a></div>" <a style=\"border: 0.1em solid;padding: 0.5em;\" href=\"#{url_for_sso}\">#{I18n.t('nccu_lib_login')}</a></div>"
end end
end end