Add a link to the group search page from a user's own group list.

I've seen a request or two pop up for this on the Laconica group on
Identica, and I'd personally like there to be a link to the search
page from my own groups listing, as I often find myself looking for
one and end up at my browser's address bar.
This commit is contained in:
Meitar Moscovitz 2009-02-07 04:03:25 +11:00
parent 5cdead72cd
commit 8ec312043f
4 changed files with 15 additions and 3 deletions

View File

@ -125,6 +125,12 @@ class UsergroupsAction extends Action
_('Create a new group')); _('Create a new group'));
$this->elementEnd('p'); $this->elementEnd('p');
$this->elementStart('p', array('id' => 'group_search'));
$this->element('a', array('href' => common_local_url('groupsearch'),
'class' => 'more'),
_('Search for more groups'));
$this->elementEnd('p');
$offset = ($this->page-1) * GROUPS_PER_PAGE; $offset = ($this->page-1) * GROUPS_PER_PAGE;
$limit = GROUPS_PER_PAGE + 1; $limit = GROUPS_PER_PAGE + 1;

View File

@ -947,7 +947,7 @@ padding:0;
#new_group { #new_group, #group_search {
margin-bottom:18px; margin-bottom:18px;
} }
#new_group a { #new_group a {

View File

@ -238,7 +238,10 @@ background-color:#fcfcfc;
#new_group a { #new_group a {
background:transparent url(../images/icons/twotone/green/news.gif) no-repeat 0 45%; background:transparent url(../images/icons/twotone/green/news.gif) no-repeat 0 45%;
} }
#usergroups #new_group {
float: left;
margin-right: 2em;
}
.pagination .nav_prev a, .pagination .nav_prev a,
.pagination .nav_next a { .pagination .nav_next a {

View File

@ -238,7 +238,10 @@ background-color:#fcfcfc;
#new_group a { #new_group a {
background:transparent url(../images/icons/twotone/green/news.gif) no-repeat 0 45%; background:transparent url(../images/icons/twotone/green/news.gif) no-repeat 0 45%;
} }
#usergroups #new_group {
float: left;
margin-right: 2em;
}
.pagination .nav_prev a, .pagination .nav_prev a,
.pagination .nav_next a { .pagination .nav_next a {