Commit 0acd81d0 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Point display links for group homepage to the group about page


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 0b40d632
......@@ -27,7 +27,7 @@
{elseif $view.type == 'dashboard'}
<h3><a href="{$WWWROOT}">{str tag=dashboardviewtitle section=view}</a></h3>
{elseif $view.type == 'grouphomepage'}
<h3><a href="{$WWWROOT}">{str tag=grouphomepageviewtitle section=view}</a></h3>
<h3><a href="{$WWWROOT}group/view.php?id={$GROUP->id}">{str tag=grouphomepageviewtitle section=view}</a></h3>
{else}
<h3><a href="{$WWWROOT}view/view.php?id={$view.id}">{$view.title|escape}</a></h3>
{/if}
......
......@@ -104,6 +104,11 @@ else if ($view->get('type') == 'dashboard') {
$title = get_string('usersdashboard', 'mahara', display_name($view->get('owner'), null, true));
define('TITLE', $title . ': ' . get_string('editcontentandlayout', 'view'));
}
else if ($view->get('type') == 'grouphomepage') {
$displaylink = get_config('wwwroot') . 'group/view.php?id=' . (int) $view->get('group');
$title = get_string('grouphomepage', 'view');
define('TITLE', $title . ': ' . get_string('editcontentandlayout', 'view'));
}
else if ($new) {
$displaylink = get_config('wwwroot') . 'view/view.php?id=' . $view->get('id') . '&new=1';
define('TITLE', get_string('editcontentandlayout', 'view'));
......
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