Source

quacken / finquick / finquick / static / index.html

The default branch has multiple heads

Full commit
<!doctype html>
<html xmlns:ng="http://angularjs.org">
  <head>
    <title>My GnuCash Data</title>
    <meta charset="utf-8" />
    <style type="text/css">
      .money { text-align: right }
      .transactions th { border-bottom: 2px solid blue }
      .transactions .search td { border-bottom: 1px solid blue }
      .transactions .transaction tr:last-child td {
        border-bottom: 1px solid grey }
      }
      .BANK { font-style: bold; color: red }
    </style>
  </head>
  <body>
    <h1>Finance Fun</h1>

    <div ng:controller="AccountsCtrl">
      <h2>Accounts</h2>

      <table>
	<tr><th>Account Name</th><th>Type</th></tr>
	<tr ng:repeat="account in
		       children(root).$filter({'hidden': false}).$orderBy('name')">
	  <td>{{account.name}}</td><td>{{account.account_type}}</td>
	</tr>
      </table>
    </div>

    <div ng:controller="TransactionsCtrl">
      <h2>Transactions</h2>
      <table class="transactions">
	<thead>
	<tr>
	  <th>Date</th><th>Description / Memo</th>
	  <th>Account</th><th>Amount</th>
	  <th> </th>
	</tr>
	</thead>
	<tbody class="search">
	  <form ng:submit="search(q)">
	    <tr>
	      <td> </td>
	      <td><input name="q"/></td>
	      <td> </td>
	      <td> </td>
	      <td><input type='submit' value='Search' /></td>
	    </tr>
	  </form>
	</tbody>

	<tbody ng:repeat="tx in matches" class="transaction">
	  <tr class="transaction">
	    <td>{{tx.post_date.substring(0, 10) | date:'M/d/yyyy'}}</td>
	    <td>{{tx.description}}</td>
	  </tr>
	  <tr ng:repeat="d in tx.splits">
	    <td>&#160;</td>
	    <td>{{d.memo}}</td>
	    <td ng:class="d.account_type">{{d.account_name}}</td>
	    <td class="money">{{d.value_num / d.value_denom | currency }}</td>
	  </tr>
	</tbody>

      </table>
    </div>

    <script src="http://code.angularjs.org/angular-0.9.12.js" ng:autobind></script>
    <script src="fin.js" type="text/javascript"></script>
  </body>
</html>
<!--
cribbed from
http://docs.angularjs.org/#!/misc/downloading
-->