Skip to content

Commit

Permalink
Renomme la page "À propos" en "Crédits techniques" (#6515)
Browse files Browse the repository at this point in the history
Pour éviter la confusion avec une page de présentation du site/asso

Co-authored-by: Arnaud-D <[email protected]>
  • Loading branch information
qwertygc and Arnaud-D authored Oct 8, 2023
1 parent f46fb41 commit 7329dd3
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion doc/source/front-end/arborescence-des-fichiers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Voici un extrait du dossier contenant les gabaris :
│ ...
├── pages/ # Dossier contenant les pages du site
│ ├── about.html
│ ├── technologies.html
│ ├── contact.html
│ ...
Expand Down
2 changes: 1 addition & 1 deletion templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<ul class="links">
<li><a href="{% url "api:docs" %}">{% trans "API" %}</a></li>
<li><a href="{% url "pages-eula" %}">{% trans "CGU" %}</a></li>
<li><a href="{% url "pages-about" %}">{% trans "À propos" %}</a></li>
<li><a href="{% url "pages-technologies" %}">{% trans "Crédits techniques" %}</a></li>
{% if app.site.association %}
<li><a href="{% url "pages-association" %}">{% trans "L’association" %}</a></li>
<li>
Expand Down
2 changes: 1 addition & 1 deletion templates/pages/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h1>{% trans "Pages" %}</h1>
{% block content %}
<ul>
<li><a href="{% url "pages-eula" %}"><abbr title="{% trans "Conditions générales d’utilisation" %}">{% trans "CGU" %}</abbr></a></li>
<li><a href="{% url "pages-about" %}">{% trans "À propos" %}</a></li>
<li><a href="{% url "pages-technologies" %}">{% trans "Crédits techniques" %}</a></li>
{% if app.site.association %}
<li><a href="{% url "pages-association" %}">{% trans "L’association" %}</a></li>
<li><a href="{{ app.site.association.subscribe_link }}">{% trans "Adhérer à l'association" %}</a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@


{% block title %}
{% trans "À propos" %}
{% trans "Crédits techniques" %}
{% endblock %}



{% block breadcrumb %}
<li>{% trans "À propos" %}</li>
<li>{% trans "Crédits techniques" %}</li>
{% endblock %}



{% block headline %}
<h1>{% trans "À propos" %}</h1>
<h1>{% trans "Crédits techniques" %}</h1>
{% endblock %}


Expand Down Expand Up @@ -110,7 +110,7 @@ <h4>{% trans "Feuilles de style" %}</h4>

<h4>Javascript</h4>
<ul>
<li><a href="https://jquery.com/">jQuery 2.x</a></li>
<li><a href="https://jquery.com/">jQuery</a></li>
</ul>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions zds/pages/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_url_about(self):
"""Test: check that about page is alive."""

result = self.client.get(
reverse("pages-about"),
reverse("pages-technologies"),
)

self.assertEqual(result.status_code, 200)
Expand Down Expand Up @@ -98,7 +98,7 @@ def test_url_about(self):
"""Test: check that about page is alive."""

result = self.client.get(
reverse("pages-about"),
reverse("pages-technologies"),
)

self.assertEqual(result.status_code, 200)
Expand Down Expand Up @@ -154,7 +154,7 @@ def test_url_about(self):
"""Test: check that about page is alive."""

result = self.client.get(
reverse("pages-about"),
reverse("pages-technologies"),
)

self.assertEqual(result.status_code, 200)
Expand Down
2 changes: 1 addition & 1 deletion zds/pages/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

urlpatterns = [
# single pages
path("apropos/", about, name="pages-about"),
path("technologies/", about, name="pages-technologies"),
path("association/", association, name="pages-association"),
path("contact/", ContactView.as_view(), name="pages-contact"),
path("cgu/", eula, name="pages-eula"),
Expand Down
2 changes: 1 addition & 1 deletion zds/pages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def about(request):
"""Display many informations about the website."""
return render(
request,
"pages/about.html",
"pages/technologies.html",
{
"default_repository_url": get_repository_url(
settings.ZDS_APP["github_projects"]["default_repository"], "base_url"
Expand Down

0 comments on commit 7329dd3

Please sign in to comment.