Commit 9d44d447 authored by Nigel McNie's avatar Nigel McNie
Browse files

Some tidyups of the group info page.

parent f30eb045
......@@ -57,14 +57,16 @@ $string['reject'] = 'Reject';
$string['groupalreadyexists'] = 'A Group by this name already exists';
$string['Created'] = 'Created';
$string['groupadmins'] = 'Group admins';
// Used to refer to all the members of a group - NOT a "member" group role!
$string['member'] = 'member';
$string['members'] = 'members';
$string['Members'] = 'Members';
$string['memberrequests'] = 'Membership requests';
$string['declinerequest'] = 'Decline request';
$string['submittedviews'] = 'Submitted views';
$string['releaseview'] = 'Release view';
$string['tutor'] = 'Tutor';
$string['tutors'] = 'Tutors';
$string['member'] = 'Member';
$string['invite'] = 'Invite';
$string['remove'] = 'Remove';
$string['updatemembership'] = 'Update membership';
......
......@@ -459,6 +459,8 @@ function group_get_membersearch_data($group, $query, $offset, $limit) {
'nexttext' => '',
'lasttext' => '',
'numbersincludefirstlast' => false,
'resultcounttextsingular' => get_string('member', 'group'),
'resultcounttextplural' => get_string('members', 'group'),
));
return array($html, $pagination, $results['count'], $offset);
......
......@@ -1884,7 +1884,23 @@ span.viewicon {
#group-description {
margin-top: 0;
}
#group-info {
list-style-type: none;
}
#grouppage-container h3 {
margin-top: 0;
}
#membersearchresults {
width: 24em;
border-top: 1px solid #95a8b7;
border-bottom: 1px solid #95a8b7;
}
#membersearchresults h4 {
margin: 0;
}
#membersearchresults p {
margin: .25em 0 0 65px;
}
/* GROUPS > MY GROUPS */
#mygroupstable {
......
{if !empty($results.data)}
{foreach from=$results.data item=r}
<tr class="{cycle values="r0,r1"}">
<td style="width: 300px; border: 1px solid red;">
<h4 style="margin:0;"><a href="{$WWWROOT}user/view.php?id={$r.id|escape}">{$r.name|escape}</a></h4>
<div style="float: left;"><img src="{$WWWROOT}thumb.php?type=profileicon&amp;maxsize=40&amp;id={$r.id|escape}" alt=""></div>
<p style="margin: .25em 0 0 65px;"><strong>Joined:</strong> {$r.jointime}</p>
<p style="margin: .25em 0 0 65px;">{$r.introduction|str_shorten:80:true}</p>
<td>
<h4><a href="{$WWWROOT}user/view.php?id={$r.id|escape}">{$r.name|escape}</a></h4>
<div class="fl"><img src="{$WWWROOT}thumb.php?type=profileicon&amp;maxsize=40&amp;id={$r.id|escape}" alt=""></div>
<p><strong>Joined:</strong> {$r.jointime}</p>
<p>{$r.introduction|str_shorten:80:true}</p>
</td>
</tr>
{/foreach}
......
......@@ -8,12 +8,12 @@
{if $group->description}<p id="group-description">{$group->description}</p> {/if}
<ul>
<li>{str tag=groupadmins section=group}: {foreach name=admins from=$group->admins item=id}
<ul id="group-info">
<li><strong>{str tag=groupadmins section=group}:</strong> {foreach name=admins from=$group->admins item=id}
<img src="{$WWWROOT}thumb.php?type=profileicon&amp;maxsize=20&amp;id={$id|escape}" alt="">
<a href="{$WWWROOT}user/view.php?id={$id|escape}">{$id|display_name|escape}</a>{if !$smarty.foreach.admins.last}, {/if}
{/foreach}</li>
<li>{str tag=Created section=group}: {$group->ctime}</li>
<li><strong>{str tag=Created section=group}:</strong> {$group->ctime}</li>
{if $strgroupviews}<li>{$strgroupviews}</li>{/if}
{if $strcontent}<li>{$strcontent}</li>{/if}
</ul>
......
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