Skip to content

Commit

Permalink
Don't display expiration date if not set
Browse files Browse the repository at this point in the history
  • Loading branch information
duchenean committed Sep 16, 2024
1 parent 8060ff4 commit 4a4fb9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plonemeeting/portal/core/faceted/macro_publication.pt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ from collective.timestamp.indexers import is_timestampedpaste.httpheaders import
<div class="item-metadata-row" tal:condition='not: isAnon'>
<div class="item-metadata-label" i18n:domain="plone" i18n:translate="">Expiration date
</div>
<span tal:content="python:context.toLocalizedTime(brain.expires)" />
<span tal:condition="python:brain.expires.year() < 2499" tal:content="python:context.toLocalizedTime(brain.expires)" />
<span tal:condition="python:brain.expires.year() == 2499"> - </span>
</div>
<div class="item-metadata-row">
<div class="item-metadata-label" i18n:translate="">Document type</div>
Expand Down

0 comments on commit 4a4fb9d

Please sign in to comment.