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

Show tags on view preview


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 8ba217fe
...@@ -10,4 +10,9 @@ ...@@ -10,4 +10,9 @@
</div> </div>
</div> </div>
</div> </div>
{if $tags}
<div class="viewfooter">
<div class="tags">{str tag=tags}: {list_tags owner=0 tags=$tags}</div>
</div>
{/if}
</div> </div>
...@@ -40,6 +40,7 @@ $smarty->assign('viewtitle', $view->get('title')); ...@@ -40,6 +40,7 @@ $smarty->assign('viewtitle', $view->get('title'));
$smarty->assign('ownername', $view->formatted_owner()); $smarty->assign('ownername', $view->formatted_owner());
$smarty->assign('viewdescription', $view->get('description')); $smarty->assign('viewdescription', $view->get('description'));
$smarty->assign('viewcontent', $view->build_columns()); $smarty->assign('viewcontent', $view->build_columns());
$smarty->assign('tags', $view->get('tags'));
ob_start(); ob_start();
$smarty->display('view/viewcontent.tpl'); $smarty->display('view/viewcontent.tpl');
$html = ob_get_contents(); $html = ob_get_contents();
......
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