From f8f84afac826598bbbfcad3423b199ac7ad65aa2 Mon Sep 17 00:00:00 2001 From: Mark Walker Date: Thu, 24 Oct 2024 01:18:13 +0100 Subject: [PATCH] fix: Addressing review comments --- djangoproject/templates/base_community.html | 23 ++++++++----------- .../templates/diversity/changes.html | 2 +- djangoproject/templates/overview.html | 7 +++++- djangoproject/templates/start.html | 12 +++++++--- 4 files changed, 26 insertions(+), 18 deletions(-) diff --git a/djangoproject/templates/base_community.html b/djangoproject/templates/base_community.html index 500e9f335..294bc92eb 100644 --- a/djangoproject/templates/base_community.html +++ b/djangoproject/templates/base_community.html @@ -9,19 +9,16 @@ {% block header %}

{% translate "Community" %}

- {% spaceless %} -

- {% if community_stats.age %} - {% blocktranslate with age=community_stats.age %} - Building the Django Community for {{ age }}. - {% endblocktranslate %} - {% else %} - {% translate "Building the Django Community." %} - {% endif %} - {% translate "Come join us!" %} -

- {% endif %}. {% translate "Come join us!" %}

-{% endspaceless %} +

+ {% if community_stats.age %} + {% blocktranslate trimmed with age=community_stats.age %} + Building the Django Community for {{ age }}. + {% endblocktranslate %} + {% else %} + {% translate "Building the Django Community." %} + {% endif %} + {% translate "Come join us!" %} +

{% endblock %} {% block content-related %} diff --git a/djangoproject/templates/diversity/changes.html b/djangoproject/templates/diversity/changes.html index 88c732bee..b9d1ba206 100644 --- a/djangoproject/templates/diversity/changes.html +++ b/djangoproject/templates/diversity/changes.html @@ -43,7 +43,7 @@

{% translate "Change control process" %}

{% translate "Changelog" %}

-
Jun 16, 2015
+
{% translate "June" %} 16, 2015
{% translate "Initial release" %}.
diff --git a/djangoproject/templates/overview.html b/djangoproject/templates/overview.html index 0efa18165..a603004f9 100644 --- a/djangoproject/templates/overview.html +++ b/djangoproject/templates/overview.html @@ -61,7 +61,12 @@

{% translate "Why Django?" %}

{% translate "Exceedingly scalable." %}
-

Some of the busiest sites on the planet use Django’s ability to quickly and flexibly scale to meet the heaviest traffic demands.

+

+ {% blocktranslate trimmed %} + Some of the busiest sites on the planet use Django’s ability to quickly and flexibly scale to meet the + heaviest traffic demands. + {% endblocktranslate %} +

{% translate "Learn more about scaling Django applications" %}
diff --git a/djangoproject/templates/start.html b/djangoproject/templates/start.html index 43d165d50..977a30586 100644 --- a/djangoproject/templates/start.html +++ b/djangoproject/templates/start.html @@ -245,10 +245,16 @@

{% translate "Authentication" %}

  • -

    Admin

    +

    {% translate "Admin" %}

    -

    One of the most powerful parts of Django is its automatic admin interface. It reads metadata in your models to provide a powerful and production-ready interface that content producers can immediately use to start managing content on your site. It’s easy to set up and provides many hooks for customization.

    - Read more +

    + {% blocktranslate trimmed %} + One of the most powerful parts of Django is its automatic admin interface. It reads metadata in your + models to provide a powerful and production-ready interface that content producers can immediately + use to start managing content on your site. It’s easy to set up and provides many hooks for customization. + {% endblocktranslate %} +

    + {% translate "Read more" %} {# fmt:off #} {% pygment 'python' %} from bands.models import Band, Member