[Directory] Added the route, controller and a blank template file - something is broken

This commit is contained in:
Angelo D. Moura 2020-11-29 05:47:25 +00:00 committed by Hugo Sales
parent 4f85efa071
commit eb1ef4dd0f
No known key found for this signature in database
GPG Key ID: 7D0C7EAFC9D835A0
3 changed files with 41 additions and 0 deletions

View File

@ -147,4 +147,13 @@ END;
'order by a.nickname ASC'),
];
}
public function groups(Request $request)
{
return [
'_template' => 'network/groups.html.twig',
'groups' => DB::dql('select group from App\Entity\Groups group ' .
'order by group.created DESC'),
];
}
}

View File

@ -54,6 +54,7 @@ abstract class Main
$r->connect('favourites', '/{nickname<' . Nickname::DISPLAY_FMT . '>}/favourites', [C\Network::class, 'favourites']);
$r->connect('actors', '/actors', [C\Network::class, 'actors']);
$r->connect('groups', '/groups', [C\Network::class, 'groups']);
$r->connect('panel', '/panel', [C\AdminPanel::class, 'site']);
$r->connect('panel_site', '/panel/site', [C\AdminPanel::class, 'site']);

View File

@ -0,0 +1,31 @@
{% extends 'left/left.html.twig' %}
{% block meta %}
{{ parent() }}
{% endblock %}
{% block title %}Welcome!{% endblock %}
{% block stylesheets %}
{{ parent() }}
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/network/public.css') }}"
media="screen and (min-width: 1300px)">
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/network/public_mid.css') }}"
media="screen and (max-width: 1300px)">
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/network/public_small.css') }}"
media="screen and (max-width: 750px)">
{% endblock %}
{% block header %}
{{ parent() }}
{% endblock %}
{% block left %}
{{ parent() }}
{% endblock %}
{% block body %}
{% endblock body %}
{% block javascripts %}{% endblock %}