$message .= sprintf(_('You can try to [nudge %1$s](../%2$s) from their profile or [post something to them](%%%%action.newnotice%%%%?status_textarea=%3$s).'), $this->user->nickname, $this->user->nickname, '@' . $this->user->nickname);
}
} else {
$message .= sprintf(_('You can try to [nudge %1$s](../%2$s) from their profile or [post something to them](%%%%action.newnotice%%%%?status_textarea=%3$s).'), $this->user->nickname, $this->user->nickname, '@' . $this->user->nickname);
}
} else {
+ // TRANS: Encoutagement displayed on empty timeline user pages for anonymous users.
+ // TRANS: %s is a user nickname. This message contains Markdown links. Keep "](" together.
$message .= sprintf(_('Why not [register an account](%%%%action.register%%%%) and then nudge %s or post a notice to them.'), $this->user->nickname);
}
$message .= sprintf(_('Why not [register an account](%%%%action.register%%%%) and then nudge %s or post a notice to them.'), $this->user->nickname);
}
@@ -157,7+157,16 @@ class AllAction extends ProfileAction
function showContent()
{
if (Event::handle('StartShowAllContent', array($this))) {
function showContent()
{
if (Event::handle('StartShowAllContent', array($this))) {
- $nl = new NoticeList($this->notice, $this);
+
+ $profile = null;
+
+ $current_user = common_current_user();
+
+ if (!empty($current_user)) {
+ $profile = $current_user->getProfile();
+ }
+
+ $nl = new ThreadedNoticeList($this->notice, $this, $profile);
$cnt = $nl->show();
$cnt = $nl->show();
@@ -178,10+187,10 @@ class AllAction extends ProfileAction
{
$user = common_current_user();
if ($user && ($user->id == $this->user->id)) {
{
$user = common_current_user();
if ($user && ($user->id == $this->user->id)) {
- // TRANS: H1 text
+ // TRANS: H1 text for page when viewing a list for self.
$this->element('h1', null, _("You and friends"));
} else {
$this->element('h1', null, _("You and friends"));
} else {
- // TRANS: H1 text. %1$s is user nickname
+ // TRANS: H1 text for page. %s is a user nickname.
$this->element('h1', null, sprintf(_('%s and friends'), $this->user->nickname));
}
}
$this->element('h1', null, sprintf(_('%s and friends'), $this->user->nickname));