interaction_forum_post.tpl 1.16 KB
Newer Older
Naomi Guyer's avatar
Naomi Guyer committed
1
{if $record->deleted}
Pat Kira's avatar
Pat Kira committed
2
    <h3 class="title list-group-item-heading text-inline">
3
        <span class="icon icon-commenting-o left" role="presentation" aria-hidden="true"></span>
Pat Kira's avatar
Pat Kira committed
4 5
        {$record->subject}
    </h3>
6
    <span class="artefacttype text-midtone">({str tag=deletedforumpost section=search.elasticsearch})</span>
Naomi Guyer's avatar
Naomi Guyer committed
7
{else}
Pat Kira's avatar
Pat Kira committed
8
    <h3 class="title list-group-item-heading text-inline">
9
        <span class="icon icon-commenting-o left" role="presentation" aria-hidden="true"></span>
Pat Kira's avatar
Pat Kira committed
10 11 12 13
        <a href="{$WWWROOT}interaction/forum/topic.php?id={$record->topic}#post{$record->id}">
            {$record->subject}
        </a>
    </h3>
14
    <span class="artefacttype text-midtone">({str tag=forumpost section=search.elasticsearch})</span>
Naomi Guyer's avatar
Naomi Guyer committed
15 16 17
    <div class="source"><strong>{str tag='forum' section='search.elasticsearch'}:</strong> {$record->forumname} ({$record->groupname})</div>
    <div class="poster"><strong>{str tag='forumpostedbylabel' section='search.elasticsearch'}:</strong> {str tag=forumpostedby section=search.elasticsearch arg1='$record->authorlink|safe' arg2='$record->ctime'}</div>
    <div class="detail">{$record->body|str_shorten_html:140:true:false|safe}</div>
18
{/if}