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

Commit d012bdab authored by Evan Prodromou's avatar Evan Prodromou

Show NoticeForm only if logged in

parent 10a4d9ea
......@@ -208,7 +208,11 @@ class Action extends HTMLOutputter // lawsuit
$this->showLogo();
$this->showPrimaryNav();
$this->showSiteNotice();
$this->showNoticeForm();
if (common_logged_in()) {
$this->showNoticeForm();
} else {
$this->showAnonymousMessage();
}
$this->elementEnd('div');
}
......@@ -285,6 +289,11 @@ class Action extends HTMLOutputter // lawsuit
$notice_form->show();
}
function showAnonymousMessage()
{
// needs to be defined by the class
}
function showCore()
{
$this->elementStart('div', array('id' => 'core'));
......
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