silverstripe-dms/templates/Includes/Document.ss

21 lines
623 B
Scheme
Raw Normal View History

<% if not $isHidden %>
<div class="document $Extension">
2017-05-15 07:17:10 +02:00
<h4><a href="$Link" title="<%t DMSDocument.DOWNLOAD "Download {title}" title=$getTitle %>">$getTitle</a></h4>
<% if $CoverImage %>
<div class="article-thumbnail">
$CoverImage.FitMax(100, 100)
</div>
<% end_if %>
<p class="details"><% include DocumentDetails %></p>
<% if $Description %>
<p>$DescriptionWithLineBreak</p>
<% end_if %>
<% if $getRelatedDocuments %>
<% include RelatedDocuments %>
<% end_if %>
</div>
<% end_if %>