There is no video in the TFJM²

This commit is contained in:
Yohann D'ANELLO 2021-01-12 15:42:32 +01:00
parent 6bcb050754
commit b4e7ec6550
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
10 changed files with 13 additions and 16 deletions

View File

@ -7,7 +7,7 @@ from django.db.models.signals import post_save, pre_save
class ParticipationConfig(AppConfig):
"""
The participation app contains the data about the teams, videos, ...
The participation app contains the data about the teams, solutions, ...
"""
name = 'participation'

View File

@ -14,8 +14,7 @@ from .models import Participation, Team, Tournament
class TeamForm(forms.ModelForm):
"""
Form to create a team, with the name and the trigram,
and if the team accepts that Animath diffuse the videos.
Form to create a team, with the name and the trigram,...
"""
def clean_trigram(self):
trigram = self.cleaned_data["trigram"].upper()

View File

@ -235,7 +235,7 @@ class Tournament(models.Model):
class Participation(models.Model):
"""
The Participation model contains all data that are related to the participation:
chosen problem, validity status, videos,...
chosen problem, validity status, solutions,...
"""
team = models.OneToOneField(
Team,

View File

@ -7,7 +7,7 @@ from tfjm.lists import get_sympa_client
def create_team_participation(instance, created, **_):
"""
When a team got created, create an associated team and create Video objects.
When a team got created, create an associated participation.
"""
participation = Participation.objects.get_or_create(team=instance)[0]
participation.save()

View File

@ -93,7 +93,7 @@
{% if team.participation.valid %}
<div class="text-center">
<a class="btn btn-info" href="{% url "participation:participation_detail" pk=team.participation.pk %}">
<i class="fas fa-video"></i> {% trans "Access to team participation" %} <i class="fas fa-video"></i>
<i class="fas fa-file-pdf"></i> {% trans "Access to team participation" %}
</a>
</div>
{% elif team.participation.valid == None %} {# Team did not ask for validation #}

View File

@ -374,7 +374,7 @@ class MyParticipationDetailView(LoginRequiredMixin, RedirectView):
class ParticipationDetailView(LoginRequiredMixin, DetailView):
"""
Display detail about the participation of a team, and manage the video submission.
Display detail about the participation of a team, and manage the solution submission.
"""
model = Participation

View File

@ -1137,12 +1137,11 @@ msgstr "Requête invalide"
#: tfjm/templates/400.html:7
msgid ""
"Sorry, your request was bad. Don't know what could be wrong. An email has "
"been sent to webmasters with the details of the error. You can now watch "
"some videos."
"been sent to webmasters with the details of the error. You can now think about other solutions."
msgstr ""
"Désolé, votre requête est invalide. Aucune idée de ce qui a pu se passer. Un "
"email a été envoyé aux administrateurs avec les détails de l'erreur. Vous "
"pouvez désormais retourner voir des vidéos."
"pouvez désormais retourner chercher d'autres solutions."
#: tfjm/templates/403.html:6
msgid "Permission denied"
@ -1176,12 +1175,11 @@ msgstr "Erreur du serveur"
msgid ""
"Sorry, an error occurred when processing your request. An email has been "
"sent to webmasters with the detail of the error, and this will be fixed "
"soon. You can now watch some videos."
"soon. You can now think about other solutions."
msgstr ""
"Désolé, une erreur est survenue lors du traitement de votre requête. Aucune "
"idée de ce qui a pu se passer. Un email a été envoyé aux administrateurs "
"avec les détails de l'erreur. Vous pouvez désormais retourner voir des "
"vidéos."
"avec les détails de l'erreur. Vous pouvez désormais retourner chercher d'autres solutions.."
#: tfjm/templates/base.html:56
msgid "Home"

View File

@ -4,5 +4,5 @@
{% block content %}
<h1>{% trans "Bad request" %}</h1>
{% blocktrans %}Sorry, your request was bad. Don't know what could be wrong. An email has been sent to webmasters with the details of the error. You can now watch some videos.{% endblocktrans %}
{% blocktrans %}Sorry, your request was bad. Don't know what could be wrong. An email has been sent to webmasters with the details of the error. You can now think about other solutions.{% endblocktrans %}
{% endblock %}

View File

@ -4,5 +4,5 @@
{% block content %}
<h1>{% trans "Server error" %}</h1>
{% blocktrans %}Sorry, an error occurred when processing your request. An email has been sent to webmasters with the detail of the error, and this will be fixed soon. You can now watch some videos.{% endblocktrans %}
{% blocktrans %}Sorry, an error occurred when processing your request. An email has been sent to webmasters with the detail of the error, and this will be fixed soon. You can now think about other solutions.{% endblocktrans %}
{% endblock %}

View File

@ -87,7 +87,7 @@
</li>
<li class="nav-item active">
<a href="{% url "participation:my_participation_detail" %}" class="nav-link">
<i class="fas fa-video"></i> {% trans "My participation" %}
<i class="fas fa-file-pdf"></i> {% trans "My participation" %}
</a>
</li>
{% endif %}