diff options
author | Zach Copley <zach@controlyourself.ca> | 2009-04-03 14:22:10 -0700 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2009-04-03 14:22:10 -0700 |
commit | 123f6d7d0cfa707e7a5167257978a46aaa7d2938 (patch) | |
tree | f2c079a38806efc6222988b45d756dbca79d126e /actions/favorited.php | |
parent | d83f6c32690b34a4aa283f8665c9fa2c4f7df185 (diff) | |
parent | 8f969f8f9834869dd8546ed5e4cca0262aff2ca9 (diff) |
Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x
Diffstat (limited to 'actions/favorited.php')
-rw-r--r-- | actions/favorited.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/actions/favorited.php b/actions/favorited.php index 231b97897..20a354674 100644 --- a/actions/favorited.php +++ b/actions/favorited.php @@ -143,6 +143,25 @@ class FavoritedAction extends Action $this->elementStart('div', 'instructions'); $this->raw($output); $this->elementEnd('div'); + + $favorite = new Fave; + + if ($favorite->count()) { + return; + } + + $message = _('Favorite notices appear on this page but noone has favorited one yet.') . ' '; + + if (common_logged_in()) { + $message .= _('Be the first to add a notice to your favorites by clicking the fave button next to any notice you like.'); + } + else { + $message .= _('Why not [register an account](%%action.register%%) and be the first to add a notice to your favorites!'); + } + + $this->elementStart('div', 'blankfiller'); + $this->raw(common_markup_to_html($message)); + $this->elementEnd('div'); } /** |