bloglist.tpl 1.69 KB
Newer Older
Naomi Guyer's avatar
Naomi Guyer committed
1
{foreach from=$blogs->data item=blog}
Pat Kira's avatar
Pat Kira committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<div class="panel panel-default blog panel-half">
    <h3 class="panel-heading has-link">
        <a class="title-link" href="{$WWWROOT}artefact/blog/view/index.php?id={$blog->id}">

        {$blog->title}

        {if $blog->postcount == 0}
            <span class="metadata mls">
                {str tag=nopostsyet section=artefact.blog}
            </span>
        {else}
            <span class="metadata mls">
                {str tag=nposts section=artefact.blog arg1=$blog->postcount}
            </span>
        {/if}
         <span class="fa fa-arrow-right mrs pull-right link-indicator"></span>
        </a>
    </h3>

    <div id="blogdesc" class="panel-body">
22
        <a class="link-unstyled" href="{$WWWROOT}artefact/blog/view/index.php?id={$blog->id}">
Pat Kira's avatar
Pat Kira committed
23
24
25
26
27
        {$blog->description|clean_html|safe}
        </a>
    </div>

    <div class="panel-footer has-form">
28
        <a href="{$WWWROOT}artefact/blog/post.php?blog={$blog->id}" class="btn btn-default btn-sm">
29
            <span class="fa fa-plus text-success mrs"></span>
30
31
            {str tag=addpost section=artefact.blog}
        </a>
Pat Kira's avatar
Pat Kira committed
32
        <div class="pull-right">
Naomi Guyer's avatar
Naomi Guyer committed
33
            {if $blog->locked}
Pat Kira's avatar
Pat Kira committed
34
                {str tag=submittedforassessment section=view}
Naomi Guyer's avatar
Naomi Guyer committed
35
            {else}
36
37
38
            <a href="{$WWWROOT}artefact/blog/settings/index.php?id={$blog->id}" title="{str(tag=settingsspecific arg1=$blog->title)|escape:html|safe}" class="btn btn-default btn-sm">
                <span class="fa fa-pencil mrs"></span>
                {str tag=edit}
Pat Kira's avatar
Pat Kira committed
39
40
            </a>
            <span class="control">
Naomi Guyer's avatar
Naomi Guyer committed
41
            {$blog->deleteform|safe}
Pat Kira's avatar
Pat Kira committed
42
            </span>
Naomi Guyer's avatar
Naomi Guyer committed
43
            {/if}
Pat Kira's avatar
Pat Kira committed
44
        </div>
Naomi Guyer's avatar
Naomi Guyer committed
45
    </div>
Naomi Guyer's avatar
Naomi Guyer committed
46
</div>
Naomi Guyer's avatar
Naomi Guyer committed
47
{/foreach}