%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/waritko/jetty-distribution-9.4.21.v20190926/webapps/ROOT/templates/
Upload File :
Create Path :
Current File : //home/waritko/jetty-distribution-9.4.21.v20190926/webapps/ROOT/templates/viewattachrev.vm

#template("startpage.vm")
<div class="main layoutsubsection">
<div id="mainContentArea">
<h3>$services.localization.render("core.viewers.attachments.revisions", [$attachment.filename])</h3>
#if ("$tdoc.realLocale" != '')
#set($lang = "&language=${tdoc.realLocale}")
#else
#set($lang = "")
#end
<table class="wiki-table" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <th></th><th>$services.localization.render('version')</th><th>$services.localization.render('size')</th>
        <th>$services.localization.render('author')</th><th>$services.localization.render('date')</th>
    </tr>
#foreach ($version in $attachment.getVersions())
    <tr#if($velocityCount % 2 == 1) class="table-odd"#else class="table-even"#end>
#set($attachrev = $attachment.getAttachmentRevision($version.toString()))
#if("$!{request.rid}" != "")
  #set($url = $doc.getAttachmentRevisionURL("${attachment.filename}", ${version.toString()}, "rid=${request.rid}"))
#else
  #set($url = $doc.getAttachmentRevisionURL("${attachment.filename}", ${version.toString()}))
#end
#if ($attachment.isImage())
        <td><img src="${url}" alt="${attachment.filename}" width="80" />
#else
        <td class="mime">#mimetypeimg($attachment.getMimeType().toLowerCase() $attachment.getFilename().toLowerCase())
#end
        </td>
        <td><a href="$url">$version</a></td>
        <td>$attachrev.longSize</td>
        <td>$xwiki.getUserName($attachrev.getAuthor())</td>
        <td>$xwiki.formatDate($attachrev.getDate())</td>
    </tr>
#end
</table>
</div>## mainContentArea
</div>## main
#template("endpage.vm")

Zerion Mini Shell 1.0