{% extends "base.html" %} {% load static %} {% block title %} {{ hackathon.name }} - Hackathon {% endblock title %} {% block content %} {% include "includes/sidenav.html" %}
{% include "includes/breadcrumbs.html" %}
{% if hackathon.banner_image %} {{ hackathon.name }} {% else %}
{% endif %}

{{ hackathon.name }}

{% if hackathon.is_ongoing %} Ongoing {% elif hackathon.has_ended %} Ended {% else %} Upcoming {% endif %}

{{ hackathon.time_remaining }}

Participants

{{ participant_count }}

Pull Requests

{{ pr_count }}

Merged PRs

{{ merged_pr_count }}

Page Views

{{ total_views }}

Pull Request Activity

About this Hackathon

{{ hackathon.description|linebreaks }}
{% if hackathon.rules %}

Rules

{{ hackathon.rules|linebreaks }}
{% endif %}

Timeline

Start:
{{ hackathon.start_time|date:"F j, Y, g:i a" }}
End:
{{ hackathon.end_time|date:"F j, Y, g:i a" }}

Repositories

{% if repositories %}
{% for repo_data in repositories %}
{{ repo_data.merged_pr_count }} merged PRs {% if can_manage %} Refresh {% endif %}
{% if repo_data.repo.description %}

{{ repo_data.repo.description }}

{% endif %}
GitHub Details {% if request.user.is_superuser %} Admin {% endif %}
{% endfor %}
{% else %}

No repositories have been added to this hackathon yet.

{% endif %}
{% if can_manage %} {% endif %}

Prizes

{% if prizes %}
{% for prize in prizes %}
{% if prize.position == 1 %}

{{ prize.title }}

{% elif prize.position == 2 %}

{{ prize.title }}

{% elif prize.position == 3 %}

{{ prize.title }}

{% else %}

{{ prize.title }}

{% endif %}

{{ prize.description }}

{% if prize.value %}

${{ prize.value }}

{% endif %} {% if prize.sponsor %}
Sponsored by: {{ prize.sponsor.organization.name }}
{% endif %}
{% endfor %}
{% else %}

No prizes have been announced yet.

{% endif %}

Leaderboard

{% if leaderboard %}
{% for entry in leaderboard %}
{{ forloop.counter }}
{% if entry.is_contributor %} {% if entry.contributor.avatar_url %} {{ entry.user.username }} {% else %}
{% endif %} {% else %} {% if entry.user.userprofile.user_avatar %} {{ entry.user.username }} {% else %}
{{ entry.user.username|slice:":1"|upper }}
{% endif %} {% endif %}
{{ entry.user.username }}
{{ entry.count }} pull request{{ entry.count|pluralize }}
{% endfor %}
{% else %}

No contributions yet. Be the first to contribute!

{% endif %}

Sponsors

{% for level, sponsors in sponsors_by_level.items %} {% if sponsors %} {% endif %} {% endfor %} {% if not sponsors_by_level.platinum and not sponsors_by_level.gold and not sponsors_by_level.silver and not sponsors_by_level.bronze and not sponsors_by_level.partner %}

No sponsors yet.

{% endif %} {% if hackathon.sponsor_note or hackathon.sponsor_link %}
{% if hackathon.sponsor_note %}

Sponsorship Information

{{ hackathon.sponsor_note|linebreaks }}
{% endif %} {% if hackathon.sponsor_link %} Become a Sponsor {% endif %}
{% endif %}
{% endblock content %} {% block scripts %} {% endblock scripts %}