forked from GNUsocial/gnu-social
[Directory] Added the route, controller and a blank template file - something is broken
This commit is contained in:
parent
4f85efa071
commit
eb1ef4dd0f
@ -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'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -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']);
|
||||
|
31
templates/network/groups.html.twig
Normal file
31
templates/network/groups.html.twig
Normal 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 %}
|
Loading…
Reference in New Issue
Block a user