Add "create a new group" button to group directory
This commit is contained in:
parent
e188a11ef6
commit
88bcc7728c
@ -201,12 +201,30 @@ END_OF_INSTRUCTIONS;
|
|||||||
/**
|
/**
|
||||||
* Content area
|
* Content area
|
||||||
*
|
*
|
||||||
* Shows the list of popular notices
|
* Shows the groups
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function showContent()
|
function showContent()
|
||||||
{
|
{
|
||||||
|
if (common_logged_in()) {
|
||||||
|
$this->elementStart(
|
||||||
|
'p',
|
||||||
|
array(
|
||||||
|
'id' => 'new_group'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
$this->element(
|
||||||
|
'a',
|
||||||
|
array(
|
||||||
|
'href' => common_local_url('newgroup'),
|
||||||
|
'class' => 'more'),
|
||||||
|
// TRANS: Link to create a new group on the group list page.
|
||||||
|
_('Create a new group')
|
||||||
|
);
|
||||||
|
$this->elementEnd('p');
|
||||||
|
}
|
||||||
|
|
||||||
$this->showForm();
|
$this->showForm();
|
||||||
|
|
||||||
$this->elementStart('div', array('id' => 'profile_directory'));
|
$this->elementStart('div', array('id' => 'profile_directory'));
|
||||||
|
Loading…
Reference in New Issue
Block a user