Skip to content

Commit

Permalink
Corrige le lien de contribution technique de la page « À propos » (#6147
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Situphen committed Aug 15, 2021
1 parent 20b81c1 commit 113eee1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions templates/pages/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ <h1>{% trans "À propos" %}</h1>
{% block content %}
{% set app.site.literal_name as site_name %}
<p>
{% blocktrans with repository=app.site.repository.url %}
Si vous vous intéressez à tout cela, vous devriez songer à <a href="{{ repository }}">contribuer au développement du site</a> !
{% blocktrans %}
Si vous vous intéressez à tout cela, vous devriez songer à <a href="{{ default_repository_url }}">contribuer au développement du site</a> !
{% endblocktrans %}
</p>

Expand Down
11 changes: 10 additions & 1 deletion zds/pages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from zds.pages.models import GroupContact
from zds.searchv2.forms import SearchForm
from zds.tutorialv2.models.database import PublishableContent, PublishedContent
from zds.utils.context_processor import get_repository_url
from zds.utils.models import Alert, CommentEdit, Comment


Expand Down Expand Up @@ -58,7 +59,15 @@ def index(request):

def about(request):
"""Display many informations about the website."""
return render(request, "pages/about.html")
return render(
request,
"pages/about.html",
{
"default_repository_url": get_repository_url(
settings.ZDS_APP["github_projects"]["default_repository"], "base_url"
),
},
)


def association(request):
Expand Down

0 comments on commit 113eee1

Please sign in to comment.