add /notes/ link to the header, visible only for admins for now

This commit is contained in:
E. S. 2024-11-05 03:38:11 +03:00
parent 7aafa75f76
commit 71ad8d5fca
2 changed files with 4 additions and 0 deletions

View File

@ -50,6 +50,8 @@ class MainHandler extends request_handler {
if ($page->shortName == 'info')
set_skin_opts(['head_section' => 'about']);
else if ($page->shortName == 'notes')
set_skin_opts(['head_section' => $page->shortName]);
if ($page) {
add_meta([

View File

@ -224,6 +224,8 @@ $icons = svg();
$items = [];
$items[] = ['url' => '/articles/'.($articles_lang && $articles_lang != 'en' ? '?lang='.$articles_lang : ''), 'label' => 'articles', 'selected' => $section === 'articles'];
$items[] = ['url' => '/files/', 'label' => 'files', 'selected' => $section === 'files'];
if (is_admin())
$items[] = ['url' => '/notes/', 'label' => 'notes', 'selected' => $section === 'notes'];
$items[] = ['url' => '/info/', 'label' => 'about', 'selected' => $section === 'about'];
if (is_admin())
$items[] = ['url' => '/admin/', 'label' => $icons->settings_28(in_place: true), 'type' => 'settings', 'selected' => $section === 'admin'];