diff --git a/hackathon/fixtures/hackathons.json b/hackathon/fixtures/hackathons.json index dc54de62..b061679c 100644 --- a/hackathon/fixtures/hackathons.json +++ b/hackathon/fixtures/hackathons.json @@ -687,7 +687,7 @@ "created": "2021-01-28T17:46:37.870Z", "updated": "2021-01-28T17:46:37.870Z", "created_by": 1, - "display_name": "team_1", + "display_name": "team_x1", "header_image": "", "hackathon": 12, "project": null, @@ -704,7 +704,7 @@ "created": "2021-01-28T17:46:37.876Z", "updated": "2021-01-28T17:46:37.876Z", "created_by": 1, - "display_name": "team_2", + "display_name": "team_x2", "header_image": "", "hackathon": 12, "project": null, @@ -722,7 +722,7 @@ "created": "2021-01-28T17:46:37.880Z", "updated": "2021-01-28T17:46:37.880Z", "created_by": 1, - "display_name": "team_3", + "display_name": "team_x3", "header_image": "", "hackathon": 12, "project": null, @@ -740,7 +740,7 @@ "created": "2021-01-28T17:46:37.882Z", "updated": "2021-01-28T17:46:37.882Z", "created_by": 1, - "display_name": "team_4", + "display_name": "team_x4", "header_image": "", "hackathon": 12, "project": null, diff --git a/hackathon/templates/hackathon/create-event.html b/hackathon/templates/hackathon/create-event.html index 316c71e5..fd807b00 100644 --- a/hackathon/templates/hackathon/create-event.html +++ b/hackathon/templates/hackathon/create-event.html @@ -40,10 +40,7 @@
{{ hackathon.start_date }} - {{ hackathon.end_date }}
diff --git a/hackathon/views.py b/hackathon/views.py index eb8bcb1f..c92a9198 100644 --- a/hackathon/views.py +++ b/hackathon/views.py @@ -70,10 +70,11 @@ def judging(request, hack_id, team_id): project=get_object_or_404(HackTeam, pk=team_id).project, hack_project_score_category=score_category, ) + + score_cat_id = f"score_{score_category.id}" if team_score: team_score.update(score=request.POST.get(score_cat_id)) else: - score_cat_id = f"score_{score_category.id}" team_score = HackProjectScore( created_by=request.user, judge=request.user, diff --git a/left_to_do.txt b/left_to_do.txt index 6387c4ec..a081f9b3 100644 --- a/left_to_do.txt +++ b/left_to_do.txt @@ -1 +1,3 @@ - Add notification to notify participants of winners +- Check if teams can submit projects still if status is judging, finished, deleted +- Allow judges to enroll as participant, but remove staff privileges for that hackathon \ No newline at end of file diff --git a/showcase/templates/showcase.html b/showcase/templates/showcase.html index f486a2c9..d3010b5b 100644 --- a/showcase/templates/showcase.html +++ b/showcase/templates/showcase.html @@ -65,7 +65,9 @@diff --git a/static/css/style.css b/static/css/style.css index 481285c3..e8cc95a6 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -79,6 +79,11 @@ main { color: var(--s-grey); } +a.ci-link { + font-size: inherit !important; + color: var(--p-orange); +} + .disabled-link { pointer-events: none; opacity: .5; diff --git a/teams/helpers.py b/teams/helpers.py index 2cce9b0e..86134184 100644 --- a/teams/helpers.py +++ b/teams/helpers.py @@ -206,5 +206,6 @@ def update_team_participants(created_by_user, teams, hackathon_id): if hack_team: hack_team.first().participants.set(get_users_from_ids(team_members)) else: + hackathon = Hackathon.objects.get(id=hackathon_id) create_new_team_and_add_participants(created_by_user, team_name, team_members, hackathon) diff --git a/teams/templates/change_teams.html b/teams/templates/change_teams.html index 75d66a96..262bd4dc 100644 --- a/teams/templates/change_teams.html +++ b/teams/templates/change_teams.html @@ -29,21 +29,21 @@
Project details can always be edited until the judging starts. {% endif %} + {% endif %}
- GitHub Repo: GitHub Repo: {{team.project.github_url}}
- Deployed at: Deployed at: {{team.project.deployed_url}}
diff --git a/teams/templates/includes/showcase_member.html b/teams/templates/includes/showcase_member.html index 95ec21d4..84b43f92 100644 --- a/teams/templates/includes/showcase_member.html +++ b/teams/templates/includes/showcase_member.html @@ -2,7 +2,7 @@