blogpost_renderfull.tpl 2.18 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">
Naomi Guyer's avatar
Naomi Guyer committed
5
    {if $artefacttitle}<h3 class="title">{$artefacttitle|safe}</h3>{/if}
6

Pat Kira's avatar
Pat Kira committed
7
8
9
10
    <div class="postdetails metadata mbm">
        <span class="fa fa-calendar mrs"></span>
        {$postedbyon}
    </div>
11

Pat Kira's avatar
Pat Kira committed
12
13
14
15
16
17
18
    {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}
19

Pat Kira's avatar
Pat Kira committed
20
    {$artefactdescription|clean_html|safe}
21

Naomi Guyer's avatar
Naomi Guyer committed
22
    {if $license}
Pat Kira's avatar
Pat Kira committed
23
    <div class="postlicense mtm mbl">
Naomi Guyer's avatar
Naomi Guyer committed
24
25
26
        {$license|safe}
    </div>
    {/if}
27
28

    {if isset($attachments)}
Pat Kira's avatar
Pat Kira committed
29
        <div class="has-attachment panel panel-default collapsible">
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
            <h4 class="panel-heading">
                <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>
            </h4>


            <div id="blog-attach-{$postid}" class="collapse">
                <ul class="list-unstyled list-group">
                {foreach from=$attachments item=item}
                    <li class="list-group-item-text list-group-item-link">
                        <a href="{$item->downloadpath}">
                            <div class="file-icon mrs">
                                {if $item->iconpath}
                                <img src="{$item->iconpath}" alt="">
                                {else}
                                <span class="fa fa-{$item->artefacttype} fa-lg text-default"></span>
                                {/if}
                            </div>
                            {$item->title|truncate:25}
                        </a>
                    </li>
                {/foreach}
                </ul>
            </div>
        </div>
    {/if}
Naomi Guyer's avatar
Naomi Guyer committed
61
</div>