Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
Merge pull request #299 from blockchain/link-fix
Browse files Browse the repository at this point in the history
Link fix
  • Loading branch information
Sjors committed Feb 5, 2016
2 parents c790890 + c00fc96 commit b592761
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 18 deletions.
2 changes: 1 addition & 1 deletion app/partials/help.jade
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ div
.flex-start
a.button-muted.mtm(ui-sref="public.login-no-uid" translate="GO_BACK")
.flex-end
a.button-muted.mtm(href="https://zendesk.blockchain.com" translate="CONTACT_SUPPORT" target="_blank")
a.button-muted.mtm(href="https://blockchain.zendesk.com" translate="CONTACT_SUPPORT" target="_blank")
22 changes: 11 additions & 11 deletions app/partials/navigation.jade
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
ul.nav.navbar-nav.navbar-right(ng-show="status.isLoggedIn")
li.item(ng-show="settings.btcCurrency")
a.flex-important.flex-column(ng-click="openBCmarkets()")
span.type-sm
span
| 1 {{ settings.btcCurrency.code }} = 
fiat(btc="settings.btcCurrency.conversion")
li.dropdown.item.hidden-xs(uib-dropdown)
Expand All @@ -22,25 +22,25 @@
i.ti-angle-down.mlm
ul.uib-dropdown-menu(role='menu')
li
a(href="https://www.blockchain.info/", target="_blank", translate="HOME")
a(href="{{rootURL}}", translate="HOME")
li
a(href="https://www.blockchain.info/charts", target="_blank",translate="CHARTS")
a(href="{{rootURL}}charts", translate="CHARTS")
li
a(href="https://www.blockchain.info/stats", target="_blank",translate="STATS")
a(href="{{rootURL}}stats", translate="STATS")
li
a(href="https://markets.blockchain.info/", target="_blank", translate="MARKETS")
a(href="https://markets.blockchain.info/", translate="MARKETS")
li
a(href="https://www.blockchain.info/api", target="_blank", translate="API")
a(href="{{rootURL}}api", translate="API")
li.item.visible-xs
a(href="https://www.blockchain.info/", target="_blank", translate="HOME")
a(href="{{rootURL}}",, translate="HOME")
li.item.visible-xs
a(href="https://www.blockchain.info/charts", target="_blank",translate="CHARTS")
a(href="{{rootURL}}charts", translate="CHARTS")
li.item.visible-xs
a(href="https://www.blockchain.info/stats", target="_blank",translate="STATS")
a(href="{{rootURL}}stats", translate="STATS")
li.item.visible-xs
a(href="https://www.blockchain.info/api",target="_blank", translate="API")
a(href="{{rootURL}}api", translate="API")
li.item.visible-xs
a(href="https://markets.blockchain.info/", target="_blank",translate="MARKETS")
a(href="https://markets.blockchain.info/", translate="MARKETS")
li.item
a(ng-click="logout()", translate="SIGNOUT")
// /.nav-collapse
8 changes: 4 additions & 4 deletions app/templates/public-header.jade
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
.navbar-collapse.collapse(ng-class="{'in bg-blue' : !navCollapsed}", ng-click="navCollapsed=true")
ul.nav.navbar-nav.navbar-right
li.item
a.pam(href="https://www.blockchain.info", translate="HOME")
a.pam(href="{{rootURL}}", translate="HOME")
li.item
a.pam(href="https://www.blockchain.info/charts", translate="CHARTS")
a.pam(href="{{rootURL}}charts", translate="CHARTS")
li.item
a.pam(href="https://www.blockchain.info/stats", translate="STATS")
a.pam(href="{{rootURL}}stats", translate="STATS")
li.item
a.pam(href="https://markets.blockchain.info", translate="MARKETS")
li.item
a.pam(href="https://www.blockchain.info/api", translate="API")
a.pam(href="{{rootURL}}api", translate="API")
li.item.active
a.pam(href="#", translate="WALLET")
5 changes: 5 additions & 0 deletions assets/css/modules/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
background: #EBEBEB;
}
}
.dropdown {
.ti-angle-down {
float: right;
}
}
span.ti-angle-down { font-weight: 900; font-size: 1.5em; position: relative; top: 1px; }
.navbar-toggle { padding: 0; margin: 0 10px 0 20px; }
}
Expand Down
10 changes: 8 additions & 2 deletions assets/js/directives/public-header.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@ angular
.module('walletApp')
.directive('publicHeader', publicHeader);

function publicHeader() {
publicHeader.$inject = ['$rootScope']

function publicHeader($rootScope) {
const directive = {
restrict: "E",
replace: true,
templateUrl: 'templates/public-header.jade',
scope: {},
link: function() {}
link: link
};
return directive;

function link(scope, elem, attrs) {
scope.rootURL = $rootScope.rootURL;
}
}

0 comments on commit b592761

Please sign in to comment.