diff options
author | 2018-05-19 16:15:28 +0100 | |
---|---|---|
committer | 2018-05-19 16:15:28 +0100 | |
commit | 64bde9f6ee49d79fac5ce042c74b08f069a9b389 (patch) | |
tree | 8b65a2dcb8533a80b3152aa4e11c624802333e48 /templates/main | |
parent | Logical block organisation (diff) |
[Jams] Some amount of public display, but links not ready yet
Diffstat (limited to 'templates/main')
-rw-r--r-- | templates/main/jams/index.html | 122 |
1 files changed, 70 insertions, 52 deletions
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 @@ <article class="uk-article"> <div uk-grid class="uk-grid-large"> <div class="uk-width-expand"> - <h1 class="uk-article-title hover-title" id="top"> + <h1 class="uk-article-title"> Code Jams - - <a href="#top" class="uk-text-primary" title="Permanent link to this header"> - <i class="fas fa-paragraph" data-fa-transform="shrink-8"></i> - </a> </h1> <p class="uk-article-meta"> We jammin' @@ -43,61 +39,83 @@ </p> <a href="https://jetbrains.com"> - <img src="{{ static_file("images/jetbrains.png") }}" /> + <img src="{{ static_file("images/jetbrains.png") }}" style="max-width: 15rem;" /> </a> </figure> </div> - <h2 class="uk-article-title hover-title" id="rules"> - Rules and Guidelines + <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 uk-heading-divider"> + Code Jam {{ jam.number }}: {{ jam.title }} + <span class="uk-float-right"> + {% if jam.state == "announced" %} + <a class="uk-button uk-button-primary" target="_blank" href="{{ jam.repo }}"> + <i class="uk-icon fa-fw far fa-plus"></i> Join + </a> + {% else %} + <a class="uk-button uk-button-default" target="_blank" href="{{ jam.repo }}"> + <i class="uk-icon fa-fw fab fa-github"></i> Repository + </a> + {% endif %} + </span> + <p class="uk-article-meta"> + State: {{ jam.state.title() }} + </p> + </h1> + + <p> + {% if jam.participants %} + <span class="uk-label uk-label"> + {{ jam.participants | length }} participants + </span> + {% endif %} + <span class="uk-label uk-label-success"> + {{ format_datetime(jam.date_start) }} UTC + </span> + + <span style="vertical-align: middle"> + <i class="uk-icon fa-fw far fa-arrow-right" ></i> + </span> + + <span class="uk-label uk-label-danger"> + {{ format_datetime(jam.date_end) }} UTC + </span> + <p> + + </p> + + {{ jam.info_html | safe }} + + {% if jam.state in ["running", "judging", "finished"] %} + <br /> - <a href="#rules" class="uk-text-primary" title="Permanent link to this header"> - <i class="fas fa-paragraph" data-fa-transform="shrink-8"></i> - </a> - </h2> - <p class="uk-article-meta"> - Keeping the fight clean - </p> - <p> - 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. - </p> - <ul> - <li> - Projects must be strongly Python-oriented. + {{ jam.task_html | safe }} + {% endif %} - <ul> - <li>You may mix in other languages, but the project must be Python-based.</li> - </ul> - </li> - <li>You may not write any code in advance.</li> - <li>You may not write any code after the deadline.</li> - <li>The work must be your own - don't copy another team's work.</li> - </ul> - <p> - Additionally, the following suggestions could be helpful for all teams. - </p> - <ul> - <li>All team members should contribute to the project in some way. Work together!</li> - <li>Open your pull request early - that way, you know it'll be there by the deadline.</li> - <li>Lint your code - we lint each pull request using Flake8, and your code should validate.</li> - <li>Communicate with your teammates - Add them as a friend, start a group DM, and work together on the problem.</li> - </ul> + {% if jam.state == "finished" %} + <br /> - <h2 class="uk-article-title hover-title" id="further-reading"> - Further Reading + {{ jam.end_html | safe }} + {% endif %} - <a href="#further-reading" class="uk-text-primary" title="Permanent link to this header"> - <i class="fas fa-paragraph" data-fa-transform="shrink-8"></i> - </a> - </h2> - <p class="uk-article-meta"> - Need some support? - </p> - <p> - We're currently working on some better documentation for our code jams. In the meantime, you can always - read over our <a href="{{ url_for("main.jams.info") }}">old Getting Started guide</a>. - </p> + {% endfor %} + {% else %} + <p> + Looking for our code jams? There's nothing here just yet! + </p> + {% endif %} </article> </div> </div> |