Commit 8204e909 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Remove 'View' from group homepage title


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 8521f276
......@@ -306,6 +306,7 @@ $string['rolechanged'] = 'Role changed';
$string['removefromgroup'] = 'Remove from group';
$string['userremoved'] = 'User removed';
$string['About'] = 'About';
$string['aboutgroup'] = 'About %s';
$string['Joined'] = 'Joined';
......
......@@ -1777,7 +1777,7 @@ function xmldb_core_upgrade($oldversion=0) {
'owner' => 0,
'numcolumns' => 1,
'template' => 1,
'title' => get_string('grouphomepageviewtitle', 'view'),
'title' => get_string('grouphomepage', 'view'),
'ctime' => $dbtime,
'atime' => $dbtime,
'mtime' => $dbtime,
......
......@@ -1374,7 +1374,7 @@ function install_system_grouphomepage_view() {
'owner' => 0,
'numcolumns' => 1,
'template' => 1,
'title' => get_string('grouphomepageviewtitle', 'view'),
'title' => get_string('grouphomepage', 'view'),
'ctime' => $dbtime,
'atime' => $dbtime,
'mtime' => $dbtime,
......
......@@ -2832,6 +2832,10 @@ class View {
$ownername = $this->formatted_owner();
$wwwroot = get_config('wwwroot');
if ($this->type == 'grouphomepage') {
return '<strong>' . get_string('aboutgroup', 'group', $ownername) . '</strong>';
}
if ($this->owner) {
$ownerlink = $wwwroot . 'user/view.php?id=' . $this->owner;
}
......
......@@ -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}group/view.php?id={$GROUP->id}">{str tag=grouphomepageviewtitle section=view}</a></h3>
<h3><a href="{$WWWROOT}group/view.php?id={$GROUP->id}">{str tag=grouphomepage section=view}</a></h3>
{else}
<h3><a href="{$WWWROOT}view/view.php?id={$view.id}">{$view.title|escape}</a></h3>
{/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