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">
<thead>
{if ($ownername)}<tr><td colspan="3">{$ownername}</td></tr>{/if}
{if ($ownername)}
<tr><th colspan="3">{$ownername}</th></tr>
{else}
<tr>
<th>{str tag=name}</th>
<th>{str tag=Owner section=view}</th>
<th></th>
</tr>
{/if}
</thead>
<tbody>
{if !empty($results)}
{foreach from=$results item=row}
<tr class="r{cycle values=0,1}">
<td>
<td{if ($ownername)} colspan="2"{/if}>
<a class="viewlink" href="{$WWWROOT}view/view.php?id={$row.id|escape}" target="_blank">{$row.title|escape}</a>
</td>
<td>
{$row.sharedby|escape}
</td>
{if (!$ownername)}
<td>{$row.sharedby|escape}</td>
{/if}
<td>
{$row.form}
</td>
......
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