Commit 156b1464 authored by Ruslan Kabalin's avatar Ruslan Kabalin
Browse files

groupinfo: displaying group category (bug #627825)


Signed-off-by: default avatarRuslan Kabalin <ruslan.kabalin@luns.net.uk>
parent 7ef85b88
......@@ -129,6 +129,9 @@ class PluginBlocktypeGroupInfo extends SystemBlocktype {
}
}
$group->settingsdescription = group_display_settings($group);
if (get_config('allowgroupcategories')) {
$group->categorytitle = ($group->category) ? get_field('group_category', 'title', 'id', $group->category) : '';
}
$filecounts = ArtefactTypeFileBase::count_user_files(null, $group->id, null);
......
......@@ -4,6 +4,7 @@
<a href="{$WWWROOT}user/view.php?id={$id}">{$id|display_name|escape}</a>{if !$.foreach.admins.last}, {/if}
{/foreach}</li>
<li><label>{str tag=grouptype section=group}:</label> {$group->settingsdescription}</li>
{if $group->categorytitle}<li><label>{str tag=groupcategory section=group}:</label> {$group->categorytitle}</li>{/if}
<li><label>{str tag=Created section=group}:</label> {$group->ctime}</li>
<li><span><label>{str tag=Members section=group}:</label> {$membercount}&nbsp;</span>
<span><label>{str tag=Views section=view}:</label> {$viewcount}&nbsp;</span>
......
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