show self-tags in profile list

darcs-hash:20081120225917-84dde-f9813a891a6547264817ed289b9899382abd8c60.gz
This commit is contained in:
Evan Prodromou 2008-11-20 17:59:17 -05:00
parent a31d13e020
commit 2977443534

View File

@ -108,6 +108,19 @@ class ProfileList {
common_element_end('p'); common_element_end('p');
} }
$tags = Profile_tag::getTags($this->profile->id, $this->profile->id);
if ($tags) {
common_element_start('p', 'tags');
foreach ($tags as $tag) {
common_element('a', array('rel' => 'tag',
'href' => common_local_url('peopletag',
array('tag' => $tag))),
$tag);
}
common_element_end('p');
}
common_element_end('li'); common_element_end('li');
} }