/
constituency.tt
38 lines (38 loc) · 2.07 KB
/
constituency.tt
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
[% WRAPPER page.tt
title = c.name
page = 'constituency' -%]
<div class="container">
<h1>[% c.name %]</h1>
<div class="row">
<div class="col-sm-8">
<a class="twitter-timeline" href="https://twitter.com/TwittElection/lists/[% c.list_name %]" data-widget-id="464129893937082368" data-list-owner-screen-name="TwittElection" data-list-slug="[% c.list_name %]">Tweets from https://twitter.com/TwittElection/lists/[% c.list_name %]</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
<div class="col-sm-4">
<p>This page contains details of the candidates for the
[% c.name %] constituency in the December 2019 UK general
election.</p>
[% IF c.tweeting_candidates.size -%]
<b>Tweeting Candidates</b>
<ul>
[% FOREACH cand IN c.tweeting_candidates -%]
<li>[% cand.name %] (<a href="/p/[% cand.party.slugname %].html">[% cand.party.name %]</a>)<br><a href="https://twitter.com/[% cand.twitter %]">@[% cand.twitter %]</a>[% IF cand.twitter_problem == 104 %] <b><i>(protected account)</i></b>[% END %][% IF cand.twitter_problem == 106 %] <b><i>(blocks @twittelection)</i></b>[% END %]</li>
[% END -%]
</ul>
[% END -%]
[% IF c.non_tweeting_candidates.size -%]
<b>Non-Tweeting Candidates</b>
<ul>
[% FOREACH cand IN c.non_tweeting_candidates -%]
<li>[% cand.name %] ([% cand.party.name %])</li>
[% END -%]
</ul>
[% END -%]
<b>Corrections</b>
<p><small>If you wish to make any corrections to this list, please see the
<a href="[% c.demclub_url %]">[% c.name %] page</a> on <a href="https://candidates.democracyclub.org.uk/">Democracy Club</a>.</small></p>
[% INSERT widgets.tt -%]
</div>
</div>
</div>
[% END -%]