Commit 592a0d20 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Add edit link to views when small headers are disabled (bug #663591)


Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 4ed7bce5
......@@ -8,9 +8,10 @@
{include file=collectionnav.tpl}
{/if}
{if !$microheaders && $mnethost}
{if !$microheaders && ($mnethost || $editurl)}
<div class="rbuttons">
<a href="{$mnethost.url}">{str tag=backto arg1=$mnethost.name}</a>
{if $editurl}<a class="s icon {if $new}btn-reply{else}btn-edit{/if}" href="{$editurl}">{if $new}{str tag=back}{else}{str tag=editthisview section=view}{/if}</a>{/if}
{if $mnethost}<a href="{$mnethost.url}">{str tag=backto arg1=$mnethost.name}</a>{/if}
</div>
{/if}
......
......@@ -258,6 +258,9 @@ if (get_config('viewmicroheaders')) {
}
}
}
else if ($can_edit) {
$smarty->assign('editurl', get_config('wwwroot') . 'view/blocks.php?id=' . $viewid . ($new ? '&new=1' : ''));
}
$title = hsc(TITLE);
......
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