diff --git a/TWLight/resources/templates/resources/partner_detail.html b/TWLight/resources/templates/resources/partner_detail.html index 6438d81b4a..2c7ec092fd 100644 --- a/TWLight/resources/templates/resources/partner_detail.html +++ b/TWLight/resources/templates/resources/partner_detail.html @@ -8,19 +8,6 @@ {% get_current_language as LANGUAGE_CODE %} -{% block extra_css %} - -{% endblock extra_css %} - {% block content %}
- {% comment %} - Cache lifetime should be None, which would be forever since we're - invalidating on update. However, as 2017-04-06 a bug in django - doesn't allow for None to be passed from here into cache. The - fix is in master, but not release. - https://code.djangoproject.com/ticket/27882 - {% endcomment %} - {% cache 31536000 partner_short_description LANGUAGE_CODE object.pk %} - {{ object.short_description | twlight_wikicode2html | safe }} - {% endcache %} -
- {% else %} - {% comment %} Translators: If a partner has no description written, this message is shown in the Description field on the partner page. {% endcomment %} - {% trans "Description not available." %} - {% endif %} - {% if object.tags.count > 0 %} -- {% comment %} - Cache lifetime should be None, which would be forever since we're - invalidating on update. However, as 2017-04-06 a bug in django - doesn't allow for None to be passed from here into cache. The - fix is in master, but not release. - https://code.djangoproject.com/ticket/27882 - {% endcomment %} - {% cache 31536000 partner_description LANGUAGE_CODE object.pk %} - {{ object.description | twlight_wikicode2html | safe }} - {% endcache %} -
- {% endif %} -- {% comment %} Translators: If a partner has content languages specified, this message precedes the list of those languages on the partner page. {% endcomment %} - {% trans 'Language(s)' %}: -
+ {% comment %} + Cache lifetime should be None, which would be forever since we're + invalidating on update. However, as 2017-04-06 a bug in django + doesn't allow for None to be passed from here into cache. The + fix is in master, but not release. + https://code.djangoproject.com/ticket/27882 + {% endcomment %} + {% cache 31536000 partner_short_description LANGUAGE_CODE object.pk %} + {{ object.short_description | twlight_wikicode2html | safe }} + {% endcache %} +
+ {% else %} + {% comment %} Translators: If a partner has no description written, this message is shown in the Description field on the partner page. {% endcomment %} + {% trans "Description not available." %} + {% endif %} + {% if object.tags.count > 0 %} ++ {% comment %} + Cache lifetime should be None, which would be forever since we're + invalidating on update. However, as 2017-04-06 a bug in django + doesn't allow for None to be passed from here into cache. The + fix is in master, but not release. + https://code.djangoproject.com/ticket/27882 + {% endcomment %} + {% cache 31536000 partner_description LANGUAGE_CODE object.pk %} + {{ object.description | twlight_wikicode2html | safe }} + {% endcache %} +
+ {% endif %} +{% trans "Languages not available." %}
++ {% comment %} Translators: If a partner has content languages specified, this message precedes the list of those languages on the partner page. {% endcomment %} + {% trans 'Language(s)' %}: +
{% trans "Languages not available." %}
+ {% endif %} +{% trans "Location" %}: {{ object.company_location.name }}
+ {% endif %} + {% if object.terms_of_use %} + {% comment %} Translators: If a partner has a Terms of Use listed, this message is shown in the Terms of Use field (e.g. https://wikipedialibrary.wmflabs.org/partners/8/). {% endcomment %} + + {% else %} + {% comment %} Translators: If a partner has no Terms of Use listed, this message is shown in the Terms of Use field (e.g. https://wikipedialibrary.wmflabs.org/partners/12/). {% endcomment %} +{% trans "Terms of use not available." %}
+ {% endif %} +{% trans "Location" %}: {{ object.company_location.name }}
+ ++ {% comment %} Translators: If we have no available accounts for a partner, the coordinator can change the application system to a waiting list. {% endcomment %} + {% blocktrans trimmed %} + There are no access grants available for this partner + at this time. You can still apply for access; applications will + be processed when access is available. + {% endblocktrans %} +
+{% trans "Terms of use not available." %}
+ {% endif %} -