-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ajout des liens vers les contenus dans l'état indiqué #6631
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA OK ✔️
@@ -71,16 +71,18 @@ <h2 class="subtitle"> | |||
{% if content.sha_public == commit.hexsha or content.sha_validation == commit.hexsha or content.sha_beta == commit.hexsha or content.sha_draft == commit.hexsha %} | |||
<ul class="unstyled-list"> | |||
{% if content.sha_validation == commit.hexsha %} | |||
<li>{% trans "Validation" %}</li> | |||
{% url "content:validation-view" pk=content.pk slug=content.slug as url_validation %} | |||
<a href="{{ url_validation }}"><li>{% trans "Validation" %}</li></a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
La QA semble avoir été faite un peu vite, des erreurs d’inattention (je suppose) s’étant glissées.
Ce code HTML, et tous ses semblables, sont invalides (les éléments li
doivent être des enfants directs de ul
). Il aurait fallu inverser l’imbrication des balises li
et a
pour l'ensemble des liens ajoutés.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Effectivement. On n'a pas de vérification automatique sur les templates, ça aiderait à attraper ces trucs, parce que je t'avoue que je ne réflechis absolument pas à la validité du HTML quand je teste ces choses-là.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Contrôle qualité