Improve behaviour of Special Requirements and Terms of Use fields.
</div>
</div>
</li>
- <li class="timeline-inverted">
- <div class="timeline-badge"><i class="fa fa-link"></i>
- </div>
- <div class="timeline-panel">
- <div class="timeline-body">
- {% if object.terms_of_use %}
- <p><a href="{{ object.terms_of_use }}">{% trans "Terms of use" %}</a></p>
- {% else %}
- <p>{% trans "Terms of use not available." %}</p>
- {% endif %}
- </div>
- </div>
- </li>
<li class="timeline-inverted">
<div class="timeline-badge"><i class="fa fa-language"></i>
</div>
</div>
</div>
</li>
+ {% if object.agreement_with_terms_of_use or object.real_name or object.country_of_residence or object.occupation or object.affiliation or object.specific_title or object.specific_stream %}
<li class="timeline-inverted">
<div class="timeline-badge"><i class="fa fa-exclamation"></i>
</div>
<h4 class="timeline-title">{% trans "Special requirements for applicants" %}</h4>
</div>
<div class="timeline-body">
- <p>
- ({% trans "If this publisher has any special requirements for applicants, they are listed here." %})
- </p>
<ul>
{% if object.agreement_with_terms_of_use %}
</div>
</div>
</li>
+ {% endif %}
{% if object.streams.all %}
<li class="timeline-inverted">
<div class="timeline-badge"><i class="fa fa-tags"></i>
</div>
</li>
{% endif %}
+ <li class="timeline-inverted">
+ <div class="timeline-badge"><i class="fa fa-link"></i>
+ </div>
+ <div class="timeline-panel">
+ <div class="timeline-body">
+ {% if object.terms_of_use %}
+ <p><a href="{{ object.terms_of_use }}">{% trans "Terms of use" %}</a></p>
+ {% else %}
+ <p>{% trans "Terms of use not available." %}</p>
+ {% endif %}
+ </div>
+ </div>
+ </li>
</ul>
{% comment %}
