show lists as a comma-separated list in sidebar
This commit is contained in:
parent
90e6eab68e
commit
c8a58c924b
|
@ -304,6 +304,8 @@ class ProfileAction extends OwnerDesignAction
|
||||||
|
|
||||||
$cur = common_current_user();
|
$cur = common_current_user();
|
||||||
|
|
||||||
|
$first = true;
|
||||||
|
|
||||||
while ($lists->fetch()) {
|
while ($lists->fetch()) {
|
||||||
if (!$lists->private ||
|
if (!$lists->private ||
|
||||||
($lists->private && !empty($cur) && $cur->id == $profile->id)) {
|
($lists->private && !empty($cur) && $cur->id == $profile->id)) {
|
||||||
|
@ -314,10 +316,14 @@ class ProfileAction extends OwnerDesignAction
|
||||||
array('tagger' => $this->profile->nickname,
|
array('tagger' => $this->profile->nickname,
|
||||||
'tag' => $lists->tag));
|
'tag' => $lists->tag));
|
||||||
}
|
}
|
||||||
$this->elementStart('li');
|
if (!$first) {
|
||||||
|
$this->text(', ');
|
||||||
|
} else {
|
||||||
|
$first = false;
|
||||||
|
}
|
||||||
|
|
||||||
$this->element('a', array('href' => $url),
|
$this->element('a', array('href' => $url),
|
||||||
$lists->tag);
|
$lists->tag);
|
||||||
$this->elementEnd('li');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user