mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-09-21 00:46:29 +02:00
BUGFIX: change the Document.ss to its generic format
This commit is contained in:
parent
c08555479c
commit
2800533e40
@ -1,26 +1,17 @@
|
|||||||
<div class="document $File.ClassByExtension <% if ClassName = DocumentTextLabel %>documentLabel<% end_if %>">
|
<div class="document $FileExt">
|
||||||
<a class="full-link" <% if ClassName = Document %>href="$Link"<% end_if %> title="Download $File.Name"></a>
|
<% if Title %>
|
||||||
<% if Title %>
|
<h4><a href="$DownloadLink" title="Download $Title">$Title</a></h4>
|
||||||
<h4><a href="$Link" title="Download $File.Name">$Title</a></h4>
|
<% else %>
|
||||||
<% else %>
|
<h4><a href="$DownloadLink" title="Download $FilenameWithoutID">$FilenameWithoutID</a></h4>
|
||||||
<h4><a href="$Link" title="Download $File.Name">$File.Name</a></h4>
|
<% end_if %>
|
||||||
<% end_if %>
|
|
||||||
<% if ClassName = Document %>
|
|
||||||
<p class='details'>
|
<p class='details'>
|
||||||
<strong>$File.Name</strong>
|
<strong>$FilenameWithoutID</strong>
|
||||||
| $File.Extension
|
| $FileExt
|
||||||
| $File.Size
|
| $FileSizeFormatted
|
||||||
| Modified: <% control File.Document %> $LastEdited.Nice <% end_control %>
|
| Last Changed: $LastChanged.Nice
|
||||||
</p>
|
</p>
|
||||||
<% if Description %>
|
<% if Description %>
|
||||||
<p>$Description</p>
|
<p>$Description</p>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
<% end_if %>
|
|
||||||
<% if ClassName = DocumentTextLabel %>
|
|
||||||
<p class='details'>
|
|
||||||
<% if Description %>
|
|
||||||
<strong>$Description</strong>
|
|
||||||
<% end_if %>
|
|
||||||
</p>
|
|
||||||
<% end_if %>
|
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue
Block a user