[CONTROLLER] Show dummy notices in main/all

This commit is contained in:
Hugo Sales 2020-07-06 22:16:50 +00:00 committed by Hugo Sales
parent 8e30b9423b
commit 423129486c
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
2 changed files with 11 additions and 8 deletions

View File

@ -31,8 +31,6 @@
namespace App\Controller;
use App\Core\Controller;
use App\Core\Event;
use App\Util\Common;
class NetworkPublic extends Controller
{
@ -43,10 +41,9 @@ class NetworkPublic extends Controller
public function handle()
{
Event::handle('Test', ['foobar']);
Common::config('url', 'shortener');
return ['_template' => 'network/public.html.twig'];
return [
'_template' => 'network/public.html.twig',
'notices' => ['some notice', 'some other notice', 'some other more diferent notice'],
];
}
}

View File

@ -15,6 +15,12 @@
{% block body %}{% endblock %}
{% block javascripts %}{% endblock %}
<h1>Imagine some notices here</h1>
{% if notices is defined %}
{% for notice in notices %}
<div> {{notice}} </div>
{% endfor %}
{% else %}
No notices here.
{% endif %}
</body>
</html>