We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit f5198417 authored by sarven's avatar sarven

Matching markup for tags

parent 96e40e06
......@@ -288,7 +288,7 @@ class ShowstreamAction extends Action
if (count($tags) > 0) {
$this->elementStart('dl', 'user_tags');
$this->element('dt', null, _('Tags'));
$this->elementStart('dd', 'tags');
$this->elementStart('dd');
$this->elementStart('ul', 'tags xoxo');
foreach ($tags as $tag) {
$this->elementStart('li');
......
......@@ -156,8 +156,7 @@ class ProfileList extends Widget
# Get tags
$tags = Profile_tag::getTags($this->owner->id, $this->profile->id);
$this->out->elementStart('div', 'tags_user');
$this->out->elementStart('dl');
$this->out->elementStart('dl', 'user_tags');
$this->out->elementStart('dt');
if ($user->id == $this->owner->id) {
$this->out->element('a', array('href' => common_local_url('tagother',
......@@ -166,13 +165,13 @@ class ProfileList extends Widget
} else {
$this->out->text(_('Tags'));
}
$this->out->text(":");
$this->out->elementEnd('dt');
$this->out->elementStart('dd');
if ($tags) {
$this->out->elementStart('ul', 'tags xoxo');
foreach ($tags as $tag) {
$this->out->elementStart('li');
$this->element('span', 'mark_hash', '#');
$this->out->element('a', array('rel' => 'tag',
'href' => common_local_url($this->action,
array('nickname' => $this->owner->nickname,
......@@ -186,7 +185,6 @@ class ProfileList extends Widget
}
$this->out->elementEnd('dd');
$this->out->elementEnd('dl');
$this->out->elementEnd('div');
}
if ($user && $user->id == $this->owner->id) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment