The TPS UI home page and the status menu item been temporarily
removed. The home links will now redirect to the tokens page.

https://fedorahosted.org/pki/ticket/2261
https://fedorahosted.org/pki/ticket/2262

--
Endi S. Dewata
>From b5663fec3576a96475fcc8be3b67b909eef2de75 Mon Sep 17 00:00:00 2001
From: "Endi S. Dewata" <[email protected]>
Date: Fri, 15 Apr 2016 09:22:02 +0200
Subject: [PATCH] Fixed TPS UI navigation.

The TPS UI home page and the status menu item been temporarily
removed. The home links will now redirect to the tokens page.

https://fedorahosted.org/pki/ticket/2261
https://fedorahosted.org/pki/ticket/2262
---
 base/tps/shared/webapps/tps/ui/index.html | 21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)

diff --git a/base/tps/shared/webapps/tps/ui/index.html b/base/tps/shared/webapps/tps/ui/index.html
index 8c6092098b7e3e9c7f4225c8079a41913060da10..16867c19345169d856372278bd79d159741c8b5b 100644
--- a/base/tps/shared/webapps/tps/ui/index.html
+++ b/base/tps/shared/webapps/tps/ui/index.html
@@ -75,7 +75,7 @@ $(function() {
                 system_menu.hide();
             }
 
-            homePage.update();
+            // homePage.update();
         },
         error: function(jqXHR, textStatus, errorThrown) {
             window.location.href = "/tps";
@@ -85,14 +85,20 @@ $(function() {
     var content = $("#content");
 
     var router = new Backbone.Router();
-
+/*
     var homePage = new HomePage({
         el: content,
         url: "home.html"
     });
+*/
+    var tokensPage = new TokensPage({
+        el: content,
+        url: "tokens.html"
+    });
 
     router.route("", "home", function() {
-        homePage.open();
+        // homePage.open();
+        tokensPage.open();
     });
 
     router.route("activities", "activities", function() {
@@ -292,10 +298,7 @@ $(function() {
     });
 
     router.route("tokens", "tokens", function() {
-        new TokensPage({
-            el: content,
-            url: "tokens.html"
-        }).open();
+        tokensPage.open();
     });
 
     router.route("tokens/:id", "token", function(id) {
@@ -396,7 +399,9 @@ $(function() {
 </div>
 <div class="collapse navbar-collapse navbar-collapse-1">
     <ul class="nav navbar-nav navbar-utility">
+<!--
     <li name="status"><a href="#">Status</a></li>
+-->
     <li name="account" class="dropdown">
         <a href="#" class="dropdown-toggle" data-toggle="dropdown">
         <span class="pficon pficon-user"></span>
@@ -408,7 +413,9 @@ $(function() {
     </li>
     </ul>
     <ul class="nav navbar-nav navbar-primary">
+<!--
     <li name="home"><a href="#"><span class="glyphicon glyphicon-home"></span> Home</a></li>
+-->
     <li name="tokens"><a href="#tokens">Tokens</a></li>
     <li name="certs"><a href="#certs">Certificates</a></li>
     <li name="activities"><a href="#activities">Activities</a></li>
-- 
2.5.5

_______________________________________________
Pki-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pki-devel

Reply via email to