Merge pull request #79 from colkito/feature/404-redirect

Feature/404 redirect
This commit is contained in:
Gustavo Maximiliano Cortez 2014-01-17 12:13:07 -08:00
commit c8adefddd9
3 changed files with 10 additions and 5 deletions

View File

@ -26,7 +26,7 @@ angular.module('insight').config(['$routeProvider',
templateUrl: 'views/status.html'
}).
otherwise({
redirectTo: '/'
templateUrl: 'views/404.html'
});
}
]);

5
public/views/404.html Normal file
View File

@ -0,0 +1,5 @@
<div class="jumbotron">
<h1>Ooops!</h1>
<h2 class="text-muted">Page not found :(</h2>
<p><a href="/" class="pull-right">Go to home</a></p>
</div>

View File

@ -15,15 +15,15 @@
</tr>
<tr>
<td>Total Received</td>
<td>{{address.totalReceivedSat / 100000000}} BTC</td>
<td>{{address.totalReceived}} BTC</td>
</tr>
<tr>
<td>Total Sent</td>
<td>{{address.totalSentSat / 100000000}} BTC</td>
<td>{{address.totalSent}} BTC</td>
</tr>
<tr>
<td>Final Balance</td>
<td>{{address.balanceSat / 100000000}} BTC</td>
<td>{{address.balance}} BTC</td>
</tr>
<tr>
<td>No. Transactions</td>
@ -38,7 +38,7 @@
</div>
</div>
<div data-ng-controller="transactionsController" data-ng-init="byAddress(params.addrStr)">
<div data-ng-controller="transactionsController" data-ng-init="byAddress(params.addrStr)">
<h2>Transactions <small>Transactions contained within this block</small></h2>
<div data-ng-include src="'/views/transaction/list.html'"></div>
</div>