diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-04-03 15:31:07 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-04-03 15:31:07 -0400 |
commit | 81c72956a615eee04cf3770b4e197dd7fe563357 (patch) | |
tree | 10201707dc6c40fe9d4e6da724e2a1b14ef1bcc4 /actions/publictagcloud.php | |
parent | 5eacffcb3a29e6a997e50483d99eb0bf15711b2c (diff) | |
parent | 4d4e6ead9c98afeb43e5913b734eea9b5c783955 (diff) |
Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x
Diffstat (limited to 'actions/publictagcloud.php')
-rw-r--r-- | actions/publictagcloud.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/actions/publictagcloud.php b/actions/publictagcloud.php index 6f5fc7541..5322372b2 100644 --- a/actions/publictagcloud.php +++ b/actions/publictagcloud.php @@ -62,6 +62,24 @@ class PublictagcloudAction extends Action $this->element('p', 'instructions', sprintf(_('These are most popular recent tags on %s '), common_config('site', 'name'))); + + $tags = new Notice_tag(); + if ($tags->count()) { + return; + } + + $message = _('Noone has posted a notice with a [hashtag](%%doc.tags%%) yet.') . ' '; + + if (common_logged_in()) { + $message .= _('Be the first to post one!'); + } + else { + $message .= _('Why not [register an account](%%action.register%%) and be the first to post one!'); + } + + $this->elementStart('div', 'blankfiller'); + $this->raw(common_markup_to_html($message)); + $this->elementEnd('div'); } function showLocalNav() |