add instructions to the public page for people who aren't logged in

darcs-hash:20081202193857-5ed1f-1705c3f615b96790dcae30ec240c25721ea443cc.gz
This commit is contained in:
Evan Prodromou 2008-12-02 14:38:57 -05:00
parent de9ea671fc
commit 4c26cb1a81

View File

@ -44,11 +44,23 @@ class PublicAction extends StreamAction {
function show_top() {
if (common_logged_in()) {
common_notice_form('public');
} else {
$instr = $this->get_instructions();
$output = common_markup_to_html($instr);
common_element_start('div', 'instructions');
common_raw($output);
common_element_end('div');
}
$this->public_views_menu();
}
function get_instructions() {
return _('This is %%site.name%%, a [micro-blogging](http://en.wikipedia.org/wiki/Micro-blogging) service ' .
'based on the Free Software [Laconica](http://laconi.ca/) tool. [Read more](%%doc.about%%)' .
'[Join now](%%action.register%%) to share notices about yourself with friends, family, and colleagues!');
}
function show_header() {
common_element('link', array('rel' => 'alternate',
'href' => common_local_url('publicrss'),