add back changes lost on merge
</p>
</div>
{% endif %}
- {% if user_sent_apps %}
- {% if object.renewals_available %}
- {% if user|restricted %}
- <button type="button" class="btn btn-primary btn-lg hidden-xs btn-block disabled">{% trans "Renew" %}</button><br />
- {% else %}
- <a href="{% url 'applications:renew' latest_sent_app_pk %}" class="btn btn-primary btn-lg hidden-xs btn-block">{% trans "Renew" %}</a>
- {% endif %}
- {% endif %}
- {% elif user_open_apps %}
- {% if multiple_open_apps %}
- <a href="{% url 'users:home' %}" class="btn btn-primary btn-lg hidden-xs btn-block">{% trans "View applications" %}</a>
- {% else %}
- <a href="{% url 'applications:evaluate' open_app_pk %}" class="btn btn-primary btn-lg hidden-xs btn-block">{% trans "View application" %}</a>
- {% endif %}
- {% else %}
+ {% if apply %}
<div class="alert alert-info hidden-xs">
<p>
{% comment %} Translators: This text links to the minimum user requirements and terms of use on the partner page. {% endcomment %}
{% endblocktrans %}
</p>
</div>
+ {% endif %}
{% if user|restricted %}
<button type="button" class="btn btn-primary btn-lg hidden-xs btn-block disabled">{% trans "Apply" %}</button><br />
{% else %}
- <a href="{{ app_url }}" class="btn btn-primary btn-lg hidden-xs btn-block">{% trans "Apply" %}</a><br />
+ <a href="{% if apply %}{{ app_url }}{% else %}#{% endif %}" class="btn btn-primary btn-lg hidden-xs btn-block {% if not apply %}disabled{% endif %}">{% trans "Apply" %}</a><br />
+ {% if has_open_apps or has_auths %}
+ {% url 'users:my_collection' user.editor.pk as collection_url %}
+ {% url 'users:my_applications' user.editor.pk as applications_url %}
+ <div class="panel panel-default hidden-xs">
+ <div class="panel-body top-border">
+ {% if has_auths %}
+ {% comment %} Translators: This message is shown when a user has authorizations, linking to their respective collections page. {% endcomment %}
+ {% blocktrans trimmed %}
+ View the status of your access(es) in <strong><a href="{{ collection_url }}">Your Collection</a></strong> page.
+ {% endblocktrans %}
+ {% if has_open_apps %}
+ <hr />
+ {% endif %}
+ {% endif %}
+ {% if has_open_apps %}
+ {% comment %} Translators: This message is shown when a user has open applications, linking to their respective applications page. {% endcomment %}
+ {% blocktrans trimmed %}
+ View the status of your application(s) in <strong><a href="{{ applications_url }}">Your Applications</a></strong> page.
+ {% endblocktrans %}
+ {% endif %}
+ </div>
+ </div>
{% endif %}
{% endif %}
