summaryrefslogtreecommitdiff
path: root/actions/all.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-04-07 17:14:10 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-04-07 17:14:10 -0400
commit92d18134bfe082f75211b3baa93f20d88367dba6 (patch)
tree8fdfc1cd8204eaad59446cf688d22d87ce02dc98 /actions/all.php
parent770788d98eb9dfca51e6299e023edab26765c0bf (diff)
parent05b04b7970d1b0f1e35a64a5537ad61e2fb8db1c (diff)
Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x
Diffstat (limited to 'actions/all.php')
-rw-r--r--actions/all.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/actions/all.php b/actions/all.php
index 8e67ec0f3..9a1632670 100644
--- a/actions/all.php
+++ b/actions/all.php
@@ -93,6 +93,32 @@ class AllAction extends Action
$nav->show();
}
+ function showPageNotice()
+ {
+ $notice = $this->user->noticesWithFriends(0, 1);
+ if ($notice->count()) {
+ return;
+ }
+
+ $message = sprintf(_('This is the timeline for %s and friends but no one has posted anything yet.'), $this->user->nickname) . ' ';
+
+ if (common_logged_in()) {
+ $current_user = common_current_user();
+ if ($this->user->id === $current_user->id) {
+ $message .= _('Try subscribing to more people, [join a group](%%action.groups) or post something yourself.');
+ } else {
+ $message .= sprintf(_('You can try to [nudge %s](./) from his profile or [post something to his or her attention](%%%%action.newnotice%%%%?status_textarea=%s).'), $this->user->nickname, '@' . $this->user->nickname);
+ }
+ }
+ else {
+ $message .= sprintf(_('Why not [register an account](%%%%action.register%%%%) and then nudge %s or post a notice to his or her attention.'), $this->user->nickname);
+ }
+
+ $this->elementStart('div', 'guide');
+ $this->raw(common_markup_to_html($message));
+ $this->elementEnd('div');
+ }
+
function showContent()
{
$notice = $this->user->noticesWithFriends(($this->page-1)*NOTICES_PER_PAGE, NOTICES_PER_PAGE + 1);