Commit 966b35e8 authored by Nigel McNie's avatar Nigel McNie
Browse files

Improved the template for rendering a blogpost.

This should actually be moved around since the 'render' directory is a hangover from the old 'templates' system for views. For now however, I am going to ignore that until we overhaul blogs or otherwise find time to clean up the old stuff.
parent 46f5bfa3
......@@ -2,15 +2,17 @@
* This template displays a blog post.
*}
<div>
<h3>{$artefacttitle}</h3>
{if $artefacttitle}<h3>{$artefacttitle}</h3>{/if}
<div>{$artefactdescription}</div>
{if isset($attachments)}
<table>
<tbody>
<tr><th>{str tag=attachedfiles section=artefact.blog}:</th></tr>
<tr><th colspan="2">{str tag=attachedfiles section=artefact.blog}:</th></tr>
{foreach from=$attachments item=item}
<tr>
<td>{$item->content}</td>
<td style="width: 22px;"><img src="{$item->iconpath|escape}" alt=""></td>
<td><a href="{$item->viewpath|escape}">{$item->title}</a> ({$item->size}) - <strong><a href="{$item->downloadpath|escape}">Download</a></strong>
<br><strong>{$item->description|escape}</strong></td>
</tr>
{/foreach}
</tbody>
......
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