tracks/app/views/login/check_expiry.js.erb
Reinier Balt 3c72148eb1 fix #1167
2011-05-08 15:04:26 +02:00

9 lines
No EOL
425 B
Text

<% if @session_expired
theLink = link_to(t('login.log_in_again'), :controller => "login", :action => "login")
message = I18n.t('login.session_time_out', :link => theLink)
theHtml = escape_javascript(content_tag(:div, message, :"class" => "warning"))
-%>
$('div#navcontainer').hide();
$('div#content').html('<%=theHtml%>');
refresh_page(); // refresh the page. if it fails, the message above remains
<% end -%>