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

Commit

Permalink
fix(Testnet): use testnet-warning component
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Dec 12, 2017
1 parent 79bc205 commit 7719cfc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 0 additions & 2 deletions app/landing.pug
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#landing-page(scroller pos-y="posY" elem-id="landing-page")
public-header(i18n-loaded='i18nLoaded' pos-y="posY")
.testnet-banner.f-16.center.bg-red.pv-5.width-100(ng-show="network === 'testnet'")
span.white WARNING! This is the testnet3 blockchain. Your coins have no value here.
.banner(data-preflight-tag="LandingPage")
.flex-column.height-100.flex-center.flex-justify.container
div.width-100
Expand Down
4 changes: 1 addition & 3 deletions app/partials/public.pug
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
.login-pg(ng-class="{'display-block': isUIOverflow}")
include ./bc-logo-header
.testnet-banner.f-16.center.bg-red.pv-5.width-100(ng-show="network === 'testnet'")
span.white WARNING! This is the testnet3 blockchain. Your coins have no value here.
testnet-warning
.overflow-scroll.flex-justify.flex-center
.flex-center.flex-justify.flex-column
.flex.flex-justify
.alert-in-app
alerts
.login-box.mhs(ui-view="contents")
include ./bc-logo-footer
testnet-warning
4 changes: 4 additions & 0 deletions assets/css/modules/_signin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ div.login-form {
height: 100%;
position: relative;
background-color: $blue;
testnet-warning {
top: 100px;
position: relative;
}
nav {
position: fixed;
width: 100%;
Expand Down
1 change: 0 additions & 1 deletion assets/js/sharedDirectives/public-header.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ function publicHeader ($rootScope, $location, $window, AngularHelper, Env, langu
function link (scope, elem, attrs) {
Env.then(env => {
scope.rootURL = env.rootURL;
scope.isTestnet = env.network === 'testnet';
});

scope.$watch(languages.get, (code) => {
Expand Down
2 changes: 1 addition & 1 deletion locales/en-human.json
Original file line number Diff line number Diff line change
Expand Up @@ -1879,7 +1879,7 @@
"link": "Link Payment"
},
"HERE": "here",
"TESTNET_WARNING": "Warning! This is a Testnet wallet. Your coins have no value here.",
"TESTNET_WARNING": "WARNING! This is the testnet3 blockchain. Your coins have no value here.",
"YOUR_BALANCES": "Your Balances",
"PRICE_CHARTS": "Price Charts",
"WELCOME_TO_ETHER": "Welcome to ether!",
Expand Down

0 comments on commit 7719cfc

Please sign in to comment.