add new description
</div>
<div class="timeline-panel">
<div class="timeline-body">
- {% if object.description %}
+ {% if object.short_description %}
<p>
{% comment %}
Cache lifetime should be None, which would be forever since we're
the full content on the details page.
{% endcomment %}
{% filter twlight_removetags:"details summary" %}
- {% cache 31536000 partner_description LANGUAGE_CODE object.pk %}
- {{ object.description | twlight_wikicode2html | safe }}
+ {% cache 31536000 partner_short_description LANGUAGE_CODE object.pk %}
+ {{ object.short_description | twlight_wikicode2html | safe }}
{% endcache %}
{% endfilter %}
</p>
{% else %}
- {% comment %} Translators: If a partner has no description written, this message is shown in the Description field on the partner page. {% endcomment %}
+ {% comment %} Translators: If a partner has no short_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 %}
</div>
</div>
</li>
+ {% comment %}
+ Additional info such as collections, instructions, notes, specialrequirements,
+ alternate access options, unique features, citations notes for a particular partner.
+ {% endcomment %}
+ {% if object.description %}
+ <li class="timeline-inverted">
+ <div class="timeline-badge"><i class="fa fa-database" aria-hidden="true"></i>
+ </div>
+ <div class="timeline-panel">
+ <div class="timeline-body">
+ <p>
+ {% 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
+ We filter out details and summary tags so that we always see
+ the full content on the details page.
+ {% endcomment %}
+ {% filter twlight_removetags:"details summary" %}
+ {% cache 31536000 partner_description LANGUAGE_CODE object.pk %}
+ {{ object.description | twlight_wikicode2html | safe }}
+ {% endcache %}
+ {% endfilter %}
+ </p>
+ </div>
+ </div>
+ </li>
+ {% endif %}
<li class="timeline-inverted">
<div class="timeline-badge"><i class="fa fa-language"></i>
</div>
