silverstripe-dms/templates/Includes/Document.ss
Julian Seidenberg 090c39c378 BUGFIX: adding line breaks in front-end for Descriptions.
BUGFIX: including appropriate hiding based on embargo/expiry
2012-11-13 10:42:43 +13:00

19 lines
482 B
Scheme

<% if isHidden != true %>
<div class="document $Extension">
<% if Title %>
<h4><a href="$Link" title="Download $Title">$Title</a></h4>
<% else %>
<h4><a href="$Link" title="Download $FilenameWithoutID">$FilenameWithoutID</a></h4>
<% end_if %>
<p class='details'>
<strong>$FilenameWithoutID</strong>
| $Extension
| $FileSizeFormatted
| Last Changed: $LastChanged.Nice
</p>
<% if Description %>
<p>$DescriptionWithLineBreaks</p>
<% end_if %>
</div>
<% end_if %>