added new error message template

This commit is contained in:
Mario Colque 2014-01-31 16:35:51 -03:00
parent 6f879e1436
commit d73b29240f
9 changed files with 20 additions and 20 deletions

View File

@ -1,11 +1,4 @@
extends layouts/default
block content
.connection-status.container(data-ng-controller='ConnectionController')
.alert.alert-danger(data-ng-show='!serverOnline || !clienteOnline || !apiOnline', data-ng-init='getConnStatus()')
strong Error!
p(data-ng-show='!apiOnline') Can't connect to bitcoind.
p(data-ng-show='!serverOnline') Can't connect to server.
p(data-ng-show='!clienteOnline') Can't connect to internet. Please, check your connection.
section.container(data-ng-view)

View File

@ -20,11 +20,11 @@ angular.module('insight').config(function($routeProvider) {
title: 'Home'
}).
when('/blocks', {
templateUrl: '/views/blocks/list.html',
templateUrl: '/views/blocks_list.html',
title: 'Bitcoin Blocks solved Today'
}).
when('/blocks-date/:blockDate', {
templateUrl: '/views/blocks/list.html',
templateUrl: '/views/blocks_list.html',
title: 'Bitcoin Blocks solved '
}).
when('/address/:addrStr', {

View File

@ -1,3 +1,4 @@
<div data-ng-include src="'/views/includes/connection.html'"></div>
<div class="jumbotron">
<h1>Ooops!</h1>
<h2 class="text-muted">404 Page not found :(</h2>

View File

@ -1,3 +1,4 @@
<div data-ng-include src="'/views/includes/connection.html'"></div>
<section data-ng-controller="AddressController" data-ng-init="findOne()">
<div class="row">
<div class="col-xs-12 col-gray col-gray-fixed">

View File

@ -1,3 +1,4 @@
<div data-ng-include src="'/views/includes/connection.html'"></div>
<section data-ng-controller="BlocksController" data-ng-init="findOne()">
<div class="row">
<div class="col-xs-12 col-gray col-gray-fixed">

View File

@ -1,3 +1,4 @@
<div data-ng-include src="'/views/includes/connection.html'"></div>
<section data-ng-controller="BlocksController" data-ng-init="list()">
<div class="row">
<div class="col-xs-12 col-gray col-gray-fixed">

View File

@ -1,6 +1,7 @@
<div class="alert alert-danger" data-ng-show="flashMessage">
{{flashMessage}}
</div>
<div data-ng-include src="'/views/includes/connection.html'"></div>
<section data-ng-controller="IndexController" data-ng-init="index()">
<div class="container">
<div id="home" class="row">

View File

@ -1,3 +1,4 @@
<div data-ng-include src="'/views/includes/connection.html'"></div>
<section>
<div class="page-header">
<h1>
@ -42,7 +43,7 @@
<h2>Transaction Output Set Information</h2>
<table class="table" style="table-layout: fixed" data-ng-controller="StatusController" data-ng-init="getStatus('TxOutSetInfo')">
<thead data-ng-include src="'/views/infoStatus.html'"> </thead>
<thead data-ng-include src="'/views/includes/infoStatus.html'"> </thead>
<tbody>
<tr>
<td>Height</td>
@ -77,7 +78,7 @@
<h2>Last Block</h2>
<table class="table" style="table-layout: fixed" data-ng-controller="StatusController" data-ng-init="getStatus('LastBlockHash')">
<thead data-ng-include src="'/views/infoStatus.html'"> </thead>
<thead data-ng-include src="'/views/includes/infoStatus.html'"> </thead>
<tr>
<td>Last Block Hash</td>
<td class="text-right ellipsis"><a href="/block/{{lastblockhash}}">{{lastblockhash}}</a></td>
@ -89,7 +90,7 @@
<div class="col-xs-12 col-md-4 col-gray">
<h2>Bitcoin node information</h2>
<table class="table" data-ng-controller="StatusController" data-ng-init="getStatus('Info')">
<thead data-ng-include src="'/views/infoStatus.html'"> </thead>
<thead data-ng-include src="'/views/includes/infoStatus.html'"> </thead>
<tbody>
<tr>
<td>Version</td>
@ -144,7 +145,7 @@
<h4>Difficulty</h4>
<table class="table" data-ng-controller="StatusController" data-ng-init="getStatus('Difficulty')">
<thead data-ng-include src="'/views/infoStatus.html'"> </thead>
<thead data-ng-include src="'/views/includes/infoStatus.html'"> </thead>
<tbody
<tr>
<td>Mining Difficulty</td>

View File

@ -1,3 +1,4 @@
<div data-ng-include src="'/views/includes/connection.html'"></div>
<section data-ng-controller="transactionsController" data-ng-init="findThis()">
<h1>
Transaction