mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-03 03:20:15 +01:00
add a cucumber test to simulate expiration of a session
Signed-off-by: Reinier Balt <lrbalt@gmail.com>
This commit is contained in:
parent
520e45fe6b
commit
7b3c07a754
5 changed files with 72 additions and 30 deletions
|
|
@ -1,9 +1,10 @@
|
|||
<% if @session_expired
|
||||
theHtml = content_tag(
|
||||
theHtml = escape_javascript(content_tag(
|
||||
:div,
|
||||
t('login.session_time_out', :link => link_to(t('login.log_in_again'), :controller => "login", :action => "login")),
|
||||
:"class" => "warning")
|
||||
:"class" => "warning"))
|
||||
logger.debug("theHtml='#{theHtml}'")
|
||||
-%>
|
||||
$('div#navcontainer').remove();
|
||||
$('div#navcontainer').hide();
|
||||
$('div#content').html('<%=theHtml%>');
|
||||
<% end -%>
|
||||
Loading…
Add table
Add a link
Reference in a new issue