diff options
author | Robin Millette <millette@controlyourself.ca> | 2009-01-23 04:52:39 +0000 |
---|---|---|
committer | Robin Millette <millette@plantard.controlezvous.ca> | 2009-01-23 04:52:39 +0000 |
commit | 597245ffc3fc15876f005c98aa585288f4901635 (patch) | |
tree | 11c8959f5b31e14d93c51b57e2c4536aa420332a | |
parent | 488bf16bc8c3fdfbde228b52c80a034e889fb876 (diff) |
make avatar bigger on single notice pages
-rw-r--r-- | lib/noticelist.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php index 8b0c5f322..20bf3c9f1 100644 --- a/lib/noticelist.php +++ b/lib/noticelist.php @@ -274,14 +274,19 @@ class NoticeListItem extends Widget function showAvatar() { - $avatar = $this->profile->getAvatar(AVATAR_STREAM_SIZE); + if ('shownotice' === $this->out->trimmed('action')) { + $avatar_size = AVATAR_PROFILE_SIZE; + } else { + $avatar_size = AVATAR_STREAM_SIZE; + } + $avatar = $this->profile->getAvatar($avatar_size); $this->out->element('img', array('src' => ($avatar) ? common_avatar_display_url($avatar) : - common_default_avatar(AVATAR_STREAM_SIZE), + common_default_avatar($avatar_size), 'class' => 'avatar photo', - 'width' => AVATAR_STREAM_SIZE, - 'height' => AVATAR_STREAM_SIZE, + 'width' => $avatar_size, + 'height' => $avatar_size, 'alt' => ($this->profile->fullname) ? $this->profile->fullname : |