/
summary_table.html
43 lines (43 loc) · 1.47 KB
/
summary_table.html
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
<div id="summary_table"><a name="summary_table"></a>
<table id="agency_table">
<thead>
<tr>
<th><a href="#" title="Click to Sort">Agency</a></th>
<th><a href="#" title="Click to Sort">Ideas</a></th>
<th><a href="#" title="Click to Sort">Votes</a></th>
<th><a href="#" title="Click to Sort">Comments</a></th>
<th><a href="#" title="Click to Sort">Idea Authors</a></th>
<th>Get Involved!</th>
</tr>
</thead>
<tbody>
{% for agency, stats in stats_by_agency.iteritems() %}
<tr>
<td>
<img src="{{ get_logo(agency) }}" class="table_logo">
<a href="{{ open_pages[agency] }}" title="Visit {{ display(agency) }}'s /open Page">{{ display(agency) }}</a>
</td>
<td class="table_num">{{ stats['ideas'] }}</td>
<td class="table_num">{{ stats['votes'] }}</td>
<td class="table_num">{{ stats['comments'] }}</td>
<td class="table_num">{{ len(stats['authors']) }}</td>
<td class="table_num">
<a href="{{ encode_tweet(agency, stats, days_to_go) }}"
class="table_link">
<img src="static/images/twitter.png" title="Tweet this"
class="agency_links">
<span class="table_small">Tweet This</span>
</a>
<a href="{{ ideascale_link[agency] }}"
class="table_link">
<img src="static/images/redirect.png" width="20"
title="Visit this agency's Ideascale Site"
height="20" class="agency_links">
<span class="table_small">Visit Idea Page</span>
</a>
</td>
</tr>
{% end %}
</tbody>
</table>
</div>