From 4a7b0dedc489012e252034f3cab1eefd2378c917 Mon Sep 17 00:00:00 2001 From: soumyaa1804 Date: Wed, 25 Dec 2019 16:40:34 +0530 Subject: [PATCH] Fixed T203163 --- .../templates/resources/partner_detail.html | 730 +++++++++--------- TWLight/static/css/local.css | 1 + 2 files changed, 363 insertions(+), 368 deletions(-) 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 %}

{{ object }}

{% comment %} Translators: This text is located on individual partner pages, and when clicked takes users back to the list of publishers. {% endcomment %} @@ -93,377 +80,384 @@

{{ object }}

{% endif %} {% endif %} - -
-
- {% if object.company_location %} - {% comment %} Translators: If a partner has their location listed, this message is a label for that location {% endcomment %} -

{% trans "Location" %}: {{ object.company_location.name }}

+ +
+ {% if not object.authorization_method == object.BUNDLE %} + {% if object.is_waitlisted %} + {% 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 %} -

{% trans "Terms of use" %}

+ {% if user_sent_apps %} + {% if object.renewals_available %} + {% if user|restricted %} +
+ {% else %} + + {% endif %} + {% endif %} + {% elif user_open_apps %} + {% if multiple_open_apps %} + {% 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 %} -
-
- - + {% else %} + + {% if user|restricted %} +
+ {% else %} +
+ {% endif %} + {% endif %} + + {% if user|coordinators_only %} +
+ {% csrf_token %} + +
+ {% endif %} + {% endif %} + {% if object.logos.logo.url %} + + {% endif %} + {% if not object.authorization_method == object.BUNDLE %} + + {% if object.coordinator == user or user.is_staff %} + {% comment %} Translators: This text labels a button coordinators can click to view a list of users who have applied for access for a particular partner {% endcomment %} + + {% endif %} + {% endif %} +
+ + + {% comment %} other stuff to do: diff --git a/TWLight/static/css/local.css b/TWLight/static/css/local.css index 825aa77102..b348d567c6 100644 --- a/TWLight/static/css/local.css +++ b/TWLight/static/css/local.css @@ -229,6 +229,7 @@ TIMELINE .half-timeline > li.timeline-inverted > .timeline-panel { float: left; margin-left: 50px; + width: 70%; } .full-width {