From 64bde9f6ee49d79fac5ce042c74b08f069a9b389 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Sat, 19 May 2018 16:15:28 +0100 Subject: [Jams] Some amount of public display, but links not ready yet --- templates/main/jams/index.html | 122 +++++++++++++++++++--------------- templates/staff/jams/edit_ending.html | 2 +- templates/staff/jams/edit_info.html | 2 +- 3 files changed, 72 insertions(+), 54 deletions(-) (limited to 'templates') diff --git a/templates/main/jams/index.html b/templates/main/jams/index.html index 18a19003..a5d2a5d0 100644 --- a/templates/main/jams/index.html +++ b/templates/main/jams/index.html @@ -7,12 +7,8 @@
-

+

Code Jams - - - -

- +
-

- Rules and Guidelines +
+ +  Wiki + + +  Rules & Guidelines + + +  Git Primer + + + {% if jams %} + {% for jam in jams %} +

+ Code Jam {{ jam.number }}: {{ jam.title }} + + {% if jam.state == "announced" %} + +  Join + + {% else %} + +  Repository + + {% endif %} + + +

+ +

+ {% if jam.participants %} + + {{ jam.participants | length }} participants + + {% endif %} + + {{ format_datetime(jam.date_start) }} UTC + + + + + + + + {{ format_datetime(jam.date_end) }} UTC + +

+ +

+ + {{ jam.info_html | safe }} + + {% if jam.state in ["running", "judging", "finished"] %} +
- - - - - -

- In order to keep things fair and on-topic, the following rules must be adhered to. Failure to - follow these rules will result in disqualification. -

-
    -
  • - Projects must be strongly Python-oriented. + {{ jam.task_html | safe }} + {% endif %} -
      -
    • You may mix in other languages, but the project must be Python-based.
    • -
    -
  • -
  • You may not write any code in advance.
  • -
  • You may not write any code after the deadline.
  • -
  • The work must be your own - don't copy another team's work.
  • -
-

- Additionally, the following suggestions could be helpful for all teams. -

-
    -
  • All team members should contribute to the project in some way. Work together!
  • -
  • Open your pull request early - that way, you know it'll be there by the deadline.
  • -
  • Lint your code - we lint each pull request using Flake8, and your code should validate.
  • -
  • Communicate with your teammates - Add them as a friend, start a group DM, and work together on the problem.
  • -
+ {% if jam.state == "finished" %} +
-

- Further Reading + {{ jam.end_html | safe }} + {% endif %} - - - -

- -

- We're currently working on some better documentation for our code jams. In the meantime, you can always - read over our old Getting Started guide. -

+ {% endfor %} + {% else %} +

+ Looking for our code jams? There's nothing here just yet! +

+ {% endif %}
diff --git a/templates/staff/jams/edit_ending.html b/templates/staff/jams/edit_ending.html index cc27a208..600ad6fc 100644 --- a/templates/staff/jams/edit_ending.html +++ b/templates/staff/jams/edit_ending.html @@ -19,7 +19,7 @@
{{ jam.end_rst }}
- + diff --git a/templates/staff/jams/edit_info.html b/templates/staff/jams/edit_info.html index 0dd2ff1b..31ee3168 100644 --- a/templates/staff/jams/edit_info.html +++ b/templates/staff/jams/edit_info.html @@ -34,7 +34,7 @@