Commit 1635da72 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Use the group name as the heading on all group tab pages

parent 2b106fcb
......@@ -25,10 +25,7 @@
*/
define('INTERNAL', 1);
define('MENUITEM', 'groups/mygroups');
define('SECTION_PLUGINTYPE', 'artefact');
define('SECTION_PLUGINNAME', 'file');
define('SECTION_PAGE', 'groupfiles');
define('MENUITEM', 'groups');
require(dirname(dirname(dirname(__FILE__))) . '/init.php');
require_once(get_config('libroot') . 'group.php');
......@@ -67,7 +64,7 @@ $smarty = smarty(
),
)
);
$smarty->assign('heading', get_string('groupfilesfor', 'artefact.file', $group->name));
$smarty->assign('heading', $group->name);
$smarty->assign('groupid', $groupid);
$smarty->assign('grouptabs', group_get_menu_tabs($group));
$smarty->assign('INLINEJAVASCRIPT', $javascript);
......
......@@ -67,7 +67,6 @@ $string['folder'] = 'Folder';
$string['Folders'] = 'Folders';
$string['foldercreated'] = 'Folder created';
$string['groupfiles'] = 'Group Files';
$string['groupfilesfor'] = 'Group Files for %s';
$string['home'] = 'Home';
$string['htmlremovedmessage'] = 'You are viewing <strong>%s</strong> by <a href="%s">%s</a>. The file displayed below has been filtered to remove malicious content, and is only a rough representation of the original.';
$string['htmlremovedmessagenoowner'] = 'You are viewing <strong>%s</strong>. The file displayed below has been filtered to remove malicious content, and is only a rough representation of the original.';
......
......@@ -2,7 +2,10 @@
{include file="sidebar.tpl"}
{include file="columnleftstart.tpl"}
{if $groupid}{include file="group/tabstart.tpl" current="files"}{/if}
{if $groupid}
<h2>{$heading}</h2>
{include file="group/tabstart.tpl" current="files"}
{/if}
{str tag='fileinstructions' section='artefact.file'}
<div id="myfiles">
<div id="uploader"></div>
......
......@@ -70,8 +70,6 @@ $string['nobodycanseethisview'] = 'Nobody can see this View';
$string['noviews'] = 'You have no Views.';
$string['viewsownedbygroup'] = 'Views owned by this group';
$string['viewssharedtogroup'] = 'Views shared to this group';
$string['viewsownedby'] = 'Views owned by %s';
$string['viewssharedto'] = 'Views shared to %s';
// access levels
$string['public'] = 'Public';
......
......@@ -25,7 +25,7 @@
*/
define('INTERNAL', 1);
define('MENUITEM', 'groups/mygroups');
define('MENUITEM', 'groups');
define('SECTION_PLUGINTYPE', 'core');
define('SECTION_PLUGINNAME', 'view');
......@@ -51,14 +51,13 @@ $shared = param_boolean('shared', 0) && $member;
$can_edit = group_user_can_edit_views($groupid);
$smarty = smarty();
$smarty->assign('heading', $group->name);
if ($shared) {
$data = View::get_sharedviews_data($limit, $offset, $groupid);
$smarty->assign('shared', true);
$smarty->assign('heading', get_string('viewssharedto', 'view', $group->name));
}
else {
$smarty->assign('heading', get_string('viewsownedby', 'view', $group->name));
if ($can_edit) {
$data = View::get_myviews_data($limit, $offset, $groupid);
}
......
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