filedownload.tpl 1.33 KB
Newer Older
1
<ul class="list-group mb0">
Naomi Guyer's avatar
Naomi Guyer committed
2
{foreach $files file}
3 4 5 6 7 8 9 10
    <li class="filedownload-item list-group-item">
        <a href="{$file.downloadurl}" class="outer-link icon-on-hover">
            <span class="sr-only">
                {str tag=Download section=artefact.file} {$file.title}
            </span>
        </a>

        {if $file.iconsrc}
Naomi Guyer's avatar
Naomi Guyer committed
11
            <img src="{$file.iconsrc}" alt="" class="text-inline" />
12
        {else}
13
            <span class="icon icon-{$file.artefacttype} icon-lg icon-file"></span>
14
        {/if}
Naomi Guyer's avatar
Naomi Guyer committed
15 16

        <h4 class="title list-group-item-heading plm text-inline">
17
            <a href="{$WWWROOT}artefact/artefact.php?artefact={$file.id}&view={$viewid}" class="inner-link">
Naomi Guyer's avatar
Naomi Guyer committed
18
                 {$file.title}
19
                 <span class="sr-only">
Naomi Guyer's avatar
Naomi Guyer committed
20
                    {str tag=Details section=artefact.file}
21 22 23
                </span>
            </a>
        </h4>
24 25 26 27
        <span class="text-small text-lighttone"> -
            {$file.ctime|format_date:'strftimedaydate'}
            [{$file.size|display_size}]
        </span>
28
        <span class="icon icon-download icon-lg pull-right pts text-watermark icon-action"></span>
29 30 31 32 33 34 35 36 37
        {if $file.description}
        <div class="description ptm">
            <p class="text-small">
                {$file.description}
            </p>
        </div>
        {/if}
    </li>
    {/foreach}
Naomi Guyer's avatar
Naomi Guyer committed
38
</ul>