Commit 0076b835 authored by Nigel McNie's avatar Nigel McNie
Browse files

Make the button in the right say 'back to create my view' if the user is creating a new view'.

parent c0f494c2
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
{if $can_edit} {if $can_edit}
<div class="fr editview"> <div class="fr editview">
<span class="settingsicon"> <span class="settingsicon">
<a href="blocks.php?id={$viewid}&amp;new={$new}">{str tag=editmyview section=view}</a> <a href="blocks.php?id={$viewid}&amp;new={$new}">{$streditviewbutton}</a>
</span> </span>
</div> </div>
{/if} {/if}
......
...@@ -266,6 +266,7 @@ $smarty->assign('viewdescription', $view->get('description')); ...@@ -266,6 +266,7 @@ $smarty->assign('viewdescription', $view->get('description'));
$smarty->assign('viewcontent', $view->build_columns()); $smarty->assign('viewcontent', $view->build_columns());
$smarty->assign('viewowner', $view->get('owner')); $smarty->assign('viewowner', $view->get('owner'));
$smarty->assign('formattedowner', $view->formatted_owner()); $smarty->assign('formattedowner', $view->formatted_owner());
$smarty->assign('streditviewbutton', ($new) ? get_string('backtocreatemyview', 'view') : get_string('editmyview', 'view'));
if ($USER->get('id') == $view->get('owner')) { if ($USER->get('id') == $view->get('owner')) {
$smarty->assign('can_edit', true); $smarty->assign('can_edit', true);
......
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