From 3265812833f084a3bcc0734feffd5e7348b25c4e Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 27 Jun 2008 18:29:30 -0400 Subject: show exact date when needed darcs-hash:20080627222930-84dde-e54a369d91060b7ff2559af9ff08735b2eec43d9.gz --- lib/stream.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'lib/stream.php') diff --git a/lib/stream.php b/lib/stream.php index 4ffe27d3c..b2f57fab3 100644 --- a/lib/stream.php +++ b/lib/stream.php @@ -28,7 +28,7 @@ class StreamAction extends Action { } function views_menu() { - + $user = NULL; $action = $this->trimmed('action'); $nickname = $this->trimmed('nickname'); @@ -36,9 +36,9 @@ class StreamAction extends Action { if ($nickname) { $user = User::staticGet('nickname', $nickname); } - + common_element_start('ul', array('id' => 'nav_views')); - + common_menu_item(common_local_url('all', array('nickname' => $nickname)), _t('Personal'), @@ -46,12 +46,12 @@ class StreamAction extends Action { $action == 'all'); common_menu_item(common_local_url('showstream', array('nickname' => $nickname)), - _t('Profile'), + _t('Profile'), ($user && $user->fullname) ? $user->fullname : $nickname, $action == 'showstream'); common_element_end('ul'); } - + function show_notice($notice) { global $config; $profile = $notice->getProfile(); @@ -78,7 +78,8 @@ class StreamAction extends Action { $noticeurl = common_local_url('shownotice', array('notice' => $notice->id)); common_element_start('p', 'time'); common_element('a', array('class' => 'notice', - 'href' => $noticeurl), + 'href' => $noticeurl, + 'title' => common_exact_date($notice->created)), common_date_string($notice->created)); common_element_end('p'); common_element_end('li'); -- cgit v1.2.3-54-g00ecf