From 27a615aefdb63875ebeb2d1657f7773e7d3bd9e8 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 14 Jun 2008 08:20:38 -0400 Subject: add public tab darcs-hash:20080614122038-84dde-af7c2be04d41c1d85b62cf74724fe8e4a877a84a.gz --- actions/public.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'actions/public.php') diff --git a/actions/public.php b/actions/public.php index 270c082ba..099d1cc88 100644 --- a/actions/public.php +++ b/actions/public.php @@ -28,7 +28,9 @@ class PublicAction extends StreamAction { $page = ($this->arg('page')) ? ($this->arg('page')+0) : 1; - common_show_header(_t('Public timeline'), array($this, 'show_header')); + common_show_header(_t('Public timeline'), + array($this, 'show_header'), NULL, + array($this, 'show_top')); # XXX: Public sidebar here? @@ -37,6 +39,15 @@ class PublicAction extends StreamAction { common_show_footer(); } + function show_top($user) { + + if (common_logged_in()) { + common_notice_form(); + } + + $this->views_menu(); + } + function show_header() { common_element('link', array('rel' => 'alternate', 'href' => common_local_url('publicrss'), -- cgit v1.2.3-54-g00ecf