forked from govhackaustralia/govhackaustralia.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprizes.html
124 lines (114 loc) · 4.48 KB
/
prizes.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
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
---
layout: bootstrap
title: Prizes
---
<!-- Main Content -->
<!--<section id="portfolio">
<div class="container">
<div class="row">
<h3 class="section-subheading text-muted">Browse prizes for your state...</h3>
{% include jurisdictions_bar.bs.html section="prizes" %}
</div>
</div>
</section>-->
<!-- Prizes Section -->
<section id="portfolio">
<div class="container">
<div class="row header-row">
<div class="col-lg-12 text-center">
<h1 data-toc-skip>Prizes</h1>
</div>
</div>
<div class="row">
{% if site.cfg.prizes_active == false %}
<p>Prizes aren't released until GovHack begins at <strong>7pm, Friday the 29th July 2016</strong>, at your local event.</p>
{% endif %}
</div>
</div>
</section>
{% if site.cfg.prizes_active == true %}
<!-- International Prizes Section -->
<section>
<div class="container">
<div class="row header-row">
<div class="col-lg-12 text-center">
<h2>International Prizes</h2>
</div>
</div>
<div class="row">
{% assign international_prizes = site.prizes | where: "jurisdiction", "international" %}
{% include prize_cards.bs.html prizes=international_prizes %}
</div>
</div>
</section>
<!-- Major Category Section -->
<section>
<div class="container">
<div class="row header-row">
<div class="col-lg-12 text-center">
<h2>Major Category Prizes</h2>
</div>
</div>
<div class="row">
{% assign major_cat_prizes = site.prizes | where: "jurisdiction", "australia" %}
{% include prize_cards.bs.html prizes=major_cat_prizes %}
</div>
</div>
</section>
<!-- Bounty Section -->
<section>
<div class="container">
<div class="row header-row">
<div class="col-lg-12 text-center">
<h2>Bounty Prizes</h2>
</div>
</div>
<div class="row">
{% assign bounty_prizes = site.prizes | where: "jurisdiction", "australia" | where: "type", "bounty" %}
{% include prize_cards.bs.html prizes=bounty_prizes %}
</div>
</div>
</section>
<!-- State Section -->
<section>
<div class="container">
<div class="row header-row">
<div class="col-lg-12 text-center">
<h2>State Prizes</h2>
Checkout the prizes for your local area!
</div>
</div>
<div class="row">
{% for jurisdiction in site.jurisdictions %}
{% unless jurisdiction.gid == "international" or jurisdiction.gid == "australia" or jurisdiction.gid == "nz" or jurisdiction.gid == "nt" %}
{% comment %}
<a href="{{ jurisdiction.url }}#prizes">{{ jurisdiction.name }}</a>
<br>
{% endcomment %}
<div class="row dataset-org">
<h3 class="dataset-category"><a href="{{ jurisdiction.url }}">{{ jurisdiction.name }}</a></h3>
{% assign events = site.locations | where: "jurisdiction", jurisdiction.gid %}
{% assign jurisdiction_prizes = site.prizes | where: "jurisdiction", jurisdiction.gid %}
{% for event in events %}
{% assign local_prize_ids = "" %}
{% for prize in jurisdiction_prizes %}
{% if prize.events contains event.gid %}
{% assign local_prize_ids = local_prize_ids | append: prize.gid %}
{% assign local_prize_ids = local_prize_ids | append: "," %}
{% endif %}
{% endfor %}
{% if local_prize_ids != "" %}
<div class="row dataset-org">
<h4><a href="{{ event.url }}">{{ event.name }}</a></h4>
{% assign local_prize_ids_list = local_prize_ids | lstrip | split: "," %}
{% include prize_cards.bs.html prize_ids=local_prize_ids_list %}
</div>
{% endif %}
{% endfor %}
</div>
{% endunless %}
{% endfor %}
</div>
</div>
</section>
{% endif %}