Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 80869cf

Browse files
committed
Merge pull request #361 from appirio-tech/sup-1402-tc-site-new-nav
only open a few links externally when tc-site has new nav
2 parents 372cf06 + 37fd5ad commit 80869cf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/directives/header/header-menu-item.directive.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ li.submenu-item(ng-if="item.sref && !item.srefParams")
66

77
// external links
88
li.submenu-item(ng-if="item.href && !item.srefParams")
9-
a.menu-link(ng-click="$event.stopPropagation();" ng-href="{{item.href}}" ng-class="{ 'active': isActive() }" target="_blank")
9+
a.menu-link(ng-click="$event.stopPropagation();" ng-href="{{item.href}}" ng-class="{ 'active': isActive() }" target="{{ item.target ? item.target : '_self'}}")
1010
img.menu-icon(ng-src="{{item.icon}}")
1111
.menu-text {{item.text}}
1212

app/layout/header/header.controller.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{ 'href': "/challenges/design/active/", 'text': 'DESIGN CHALLENGES', 'icon': '/images/nav/design.svg' },
2222
{ 'href': "/challenges/develop/active", 'text': 'DEVELOPMENT CHALLENGES', 'icon': '/images/nav/development.svg' },
2323
{ 'href': "/challenges/data/active", 'text': 'DATA SCIENCE CHALLENGES', 'icon': '/images/nav/data-science.svg' },
24-
{ 'href': vm.constants.ARENA_URL, 'text': 'THE ARENA', 'icon': '/images/nav/srms.svg' },
24+
{ 'href': vm.constants.ARENA_URL, 'text': 'THE ARENA', 'icon': '/images/nav/srms.svg', 'target': '_blank' },
2525
],
2626
'learn': [
2727
{ 'href': '/community/design/', 'text': 'DESIGN', 'icon': '/images/nav/scroll-design.svg' },
@@ -32,7 +32,7 @@
3232
'community': [
3333
{ 'href': '/community/members/', 'text': 'MEMBERS', 'icon': '/images/nav/users.svg' },
3434
{ 'href': '/community/member-programs/', 'text': 'PROGRAMS', 'icon': '/images/nav/medal.svg' },
35-
{ 'href': vm.constants.FORUMS_APP_URL, 'text': 'FORUMS', 'icon': '/images/nav/forum.svg' },
35+
{ 'href': vm.constants.FORUMS_APP_URL, 'text': 'FORUMS', 'icon': '/images/nav/forum.svg', 'target': '_blank' },
3636
{ 'href': '/community/statistics/', 'text': 'STATISTICS', 'icon': '/images/nav/statistics.svg' },
3737
{ 'href': '/community/events/', 'text': 'EVENTS', 'icon': '/images/nav/calendar.svg' },
3838
{ 'href': '/blog/', 'text': 'BLOG', 'icon': '/images/nav/blog.svg' }
@@ -68,7 +68,7 @@
6868
vm.userMenu = [
6969
{ 'sref': 'dashboard', 'text': 'DASHBOARD', 'icon': '/images/nav/dashboard.svg' },
7070
{ 'sref': 'profile.about', 'srefParams': { 'userHandle': vm.userHandle }, 'text': 'MY PROFILE', 'icon': '/images/nav/badge.svg' },
71-
{ 'href': vm.constants.COMMUNITY_URL + '/PactsMemberServlet?module=PaymentHistory&full_list=false', 'text': 'PAYMENTS', 'icon': '/images/nav/money-bag.svg' },
71+
{ 'href': vm.constants.COMMUNITY_URL + '/PactsMemberServlet?module=PaymentHistory&full_list=false', 'text': 'PAYMENTS', 'icon': '/images/nav/money-bag.svg', 'target': '_blank' },
7272
{ 'sref': 'settings.profile', 'text': 'SETTINGS', 'icon': '/images/nav/gear.svg' },
7373
];
7474

0 commit comments

Comments
 (0)