From 84638410da872e8e9f1ebacd3c72860f33f15ebb 2011-12-14 00:13:34 From: Stefan van der Walt Date: 2011-12-14 00:13:34 Subject: [PATCH] Redirect to front page upon read-only logout. --- diff --git a/IPython/frontend/html/notebook/templates/logout.html b/IPython/frontend/html/notebook/templates/logout.html index f3c7b53..9513dac 100644 --- a/IPython/frontend/html/notebook/templates/logout.html +++ b/IPython/frontend/html/notebook/templates/logout.html @@ -1,5 +1,9 @@ {% extends layout.html %} {% block content_panel %} -Proceed to the login page. + {% if current_user and current_user != 'anonymous' %} + Proceed to the front page. + {% else %} + Proceed to the login page. + {% end %} {% end %}