tracks/app/views/login/check_expiry.js.rjs
2011-02-03 18:16:51 +01:00

9 lines
No EOL
347 B
Text

if @session_expired
page << "console.log('expired');"
page << "$('div#navcontainer').hide();"
page << "theHtml = \'<div class=\"warning\">" +
t('login.session_time_out', :link => link_to(
t('login.log_in_again'), :controller => "login", :action => "login"),
"class" => "warning")
page << "$('div#content').html(theHtml);"
end