forked from madcowfred/evething
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathorders.html
More file actions
125 lines (121 loc) · 4.73 KB
/
Copy pathorders.html
File metadata and controls
125 lines (121 loc) · 4.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{% extends "base.html" %}
{% import 'macros/icons.html' as icons %}
{% block title %}Orders{% endblock %}
{% block extra_js %}
<script type="text/javascript">$(document).ready(EVEthing.orders.onload);</script>
{% endblock %}
{% block content %}
{% if char_orders %}
<div class="row-fluid">
<div class="span8">
<h2>Character Summary</h2>
<table class="table table-striped table-bordered table-condensed">
<thead>
<tr class="c">
<th>Character</th>
<th>Avail.</th>
<th>Total</th>
<th>Pers.</th>
<th>Corp.</th>
<th colspan="2">Sell Orders</th>
<th colspan="2">Buy Orders</th>
<th>Escrow</th>
</tr>
</thead>
<tbody>
{% for row in char_orders.values() %}
<tr class="r">
<td class="l">{{ row.name }}</td>
<td>{{ row.free_slots }}</td>
<td>{{ row.slots }}</td>
<td>{{ row.personal_orders }}</td>
<td>{{ row.corp_orders }}</td>
<td>{{ row.sell_orders }}</td>
<td class="pos">{{ row.total_sells|commas }}</td>
<td>{{ row.buy_orders }}</td>
<td class="neg">{{ row.total_buys|commas }}</td>
<td>{{ row.total_escrow|commas }}</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr class="r bold">
<td></td>
<td>{{ total_row.free_slots }}</td>
<td>{{ total_row.slots }}</td>
<td>{{ total_row.personal_orders }}</td>
<td>{{ total_row.corp_orders }}</td>
<td>{{ total_row.sell_orders }}</td>
<td class="pos">{{ total_row.total_sells|commas }}</td>
<td>{{ total_row.buy_orders }}</td>
<td class="neg">{{ total_row.total_buys|commas }}</td>
<td>{{ total_row.total_escrow|commas }}</td>
</tr>
</tfoot>
</table>
</div>
</div>
{% endif %}
<div class="row-fluid">
<div class="span12">
<h2>Active Orders</h2>
<table class="table table-striped table-bordered table-condensed">
<thead>
<tr class="c">
<th>Source</th>
<th>Station</th>
<th>Character</th>
<th>Item</th>
<th colspan="2">Units</th>
<th>Unit Price</th>
<th>Total Price</th>
<th>Escrow</th>
<th>Expires</th>
</tr>
</thead>
<tbody>
{% for order in orders %}
<tr>
<td>
{% if order.corp_wallet -%}
{{ icons.corporation() }}
[<span class="tip" rel="tooltip" title="{{ order.corp_wallet.corporation.name }}">{{ order.corp_wallet.corporation.ticker }}</span>]
{{ order.corp_wallet.description }}
{%- else -%}
{{ icons.player() }}
{{ order.character.name }}
{%- endif %}
</td>
<td>{{ order.station.short_name }}</td>
<td>
{% if order.z_creator_character -%}
{{ order.z_creator_character.name }}
{%- else -%}
Unknown ID: {{ order.creator_character_id }}
{%- endif %}
</td>
<td>
<a href="{{ url('thing.views.transactions') }}?ft=item&fc=eq&fv={{ order.item.name }}">{{ order.item.name }}</a>
</td>
<td class="r">{{ order.volume_remaining|humanize }}</td>
<td class="r">{{ order.volume_entered|humanize }}</td>
{% if order.buy_order %}
<td class="r"><span class="neg">{{ order.price|commas }}</span></td>
<td class="r"><span class="neg">{{ order.total_price|commas }}</span></td>
{% else %}
<td class="r"><span class="pos">{{ order.price|commas }}</span></td>
<td class="r"><span class="pos">{{ order.total_price|commas }}</span></td>
{% endif %}
<td class="r">{{ order.escrow|commas }}</td>
<td class="r">{{ order.z_remaining|shortduration }}</td>
</tr>
{% else %}
<tr>
<td colspan="10">No orders are currently active.</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endblock %}