Commit 25b12f04 authored by Nigel McNie's avatar Nigel McNie
Browse files

Show view title and description when exporting views.

parent c8c53aac
......@@ -260,6 +260,9 @@ class PluginExportHtml extends PluginExport {
array('text' => get_string('Views', 'view')),
array('text' => $view->get('title'), 'path' => 'index.html'),
));
$smarty->assign('viewtitle', $view->get('title'));
$smarty->assign('ownername', $view->formatted_owner());
$smarty->assign('viewdescription', $view->get('description'));
$directory = $this->exportdir . '/' . $this->rootdir . '/views/' . self::text_to_path($view->get('title'));
if (!check_dir_exists($directory)) {
......
{include file="export:html:header.tpl"}
<h2 id="view-title">{$viewtitle|escape}{if $ownername} {str tag=by section=view} {$ownername|escape}{/if}</h2>
<p id="view-description">{$viewdescription}</p>
{$view}
{include file="export:html:footer.tpl"}
Markdown is supported
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