Commit c85f1f9e authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Add share link to view editor tabs

Signed-off-by: default avatarRichard Mansfield <>
parent 9e79e7bd
......@@ -140,6 +140,7 @@ $string['share'] = 'Share';
$string['sharewith'] = 'Share with';
$string['accesslist'] = 'Access list';
$string['sharewithmygroups'] = 'Share with My Groups';
$string['shareview'] = 'Share page';
$string['otherusersandgroups'] = 'Share with other users and groups';
$string['moreoptions'] = 'Advanced Options';
$string['allviews'] = 'All pages';
......@@ -183,7 +184,7 @@ $string['confirmcancelcreatingview'] = 'This page has not been completed. Do you
// view control stuff
$string['editblockspagedescription'] = '<p>Drag and drop content blocks from the tabs below to create your page.</p>';
$string['displaymyview'] = 'Display my page';
$string['displayview'] = 'Display page';
$string['editthisview'] = 'Edit this page';
$string['success.addblocktype'] = 'Added block successfully';
......@@ -3,5 +3,6 @@
<li><a{if $selected == 'content'} class="current-tab"{/if} href="{$WWWROOT}view/blocks.php?id={$viewid}{if $new}&new=1{/if}">{str tag=editcontent section=view}</a></li>
{if $edittitle}<li><a{if $selected == 'title'} class="current-tab"{/if} href="{$WWWROOT}view/edit.php?id={$viewid}{if $new}&new=1{/if}">{str tag=edittitleanddescription section=view}</a></li>{/if}
<li><a{if $selected == 'layout'} class="current-tab"{/if} href="{$WWWROOT}view/layout.php?id={$viewid}{if $new}&new=1{/if}">{str tag=editlayout section=view}</a></li>
<li class="displaymyview"><a id="btn-displaymyview" href="{$displaylink}{if $new}&new=1{/if}">{str tag=displaymyview section=view} &raquo;</a></li>
<li class="displaymypage"><a href="{$displaylink}{if $new}&new=1{/if}">{str tag=displayview section=view} &raquo;</a></li>
{if $edittitle}<li class="displaymypage"><a href="{$WWWROOT}view/access.php?id={$viewid}{if $new}&new=1{/if}">{str tag=shareview section=view} &raquo;</a></li>{/if}
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