prompt to login for Bundle partners
<div class="timeline-panel">
<div class="timeline-body">
{% if object.get_languages %}
- <p class="partner-languages">
+ <div class="partner-languages">
{% 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)' %}:
<div class="resource-label-languages">
{% if not forloop.last %} <span class="pipe">|</span> {% endif %}
{% endfor %}
</div>
- </p>
+ </div>
{% else %}
{% comment %} Translators: If a partner has no content languages specified, this message is shown in the Languages field on the partner page. {% endcomment %}
<p>{% trans "Languages not available." %}</p>
{% 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 %}
<a href="{% url 'partners:users' pk=object.pk %}" class="btn btn-primary btn-lg hidden-xs btn-block">{% trans "List applications" %}</a>
{% endif %}
+ {% else %}
+ <div class="panel-body top-border">
+ <img src="{% static 'img/LibraryBundle.svg' %}" class="img-responsive" style="width:40px; height:45px; float:right;" title="{% trans 'Library Bundle' %}" alt="
+ {% comment %} Translators: Alt text for the Library Bundle icon shown on the collection page. {% endcomment %}
+ {% trans "Library bundle access" %}
+ ">
+ {% if user.is_authenticated %}
+ {% comment %} Logic to support accessing the Bundle resource. {% endcomment %}
+ {% else %}
+ {% url 'oauth_login' as oauth_login %}
+ {% blocktrans trimmed %}
+ This resources is part of our <a href="#">Bundle access</a>, which
+ you can access if you meet our minimum eligibility criteria.
+ <strong><a href="{{ oauth_login }}?next={{ request.path|urlencode }}">
+ Log in</a></strong> to find out if you are eligible.
+ {% endblocktrans %}
+ {% endif %}
+ </div>
{% endif %}
</div>
</div>
