Commit b5853385 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Show blog,blogpost tags on view/view page


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent fef96786
{if !$options.hidetitle}<h2>{$artefacttitle}</h2>{/if} {if !$options.hidetitle}<h2>{$artefacttitle}</h2>{/if}
{$description} {$description}
{if $tags}<div class="tags">{str tag=tags}: {list_tags owner=$owner tags=$tags}</div>{/if}
{foreach from=$postdata item=post} {foreach from=$postdata item=post}
{$post.content.html} {$post.content.html}
......
...@@ -217,6 +217,8 @@ class ArtefactTypeBlog extends ArtefactType { ...@@ -217,6 +217,8 @@ class ArtefactTypeBlog extends ArtefactType {
$smarty->assign('options', $options); $smarty->assign('options', $options);
$smarty->assign('description', clean_html($this->get('description'))); $smarty->assign('description', clean_html($this->get('description')));
$smarty->assign('owner', $this->get('owner'));
$smarty->assign('tags', $this->get('tags'));
// Remove unnecessary options for blog posts // Remove unnecessary options for blog posts
unset($options['hidetitle']); unset($options['hidetitle']);
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<table class="cb attachments fullwidth"> <table class="cb attachments fullwidth">
<tbody> <tbody>
<tr><th colspan="2">{str tag=attachedfiles section=artefact.blog}:</th></tr> <tr><th colspan="2">{str tag=attachedfiles section=artefact.blog}:</th></tr>
{if $artefact->get('tags')}<div class="tags">{str tag=tags}: {list_tags owner=$artefact->get('owner') tags=$artefact->get('tags')}</div>{/if}
{foreach from=$attachments item=item} {foreach from=$attachments item=item}
<tr class="r{cycle values=1,0}"> <tr class="r{cycle values=1,0}">
{if $icons}<td style="width: 22px;"><img src="{$item->iconpath|escape}" alt=""></td>{/if} {if $icons}<td style="width: 22px;"><img src="{$item->iconpath|escape}" alt=""></td>{/if}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment