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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
|
{% extends "main/base.html" %}
{% block title %}Code Jams | Home{% endblock %}
{% block og_title %}Code Jams | Home{% endblock %}
{% block page_classes %}uses-rst{% endblock %}
{% block content %}
<div class="uk-section">
<div class="uk-container uk-container-small">
<article class="uk-article">
<div uk-grid class="uk-grid-large">
<div class="uk-width-expand">
<h1 class="uk-article-title">
Code Jams
</h1>
<p class="uk-article-meta">
We jammin'
</p>
<p>
Every three months or so, we aim to host a server-wide code jam, suitable for all members of the server. In
these, we announce a theme and date in advance, and users may sign up via a link provided in the
announcements channel on the server. Once the sign-up period is over, users are grouped into
teams. On the day of the code jam, we announce a task - each team will then work on a solution
to this task.
</p>
<p>
Once the code jam is over, our staff team will review and test each submission. Once that's done,
a winner will be decided!
</p>
<p>
If you'd like to join one of our code jams, feel free to ask a member of staff about the next one.
</p>
</div>
<figure class="jetbrains uk-width-1-4@l uk-width-1-4@m uk-width-1-1@s">
<h1 class="uk-article-title">
Sponsors
</h1>
<p class="uk-article-meta">
Our generous benefactors
</p>
<a href="https://jetbrains.com">
<img src="{{ static_file("images/jetbrains.png") }}" class="jam-image"/>
</a>
</figure>
</div>
<br />
<a href="{{ url_for("wiki.page", page="jams") }}" class="uk-button uk-button-secondary">
<i class="uk-icon fa-fw far fa-book"></i> Wiki
</a>
<a href="{{ url_for("wiki.page", page="jams") }}" class="uk-button uk-button-secondary">
<i class="uk-icon fa-fw far fa-list"></i> Rules & Guidelines
</a>
<a href="{{ url_for("main.jams.info") }}" class="uk-button uk-button-secondary">
<i class="uk-icon fa-fw far fa-code-branch"></i> Git Primer
</a>
{% if jams %}
{% for jam in jams %}
<h1 class="uk-article-title">
Code Jam {{ jam.number }}: {{ jam.title }}
<span class="uk-float-right">
{% if jam.state == "announced" %}
{% if has_applied_to_jam(jam) %}
<a class="uk-button uk-button-default uk-disabled" href="#">
<i class="uk-icon fa-fw far fa-check"></i> Applied
</a>
{% else %}
<a class="uk-button uk-button-primary" href="{{ url_for("main.jams.join", jam=jam.number) }}">
<i class="uk-icon fa-fw far fa-plus"></i> Join
</a>
{% endif %}
{% else %}
{% if jam.teams and jam.teams | length > 0 %}
<a class="uk-button uk-button-primary" href="{{ url_for('main.jams.jam_team_list', jam_id=jam.number) }}">
<i class="uk-icon fa-fw far fa-users"></i> Teams
</a>
{% endif %}
<a class="uk-button uk-button-default" target="_blank" href="{{ jam.repo }}">
<i class="uk-icon fa-fw fab fa-gitlab"></i>
</a>
{% endif %}
</span>
<p class="uk-article-meta">
State: {{ jam.state.title() }}
</p>
</h1>
<div class="uk-grid-match uk-grid-small uk-text-center uk-grid-gap-none uk-grid-collapse jam-tiles uk-margin-small-top" uk-grid>
<div class="uk-width-1-2@m uk-tile uk-tile-success uk-padding-small">
<p class="uk-h4 jam-tile-text">Start: {{ format_datetime(jam.date_start) }} UTC</p>
</div>
<div class="uk-width-1-2@m uk-tile uk-tile-danger uk-padding-small">
<p class="uk-h4 jam-tile-text">End: {{ format_datetime(jam.date_end) }} UTC</p>
</div>
{% if jam.participants %}
{% if jam.winning_team %}
<a href="{{ url_for('main.jams.jam_team_list', jam_id=jam.number) }}" class="uk-link-reset uk-width-1-2@m uk-tile uk-tile-primary uk-padding-small">
<p class="uk-h4 jam-tile-text">Participants: {{ jam.participants | length }}</p>
</a>
<a href="{{ url_for('main.jams.team_view', team_id=jam.winning_team.id) }}" class="uk-link-reset uk-width-1-2@m uk-tile uk-tile-winner uk-padding-small">
<p class="uk-h4 jam-tile-text">Champions: {{ jam.winning_team.name }}</p>
</a>
{% else %}
<a href="{{ url_for('main.jams.jam_team_list', jam_id=jam.number) }}" class="uk-link-reset uk-width-1-1@m uk-tile uk-tile-primary uk-padding-small">
<p class="uk-h4 jam-tile-text">Participants: {{ jam.participants | length }}</p>
</a>
{% endif %}
{% endif %}
</div>
<p>
{% if jam.state in ["running", "judging", "finished"] %}
<span class="uk-label uk-align-right theme-label">
Theme: {{ jam.theme }}
</span>
{% endif %}
<p>
</p>
{{ jam.info_html | safe }}
{% if jam.state in ["running", "judging", "finished"] %}
<br />
{{ jam.task_html | safe }}
{% endif %}
{% if jam.state == "finished" %}
<br />
{{ jam.end_html | safe }}
{% endif %}
{% endfor %}
{% else %}
<p>
Looking for our code jams? There's nothing here just yet!
</p>
{% endif %}
</article>
</div>
</div>
{% endblock %}
|