Commit 69aa288a authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Replace missing edit icons


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent b5994232
......@@ -14,7 +14,7 @@
<div class="links lbuttons">
{if $microheaderlinks}
{foreach from=$microheaderlinks item=item}
<a href="{$item.url}">{$item.name|escape}</a>&nbsp;
<a {if $item.edit}class="btn-edit" {/if}href="{$item.url}">{$item.name|escape}</a>&nbsp;
{/foreach}
{elseif $backurl}<a class="btn-reply" href="{$backurl}">{str tag=back}</a>&nbsp;
{/if}
......
......@@ -315,10 +315,12 @@ if ($loggedinid && $loggedinid == $userid) {
array(
'name' => get_string('editmyprofilepage'),
'url' => get_config('wwwroot') . 'view/blocks.php?profile=1',
'edit' => 1,
),
array(
'name' => get_string('editmyprofile', 'artefact.internal'),
'url' => get_config('wwwroot') . 'artefact/internal/index.php',
'edit' => 1,
),
);
$smarty->assign('microheaderlinks', $microheaderlinks);
......
......@@ -196,6 +196,7 @@ if ($owner) {
array(
'name' => get_string('editmyprofile', 'artefact.internal'),
'url' => get_config('wwwroot') . 'artefact/internal/index.php',
'edit' => 1,
),
);
$viewtitle = get_string('usersprofile', 'mahara', display_name($view->get('owner'), null, true));
......@@ -205,10 +206,12 @@ if ($owner) {
array(
'name' => get_string('editdetails', 'view'),
'url' => get_config('wwwroot') . 'view/edit.php?id=' . $viewid . '&amp;new=' . $new,
'edit' => 1,
),
array(
'name' => get_string('editaccess', 'view'),
'url' => get_config('wwwroot') . 'view/access.php?id=' . $viewid . '&amp;new=' . $new,
'edit' => 1,
),
);
}
......
......@@ -193,10 +193,12 @@ if ($can_edit) {
array(
'name' => get_string('editmyprofilepage'),
'url' => get_config('wwwroot') . 'view/blocks.php?profile=1',
'edit' => 1,
),
array(
'name' => get_string('editmyprofile', 'artefact.internal'),
'url' => get_config('wwwroot') . 'artefact/internal/index.php',
'edit' => 1,
),
);
}
......@@ -205,14 +207,17 @@ if ($can_edit) {
array(
'name' => get_string('editdetails', 'view'),
'url' => get_config('wwwroot') . 'view/edit.php?id=' . $viewid . '&amp;new=' . $new,
'edit' => 1,
),
array(
'name' => get_string('editview', 'view'),
'url' => get_config('wwwroot') . 'view/blocks.php?id=' . $viewid . '&amp;new=' . $new,
'edit' => 1,
),
array(
'name' => get_string('editaccess', 'view'),
'url' => get_config('wwwroot') . 'view/access.php?id=' . $viewid . '&amp;new=' . $new,
'edit' => 1,
),
);
}
......
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