account.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <div class="detail-meta">
  2. <span class="policy {{ account.policy_kind }}">{{ account.policy_kind }}</span>
  3. {% if account.floor %}
  4. <span class="muted">floor <span class="money neg">{{ account.floor.text }}</span></span>
  5. {% endif %}
  6. <span class="muted">version {{ account.version }}</span>
  7. {% if account.frozen %}<span class="flag frozen">frozen</span>{% endif %}
  8. {% if account.closed %}<span class="flag closed">closed</span>{% endif %}
  9. </div>
  10. <h3>Balances</h3>
  11. {% if account.balances %}
  12. <ul class="balance-list">
  13. {% for b in account.balances %}
  14. <li>
  15. <span class="asset-code">{{ b.code }}</span>
  16. <span class="money {% if b.money.negative %}neg{% else %}pos{% endif %}">{{ b.money.text }}</span>
  17. </li>
  18. {% endfor %}
  19. </ul>
  20. {% else %}
  21. <p class="muted">No balances.</p>
  22. {% endif %}
  23. <h3>Postings ({{ postings | length }})</h3>
  24. <table class="grid small">
  25. <thead>
  26. <tr>
  27. <th>Posting</th>
  28. <th>Status</th>
  29. <th class="right">Value</th>
  30. </tr>
  31. </thead>
  32. <tbody>
  33. {% for p in postings %}
  34. <tr>
  35. <td><code class="hash" title="{{ p.short_id }}">{{ p.short_id }}</code></td>
  36. <td><span class="status {{ p.status }}">{{ p.status }}</span></td>
  37. <td class="right">
  38. <span class="money {% if p.money.negative %}neg{% else %}pos{% endif %}">{{ p.money.text }}</span>
  39. </td>
  40. </tr>
  41. {% endfor %}
  42. </tbody>
  43. </table>
  44. <h3>Transfers ({{ transfers | length }})</h3>
  45. <div class="feed">
  46. {% for t in transfers %}
  47. <div class="feed-item compact">
  48. <div class="feed-head">
  49. <code class="hash" title="{{ t.full_id }}">{{ t.short_id }}</code>
  50. <span class="muted">{{ t.time }}</span>
  51. </div>
  52. <div class="legs">
  53. {% for leg in t.legs %}
  54. <div class="leg {% if leg.is_change %}change{% endif %}">
  55. <span class="leg-dir">{{ leg.to_name }}</span>
  56. <span class="money {% if leg.money.negative %}neg{% else %}pos{% endif %}">{{ leg.money.text }}</span>
  57. </div>
  58. {% endfor %}
  59. </div>
  60. </div>
  61. {% endfor %}
  62. </div>