summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/ui/shared
diff options
context:
space:
mode:
Diffstat (limited to 'testapi/opnfv_testapi/ui/shared')
-rw-r--r--testapi/opnfv_testapi/ui/shared/header/header.html25
-rw-r--r--testapi/opnfv_testapi/ui/shared/header/headerController.js10
2 files changed, 1 insertions, 34 deletions
diff --git a/testapi/opnfv_testapi/ui/shared/header/header.html b/testapi/opnfv_testapi/ui/shared/header/header.html
index 4b3f8dd..d0501a2 100644
--- a/testapi/opnfv_testapi/ui/shared/header/header.html
+++ b/testapi/opnfv_testapi/ui/shared/header/header.html
@@ -18,33 +18,10 @@ TestAPI
<li ng-class="{ active: header.isActive('/')}"><a ui-sref="home">Home</a></li>
<li ng-class="{ active: header.isActive('/about')}"><a ui-sref="about">About</a></li>
<li ng-class="{ active: header.isActive('/pods')}"><a ui-sref="pods">Pods</a></li>
- <li ng-class="{ active: header.isActive('/community_results')}"><a ui-sref="communityResults">Community Results</a></li>
<li ng-class="{ active: header.isActive('/projects')}"><a ui-sref="projects">Projects</a></li>
- <!--
- <li ng-class="{ active: header.isCatalogActive('public')}" class="dropdown" uib-dropdown>
- <a role="button" class="dropdown-toggle" uib-dropdown-toggle>
- Catalog <strong class="caret"></strong>
- </a>
- <ul class="dropdown-menu">
- <li><a ui-sref="publicVendors">Vendors</a></li>
- <li><a ui-sref="publicProducts">Products</a></li>
- </ul>
- </li>
- -->
+ <li ng-class="{ active: header.isActive('/results')}"><a ui-sref="results">Results</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
- <li ng-class="{ active: header.isActive('/user_results')}" ng-if="auth.isAuthenticated"><a ui-sref="userResults">My Results</a></li>
- <!--
- <li ng-if="auth.isAuthenticated" ng-class="{ active: header.isCatalogActive('user')}" class="dropdown" uib-dropdown>
- <a role="button" class="dropdown-toggle" uib-dropdown-toggle>
- My Catalog <strong class="caret"></strong>
- </a>
- <ul class="dropdown-menu">
- <li><a ui-sref="userVendors">My Vendors</a></li>
- <li><a ui-sref="userProducts">My Products</a></li>
- </ul>
- </li>
- -->
<li ng-class="{ active: header.isActive('/profile')}" ng-if="auth.isAuthenticated"><a ui-sref="profile">Profile</a></li>
<li ng-if="auth.isAuthenticated"><a href="" ng-click="auth.doSignOut()">Sign Out</a></li>
<li ng-if="!auth.isAuthenticated"><a href="" ng-click="auth.doSignIn()">Sign In / Sign Up</a></li>
diff --git a/testapi/opnfv_testapi/ui/shared/header/headerController.js b/testapi/opnfv_testapi/ui/shared/header/headerController.js
index 0a14a41..c998255 100644
--- a/testapi/opnfv_testapi/ui/shared/header/headerController.js
+++ b/testapi/opnfv_testapi/ui/shared/header/headerController.js
@@ -30,7 +30,6 @@
var ctrl = this;
ctrl.isActive = isActive;
- ctrl.isCatalogActive = isCatalogActive;
/** Whether the Navbar is collapsed for small displays. */
ctrl.navbarCollapsed = true;
@@ -50,14 +49,5 @@
}
return false;
}
-
- /** This determines the active state for the catalog dropdown. Type
- * parameter should be passed in to specify if the catalog is the
- * public or user one.
- */
- function isCatalogActive(type) {
- return ctrl.isActive('/' + type + '_vendors')
- || ctrl.isActive('/' + type + '_products');
- }
}
})();