mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-12 07:32:37 +01:00
9 lines
No EOL
425 B
Text
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 -%> |