Updated tag list output in subscriptions list. Matches userprofile.

This commit is contained in:
Sarven Capadisli 2010-03-24 20:50:07 +01:00
parent 711079a3cb
commit 2b3a2e6b6d

View File

@ -113,12 +113,13 @@ class SubscriptionListItem extends ProfileListItem
$this->out->elementStart('ul', 'tags xoxo'); $this->out->elementStart('ul', 'tags xoxo');
foreach ($tags as $tag) { foreach ($tags as $tag) {
$this->out->elementStart('li'); $this->out->elementStart('li');
$this->out->element('span', 'mark_hash', '#'); // Avoid space by using raw output.
$this->out->element('a', array('rel' => 'tag', $pt = '<span class="mark_hash">#</span><a rel="tag" href="' .
'href' => common_local_url($this->action->trimmed('action'), common_local_url($this->action->trimmed('action'),
array('nickname' => $this->owner->nickname, array('nickname' => $this->owner->nickname,
'tag' => $tag))), 'tag' => $tag)) .
$tag); '">' . $tag . '</a>';
$this->out->raw($pt);
$this->out->elementEnd('li'); $this->out->elementEnd('li');
} }
$this->out->elementEnd('ul'); $this->out->elementEnd('ul');