mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-10 07:07:51 +08:00
🐶 Sync 2026-10-20 22:40:23
This commit is contained in:
1 parent
e813f5cc54
commit
64cea2243a
216 files changed
+11913
-2968
No files matched your search
@@ -20,12 +20,14 @@
|
||||
import { getuid, getspnam } from 'luci.core';
|
||||
|
||||
const hostname = striptags(ubus.call('system', 'board')?.hostname ?? '?');
|
||||
// First-child routes keep the entry URL while resolving to a deeper page.
|
||||
const page_path = length(ctx.path) > length(ctx.request_path) ? ctx.path : ctx.request_path;
|
||||
include('themes/' + theme + '/head', { hostname: hostname, is_login: false });
|
||||
%}
|
||||
|
||||
<body
|
||||
class="lang_{{ dispatcher.lang }} {{ node?.title ? ` - ${striptags(node.title)}` : '' }} {% if (ctx.authsession): %}logged-in{% endif %}"
|
||||
data-page="{{ entityencode(join('-', ctx.request_path), true) }}">
|
||||
data-page="{{ entityencode(join('-', page_path), true) }}">
|
||||
|
||||
<div class="main">
|
||||
<div class="main-left" id="mainmenu" style="display:none">
|
||||
|
||||
Reference in new issue
Block a user