[Directory] Add the route, controller function, and blank template file

This commit is contained in:
Angelo D. Moura 2020-11-29 02:31:48 +00:00 committed by Hugo Sales
parent e14efe86a4
commit 19be786da8
3 changed files with 42 additions and 0 deletions

View File

@ -138,4 +138,11 @@ END;
'order by f.created DESC', ['id' => $actor_id]), 'order by f.created DESC', ['id' => $actor_id]),
]; ];
} }
public function actors(Request $request)
{
return [
'_template' => 'network/public.html.twig',
];
}
} }

View File

@ -53,6 +53,8 @@ abstract class Main
$r->connect('replies', '/{nickname<' . Nickname::DISPLAY_FMT . '>}/replies', [C\Network::class, 'replies']); $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('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', '/panel', [C\AdminPanel::class, 'site']);
$r->connect('panel_site', '/panel/site', [C\AdminPanel::class, 'site']); $r->connect('panel_site', '/panel/site', [C\AdminPanel::class, 'site']);

View 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 %}