blogpost_renderfull.tpl 2.9 KB
Newer Older
Naomi Guyer's avatar
Naomi Guyer committed
1
2
3
{**
* This template displays a blog post.
*}
4
<div id="blogpost-{$postid}" class="panel-body">
5
6
7
8
9
10
    
    {if $artefacttitle && $simpledisplay}
    <h3 class="title">
        {$artefacttitle|safe}
    </h3>
    {/if}
11

Pat Kira's avatar
Pat Kira committed
12
13
14
15
    <div class="postdetails metadata mbm">
        <span class="fa fa-calendar mrs"></span>
        {$postedbyon}
    </div>
16

Pat Kira's avatar
Pat Kira committed
17
18
19
20
21
22
23
    {if $artefact->get('tags')}
    <div class="tags metadata">
        <span class="fa fa-tags"></span>
        <strong>{str tag=tags}:</strong> 
        {list_tags owner=$artefact->get('owner') tags=$artefact->get('tags')}
    </div>
    {/if}
24

Pat Kira's avatar
Pat Kira committed
25
    {$artefactdescription|clean_html|safe}
26

Naomi Guyer's avatar
Naomi Guyer committed
27
    {if $license}
Pat Kira's avatar
Pat Kira committed
28
    <div class="postlicense mtm mbl">
Naomi Guyer's avatar
Naomi Guyer committed
29
30
31
        {$license|safe}
    </div>
    {/if}
32
33

    {if isset($attachments)}
Pat Kira's avatar
Pat Kira committed
34
        <div class="has-attachment panel panel-default collapsible">
35
            <h5 class="panel-heading">
36
37
38
39
40
41
42
                <a class="text-left pts pbm collapsed" aria-expanded="false" href="#blog-attach-{$postid}" data-toggle="collapse">
                    <span class="fa prm fa-paperclip"></span>

                    <span class="text-small">{str tag=attachedfiles section=artefact.blog}</span>
                    <span class="metadata">({$attachments|count})</span>
                    <span class="fa pts fa-chevron-down pull-right collapse-indicator"></span>
                </a>
43
44
            </h5>
            <!-- Attachment list with view and download link -->
45
46
47
            <div id="blog-attach-{$postid}" class="collapse">
                <ul class="list-unstyled list-group">
                {foreach from=$attachments item=item}
48
                    <li class="list-group-item">
49
                        <a href="{$item->downloadpath}" class="outer-link icon-on-hover" {if $item->description} title="{$item->description}" data-toggle="tooltip"{/if}>
50
51
52
                            <span class="sr-only">
                                {str tag=Download section=artefact.file} {$item->title}
                            </span>
53
                        </a>
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
                        
                        {if $item->iconpath}
                        <img src="{$item->iconpath}" alt="">
                        {else}
                        <span class="fa fa-{$item->artefacttype} fa-lg text-default"></span>
                        {/if}

                        <span class="title list-group-item-heading plm inline">
                            <a href="{$item->viewpath}" class="inner-link">
                                {$item->title}
                            </a>
                            <span class="metadata"> - 
                                [{$item->size|display_size}]
                            </span>
                        </span>

                        <span class="fa fa-download fa-lg pull-right pts text-watermark icon-action"></span>
71
72
73
74
75
76
                    </li>
                {/foreach}
                </ul>
            </div>
        </div>
    {/if}
Naomi Guyer's avatar
Naomi Guyer committed
77
</div>