We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 27a615ae authored by Evan Prodromou's avatar Evan Prodromou

add public tab

darcs-hash:20080614122038-84dde-af7c2be04d41c1d85b62cf74724fe8e4a877a84a.gz
parent 9ff4794f
...@@ -28,7 +28,9 @@ class PublicAction extends StreamAction { ...@@ -28,7 +28,9 @@ class PublicAction extends StreamAction {
$page = ($this->arg('page')) ? ($this->arg('page')+0) : 1; $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? # XXX: Public sidebar here?
...@@ -37,6 +39,15 @@ class PublicAction extends StreamAction { ...@@ -37,6 +39,15 @@ class PublicAction extends StreamAction {
common_show_footer(); common_show_footer();
} }
function show_top($user) {
if (common_logged_in()) {
common_notice_form();
}
$this->views_menu();
}
function show_header() { function show_header() {
common_element('link', array('rel' => 'alternate', common_element('link', array('rel' => 'alternate',
'href' => common_local_url('publicrss'), 'href' => common_local_url('publicrss'),
......
...@@ -32,16 +32,20 @@ class StreamAction extends Action { ...@@ -32,16 +32,20 @@ class StreamAction extends Action {
$nickname = $this->trimmed('nickname'); $nickname = $this->trimmed('nickname');
common_element_start('ul', array('id' => 'nav_views')); common_element_start('ul', array('id' => 'nav_views'));
common_menu_item(common_local_url('public'),
_t('Public'),
_t('Public stream'),
$action == 'public');
common_menu_item(common_local_url('all', array('nickname' =>
$nickname)),
_t('Personal'),
(($user->fullname) ? $user->fullname : $nickname) . _t(' and friends'),
$action == 'all');
common_menu_item(common_local_url('showstream', array('nickname' => common_menu_item(common_local_url('showstream', array('nickname' =>
$nickname)), $nickname)),
_t('Profile'), _t('Profile'),
($user->fullname) ? $user->fullname : $nickname, ($user->fullname) ? $user->fullname : $nickname,
$action == 'showstream'); $action == 'showstream');
common_menu_item(common_local_url('all', array('nickname' =>
$nickname)),
_t('All'),
_t('All'),
$action == 'all');
common_element_end('ul'); common_element_end('ul');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment