parent
d8b499fe4f
commit
8d6dd69f38
@ -0,0 +1,5 @@ |
||||
class SessionController < ActionController::Base |
||||
def logout_warning |
||||
|
||||
end |
||||
end |
@ -0,0 +1,14 @@ |
||||
// window.parent == OpenProject window |
||||
var $ = window.parent.jQuery |
||||
|
||||
$.ajax({ |
||||
url: "/session/logout_warning", |
||||
cache: false, |
||||
success: function(html) { |
||||
$("#logout-warning").remove(); |
||||
$(html).prependTo("body").hide().slideDown(); |
||||
$('html, body').animate({ |
||||
scrollTop: $("#logout-warning").offset().top |
||||
}, 1000); |
||||
} |
||||
}); |
@ -0,0 +1,6 @@ |
||||
<div id="logout-warning" class="top-shelf icon icon-warning"> |
||||
<h1><%= t('title.warning') %></h1> |
||||
<p> |
||||
<%= t('logout_warning') %> |
||||
</p> |
||||
</div> |
@ -0,0 +1,4 @@ |
||||
de: |
||||
logout_warning: > |
||||
Sie wurden ausgeloggt. Inhalte von Formularen, die sie abschicken möchten, |
||||
können verloren gehen. Bitte loggen Sie sich wieder ein. |
@ -0,0 +1,4 @@ |
||||
en: |
||||
logout_warning: > |
||||
You have been logged out. The contents of any form you submit may be lost. |
||||
Please log in. |
Loading…
Reference in new issue