Commit 6d9490ca authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Don't display owner column when listing views by one owner

parent 7300bd94
......@@ -270,7 +270,7 @@ $string['selectaviewtocopy'] = 'Select the View you wish to copy:';
$string['listviews'] = 'List Views';
$string['nocopyableviewsfound'] = 'No Views that you can copy';
$string['noownersfound'] = 'No owners found';
$string['displayingviewsby'] = 'Displaying Views by %s';
$string['viewsby'] = 'Views by %s';
$string['Preview'] = 'Preview';
$string['closepreview'] = 'Close Preview';
......@@ -2038,7 +2038,7 @@ class View {
$smarty->assign('ownername', get_string('displayingviewsby', 'view', $ownername));
$smarty->assign('ownername', get_string('viewsby', 'view', $ownername));
$search->html = $smarty->fetch('view/templatesearchresults.tpl');
$search->count = $results->count;
<table class="templateresults tablerenderer">
{if ($ownername)}<tr><td colspan="3">{$ownername}</td></tr>{/if}
{if ($ownername)}
<tr><th colspan="3">{$ownername}</th></tr>
<th>{str tag=name}</th>
<th>{str tag=Owner section=view}</th>
{if !empty($results)}
{foreach from=$results item=row}
<tr class="r{cycle values=0,1}">
<td{if ($ownername)} colspan="2"{/if}>
<a class="viewlink" href="{$WWWROOT}view/view.php?id={$|escape}" target="_blank">{$row.title|escape}</a>
{if (!$ownername)}
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