forked from GNUsocial/gnu-social
[CONTROLLER] Show dummy notices in main/all
This commit is contained in:
parent
8e30b9423b
commit
423129486c
@ -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'],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user