upd: move logout button to toplevel
authorFelix Dörre <felix@dogcraft.de>
Mon, 18 Jul 2016 21:48:01 +0000 (23:48 +0200)
committerFelix Dörre <felix@dogcraft.de>
Fri, 22 Jul 2016 13:01:53 +0000 (15:01 +0200)
Change-Id: I689d5ed6d537779b29849a7898bb54d832311450

src/org/cacert/gigi/Gigi.java
src/org/cacert/gigi/Gigi.templ

index e55f97a..41e504f 100644 (file)
@@ -155,7 +155,6 @@ public final class Gigi extends HttpServlet {
 
             putPage(SupportUserDetailsPage.PATH + "*", new SupportUserDetailsPage(), null);
             putPage(ChangePasswordPage.PATH, new ChangePasswordPage(), "My Account");
-            putPage(LogoutPage.PATH, new LogoutPage(), "My Account");
             putPage(History.PATH, new History(false), "My Account");
             putPage(FindAgentAccess.PATH, new OneFormPage("Access to Find Agent", FindAgentAccess.class) {
 
@@ -170,6 +169,7 @@ public final class Gigi extends HttpServlet {
             putPage(UserTrainings.SUPPORT_PATH, new UserTrainings(true), null);
 
             putPage(PasswordResetPage.PATH, new PasswordResetPage(), null);
+            putPage(LogoutPage.PATH, new LogoutPage(), null);
 
             if (testing) {
                 try {
index a163c7d..9884721 100644 (file)
@@ -36,8 +36,9 @@
       <ul class="nav navbar-nav">
         <?=$menu?>
       </ul>
-      <ul class="nav navbra-nav navbar-right">
-      <li><p class="navbar-text"><? if($authContext) { ?><?=$authContext?><? } ?></p></li>
+      <ul class="nav navbar-nav navbar-right">
+      <? if($authContext) { ?><li><p class="navbar-text"><?=$authContext?></p></li><? } ?>
+      <? if($authContext) { ?><li><span class="btn-group"><a href="/logout" class="btn btn-primary">Logout</a></span></li><? } ?>
       </ul>
     </div><!-- /.navbar-collapse -->
   </div><!-- /.container-fluid -->