forked from GNUsocial/gnu-social
[Directory] Add the route, controller function, and blank template file
This commit is contained in:
parent
e14efe86a4
commit
19be786da8
@ -138,4 +138,11 @@ END;
|
||||
'order by f.created DESC', ['id' => $actor_id]),
|
||||
];
|
||||
}
|
||||
|
||||
public function actors(Request $request)
|
||||
{
|
||||
return [
|
||||
'_template' => 'network/public.html.twig',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -53,6 +53,8 @@ abstract class Main
|
||||
$r->connect('replies', '/{nickname<' . Nickname::DISPLAY_FMT . '>}/replies', [C\Network::class, 'replies']);
|
||||
$r->connect('favourites', '/{nickname<' . Nickname::DISPLAY_FMT . '>}/favourites', [C\Network::class, 'favourites']);
|
||||
|
||||
$r->connect('actors', '/actors', [C\Network::class, 'actors']);
|
||||
|
||||
$r->connect('panel', '/panel', [C\AdminPanel::class, 'site']);
|
||||
$r->connect('panel_site', '/panel/site', [C\AdminPanel::class, 'site']);
|
||||
|
||||
|
33
templates/network/actors.html.twig
Normal file
33
templates/network/actors.html.twig
Normal file
@ -0,0 +1,33 @@
|
||||
{% 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