summaryrefslogtreecommitdiff
path: root/lib/noticelist.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-03-30 10:38:26 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-03-30 10:38:26 -0400
commita68836acb4c43500dbff89be1faec19969bc34c2 (patch)
tree181ad1ed066fbd120c38a1a7724300e606edf593 /lib/noticelist.php
parent650a86d79aacb0657a562183e5b5e37ace6127f3 (diff)
add full name title to notice list link
Diffstat (limited to 'lib/noticelist.php')
-rw-r--r--lib/noticelist.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php
index 9fc0126b3..8523f2e63 100644
--- a/lib/noticelist.php
+++ b/lib/noticelist.php
@@ -258,8 +258,12 @@ class NoticeListItem extends Widget
function showAuthor()
{
$this->out->elementStart('span', 'vcard author');
- $this->out->elementStart('a', array('href' => $this->profile->profileurl,
- 'class' => 'url'));
+ $attrs = array('href' => $this->profile->profileurl,
+ 'class' => 'url');
+ if (!empty($this->profile->fullname)) {
+ $attrs['title'] = $this->profile->fullname . ' (' . $this->profile->nickname . ') ';
+ }
+ $this->out->elementStart('a', $attrs);
$this->showAvatar();
$this->showNickname();
$this->out->elementEnd('a');