Added angular to project. Trades are now listed on the homepage.

This commit is contained in:
Clinton Alexander 2016-06-15 12:11:31 +01:00
parent 1a73d417ee
commit 7cd8839a59
2 changed files with 27 additions and 25 deletions

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html ng-app="irsViewer">
<head>
<!-- Standard Meta -->
<meta charset="utf-8"/>
@ -8,12 +8,14 @@
<!-- Site Properties -->
<title>IRS Demo Viewer</title>
<link rel="stylesheet" type="text/css" href="./semantic/semantic.css">
<script src="./semantic/semantic.js"></script>
<link rel="stylesheet" type="text/css" href="semantic/semantic.css">
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="semantic/semantic.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="js/app.js"></script>
</head>
<body>
<body ng-controller="HomeController">
<div class="ui inverted menu">
<span class="header item"><a href="./">Home</a></span>
</div>
@ -52,12 +54,12 @@
</tr>
</thead>
<tbody>
<tr class="center aligned">
<td><a href="./deal.html">1</a></td>
<td class="single line"><a href="party.html">Big Bank</a></td>
<td class="single line">500 GBP</td>
<td class="single line"><a href="party.html">Little Bank</a></td>
<td class="single line">10 GBP</td>
<tr class="center aligned" ng-repeat="deal in deals">
<td><a href="./deal.html">{{deal.ref}}</a></td>
<td class="single line"><a href="party.html">{{deal.fixedLeg.fixedRatePayer}}</a></td>
<td class="single line">{{deal.fixedLeg.notional.quantity}} {{deal.fixedLeg.notional.token}}</td>
<td class="single line"><a href="party.html">{{deal.floatingLeg.floatingRatePayer}}</a></td>
<td class="single line">{{deal.floatingLeg.notional.quantity}} {{deal.floatingLeg.notional.token}}</td>
</tr>
</tbody>
</table>