Files
S905L3A/cups-templates-zh_CN/header.tmpl
yuyx 783da484e1 fix: 更新中文模板CSS类名以兼容CUPS 2.4.7
- header.tmpl: class="header" → class="cups-header"
- header.tmpl: class="body" → class="cups-body"
- trailer.tmpl: class="footer" → class="cups-footer"

CUPS 2.4.7 更新了CSS类名,旧模板导致样式无法加载

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-30 23:58:47 +08:00

41 lines
1.6 KiB
Cheetah

<!DOCTYPE HTML>
<html>
<head>
<link rel="stylesheet" href="/cups.css" type="text/css">
<link rel="shortcut icon" href="/apple-touch-icon.png" type="image/png">
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
{refresh_page?<meta http-equiv="refresh" content="{refresh_page}">:}
<meta http-equiv="X-UA-Compatible" content="IE=9">
<meta name="viewport" content="width=device-width">
<style>html{display:none;}</style>
<script type="text/javascript"><!--
if (self == top) {
document.documentElement.style.display = 'block';
} else {
top.location = self.location;
}
function check_cookies() {
if (!navigator.cookieEnabled) {
document.getElementById('body').innerHTML = '此页面使用 Cookie 防止跨站攻击,请启用 Cookie。';
}
}
--></SCRIPT>
<title>{title} - CUPS 打印管理</title>
</head>
<body onload="check_cookies();">
<div class="cups-header">
<ul>
<li><a href="https://openprinting.github.io/cups/" target="_blank">OpenPrinting CUPS</a></li>
<li><a {SECTION=admin?class="active" :}href="/">首页</a></li>
<li><a {SECTION=admin?class="active" :}href="/admin">管理</a></li>
<li><a {SECTION=classes?class="active" :}href="/classes/">打印机类</a></li>
<li><a {SECTION=help?class="active" :}href="/help/">帮助</a></li>
<li><a {SECTION=jobs?class="active" :}href="/jobs/">任务</a></li>
<li><a {SECTION=printers?class="active" :}href="/printers/">打印机</a></li>
</ul>
</div>
<div class="cups-body">
<div class="row">
<h1>{title}</h1>