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

Commit 1ab0de3d authored by sarven's avatar sarven

If user has fn, then it will not link to their own profile with @class

'fn'. Only put @class 'fn' on the anchor if there is no fn.
parent caeb74c9
...@@ -243,8 +243,9 @@ class ShowstreamAction extends Action ...@@ -243,8 +243,9 @@ class ShowstreamAction extends Action
$this->elementStart('dl', 'user_nickname'); $this->elementStart('dl', 'user_nickname');
$this->element('dt', null, _('Nickname')); $this->element('dt', null, _('Nickname'));
$this->elementStart('dd'); $this->elementStart('dd');
$hasFN = ($this->profile->fullname) ? 'nickname url uid' : 'fn nickname url uid';
$this->element('a', array('href' => $this->profile->profileurl, $this->element('a', array('href' => $this->profile->profileurl,
'rel' => 'me', 'class' => 'nickname url uid'), 'rel' => 'me', 'class' => $hasFN),
$this->profile->nickname); $this->profile->nickname);
$this->elementEnd('dd'); $this->elementEnd('dd');
$this->elementEnd('dl'); $this->elementEnd('dl');
......
...@@ -87,7 +87,7 @@ class ProfileList extends Widget ...@@ -87,7 +87,7 @@ class ProfileList extends Widget
function showProfile() function showProfile()
{ {
$this->out->elementStart('li', array('class' => 'profile vcard', $this->out->elementStart('li', array('class' => 'profile',
'id' => 'profile-' . $this->profile->id)); 'id' => 'profile-' . $this->profile->id));
$user = common_current_user(); $user = common_current_user();
......
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