filedownload.tpl 1.51 KB
Newer Older
1
<ul class="list-group">
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}
11
            <img src="{$file.iconsrc}" alt="" class="file-icon text-inline" />
12
        {else}
13
            <span class="icon icon-{$file.artefacttype} icon-lg left" role="presentation" aria-hidden="true"></span>
14
        {/if}
Naomi Guyer's avatar
Naomi Guyer committed
15

16
        <h4 class="title list-group-item-heading 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
        <span class="text-small text-midtone"> -
25 26 27
            {$file.ctime|format_date:'strftimedaydate'}
            [{$file.size|display_size}]
        </span>
28
        <span class="icon icon-download icon-lg pull-right text-watermark icon-action" role="presentation" aria-hidden="true"></span>
29
        {if $file.description}
30
        <div class="file-description">
31
            <p class="text-small">
32
                {$file.description|safe|clean_html}
33 34
            </p>
        </div>
35
        <script>
36 37
        jQuery("div.file-description a").addClass('inner-link');
        </script>
38 39 40
        {/if}
    </li>
    {/foreach}
Naomi Guyer's avatar
Naomi Guyer committed
41
</ul>
42