diff --git a/app/assets/javascripts/timeoutPopup.js b/app/assets/javascripts/timeoutPopup.js index c52d4d462..af9a9d1cb 100644 --- a/app/assets/javascripts/timeoutPopup.js +++ b/app/assets/javascripts/timeoutPopup.js @@ -10,9 +10,7 @@ var difference = timeTillSessionEnd - now; var minutes = Math.floor((difference % (1000 * 60 * 60)) / (1000 * 60)); var seconds = Math.floor((difference % (1000 * 60)) / 1000); - document.getElementById("timerWarning").innerHTML = "You have been inactive " + - "for too long. Please choose to stay signed in or sign out. Your session will " + - "expire in " + minutes + "m " + seconds + "s "; + document.getElementById("timeLeft").innerHTML = + minutes + "m " + seconds + "s"; showTimer(); document.getElementById("logOutTimer").addEventListener("click", logoutByUser); document.getElementById("extendSessionTimer").addEventListener("click", extendSession); diff --git a/app/templates/admin_template.html b/app/templates/admin_template.html index b3c6eb36b..86a9847c3 100644 --- a/app/templates/admin_template.html +++ b/app/templates/admin_template.html @@ -184,47 +184,6 @@ {% endblock %} {% block footer %} - {% if current_user.is_authenticated %} - {% block sessionUserWarning %} - - - - - Your session will end soon. - - - - - - - - - - - - - - - - {% endblock %} - {% endif %} {% if current_service and current_service.research_mode %} {% set meta_suffix = 'Built by the Technology Transformation Servicesresearch mode' %} @@ -303,13 +262,53 @@ "html": meta_suffix } }) }} + + {% if current_user.is_authenticated %} + {% block sessionUserWarning %} + + + + + Your session will end soon. + Please choose to extend your session or sign out. Your session will expire in 5 minutes or less. + + + You have been inactive for too long. + Your session will expire in . + + + + + + + {% endblock %} + {% endif %} + {% endblock %} + {% block bodyEnd %} {% block extra_javascripts %} {% endblock %} - + + {% endblock %} + +
-
You have been inactive for too long. + Your session will expire in . +