Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
9c95720a
Commit
9c95720a
authored
Aug 21, 2008
by
Nigel McNie
Browse files
Add the reason why the user wants to belong to a group to the pending members page.
parent
68f67c88
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/group.php
View file @
9c95720a
...
...
@@ -708,6 +708,9 @@ function group_get_membersearch_data($group, $query, $offset, $limit, $membershi
if
(
$membershiptype
==
'request'
)
{
foreach
(
$results
[
'data'
]
as
&
$r
)
{
$r
[
'addform'
]
=
group_get_adduser_form
(
$r
[
'id'
],
$group
);
// TODO: this will suck when there's quite a few on the page,
// would be better to grab all the reasons in one go
$r
[
'reason'
]
=
get_field
(
'group_member_request'
,
'reason'
,
'group'
,
$group
,
'member'
,
$r
[
'id'
]);
}
}
$smarty
->
assign
(
'membershiptype'
,
$membershiptype
);
...
...
htdocs/theme/default/templates/group/membersearchresults.tpl
View file @
9c95720a
...
...
@@ -13,7 +13,7 @@
<p><strong>
Joined:
</strong>
{
$r.jointime
}
</p>
<p>
{
$r.introduction
|
str_shorten
:
80
:
true
}
</p>
{
elseif
$membershiptype
==
'request'
}
<p>
{
str
tag
=
hasrequestedmembership
section
=
group
}
</p>
<p>
{
str
tag
=
hasrequestedmembership
section
=
group
}
.
{
if
$r.reason
}
{
str
tag
=
reason
}
:
<br>
{
$r.reason
|
format_whitespace
}{/
if
}
</p>
<p>
{
$r.addform
}
</p>
{
elseif
$membershiptype
==
'invite'
}
<p>
{
str
tag
=
hasbeeninvitedtojoin
section
=
group
}
</p>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment