artefact.tpl 1.39 KB
Newer Older
1
<!-- <h3 class="title">
Pat Kira's avatar
Pat Kira committed
2
    {$title}
3
</h3> -->
Pat Kira's avatar
Pat Kira committed
4
5
6
7
8
9
10
11

{if $tags}
<p class="tags s">
    <strong>{str tag=tags}:</strong> 
    {list_tags owner=$owner tags=$tags}
</p>
{/if}

Naomi Guyer's avatar
Naomi Guyer committed
12
13
<p>{$description|clean_html|safe}</p>
{if isset($attachments)}
Pat Kira's avatar
Pat Kira committed
14
    <table class="attachments fullwidth">
Naomi Guyer's avatar
Naomi Guyer committed
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
        <thead class="expandable-head">
            <tr>
                <td colspan="2">
                    <a class="toggle" href="#">{str tag=attachedfiles section=artefact.blog}</a>
                    <span class="fr">
                        <img class="fl" src="{theme_url filename='images/attachment.png'}" alt="{str tag=attachments section=artefact.blog}">
                        {$attachments|count}
                    </span>
                </td>
            </tr>
        </thead>
        <tbody class="expandable-body">
            {foreach from=$attachments item=item}
                <tr class="{cycle values='r0,r1'}">
                {if $icons}<td class="icon-container"><img src="{$item->iconpath}" alt=""></td>{/if}
                <td><a href="{$item->viewpath}">{$item->title}</a>
                ({$item->size}) - <strong><a href="{$item->downloadpath}">{str tag=Download section=artefact.file}</a></strong>
                <br>{$item->description}</td>
                </tr>
            {/foreach}
        </tbody>
    </table>
{/if}
Pat Kira's avatar
Pat Kira committed
38

Naomi Guyer's avatar
Naomi Guyer committed
39
{if $license}
Pat Kira's avatar
Pat Kira committed
40
41
42
43
    <div class="artefactlicense">
        {$license|safe}
    </div>
{/if}