Files
mars-smart/static/start.html.cmake
2026-05-22 07:32:17 +02:00

153 lines
5.4 KiB
CMake

<!DOCTYPE html>
<HTML>
<HEAD>
<TITLE>SMArT</TITLE>
<META CHARSET="utf-8">
<META NAME="viewport" CONTENT="width=device-width, initial-scale=1">
<LINK REL="icon" HREF="/static/favicon.ico" TYPE="image/x-icon">
<LINK REL="icon" TYPE="image/png" SIZES="32x32" HREF="/static/favicon-32x32.png">
<LINK REL="icon" TYPE="image/png" SIZES="16x16" HREF="/static/favicon-16x16.png">
<LINK REL="apple-touch-icon" HREF="/static/apple-touch-icon.png">
<STYLE TYPE="text/css">
BODY {
margin: 0;
padding: 22px;
background: #f6f1ea;
color: #342a25;
font-family: Arial, Helvetica, sans-serif;
}
A { color: #9f1f1f; text-decoration: none; }
A:hover { text-decoration: underline; }
.wrapper {
max-width: 900px;
margin: 0 auto;
background: #fffdfa;
border: 1px solid #e5d6c6;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(60, 30, 10, 0.10);
}
.hero {
padding: 22px 24px;
background: linear-gradient(135deg, #7d1018, #b82929 60%, #d7b169);
color: #ffffff;
}
.hero TABLE { width: 100%; border-collapse: collapse; }
.hero-title {
font-size: 30px;
font-weight: bold;
}
.hero-sub {
margin-top: 6px;
color: #f8e6c8;
font-size: 14px;
}
.hero IMG { max-height: 56px; }
.body {
padding: 22px;
}
.notice {
padding: 14px 16px;
margin-bottom: 14px;
border: 1px solid #ecdcc8;
border-radius: 12px;
background: #fbf6ef;
}
.actions TABLE { width: 100%; border-collapse: separate; border-spacing: 12px; }
.action {
display: block;
padding: 16px 18px;
border-radius: 12px;
text-align: center;
font-size: 18px;
font-weight: bold;
color: #ffffff;
text-decoration: none;
background: #9f1f1f;
}
.action.secondary {
background: #6f5b4f;
}
.footer {
padding-top: 8px;
font-size: 13px;
color: #6c5b52;
}
.runtime-info{margin:18px 12px 0;border:1px solid #ddcfba;border-radius:16px;overflow:hidden;background:#fbf7f1;box-shadow:0 6px 18px rgba(80,55,30,.06)}.runtime-info-title{background:#d7c0a0;padding:10px 14px;font-weight:bold;color:#2e261d}.runtime-info-row{display:grid;grid-template-columns:190px minmax(0,1fr);gap:12px;padding:8px 14px;border-top:1px solid #eadfce;align-items:center}.runtime-info-row code{color:#5b4b38;white-space:normal;word-break:break-word}.runtime-info-note{padding:10px 14px;border-top:1px solid #eadfce;color:#6b5b50;font-size:13px;line-height:1.35}
.project-footer{margin:16px auto 0;text-align:center;color:#6b5b50;font-size:14px;line-height:1.45;max-width:760px}.project-footer a{color:#9f2f26;text-decoration:none}.project-footer a:hover{text-decoration:underline}.copyright{margin:10px auto 0;text-align:center;color:#6b5b50;font-size:13px;max-width:760px}.copyright a{color:#9f2f26;text-decoration:none}.copyright a:hover{text-decoration:underline}
</STYLE>
</HEAD>
<BODY>
<DIV CLASS="wrapper">
<DIV CLASS="hero">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD>
<DIV CLASS="hero-title">SMArT v@MARS_NWE_VERSION@</DIV>
<DIV CLASS="hero-sub">Perl interface for configuring MARS_NWE</DIV>
</TD>
<TD ALIGN="RIGHT">
<IMG SRC="/static/smart_icon.jpg" ALT="SMArT">
</TD>
</TR>
</TABLE>
</DIV>
<DIV CLASS="body">
<DIV CLASS="notice">
Welcome to SMArT, the easy way to configure <B>MARS_NWE</B>.
</DIV>
<DIV CLASS="notice">
To apply changes to the configuration, restart <TT>MARS_NWE</TT> after saving your settings.
</DIV>
<DIV CLASS="actions">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD WIDTH="50%"><A CLASS="action" HREF="/service/control?start">Start <TT>MARS_NWE</TT></A></TD>
<TD WIDTH="50%"><A CLASS="action secondary" HREF="/service/control?stop">Stop <TT>MARS_NWE</TT></A></TD>
</TR>
<TR>
<TD WIDTH="50%"><A CLASS="action secondary" HREF="/service/control?restart">Restart <TT>MARS_NWE</TT></A></TD>
<TD WIDTH="50%"><A CLASS="action secondary" HREF="/service/control?status">Status <TT>MARS_NWE</TT></A>
</TD>
</TR>
</TABLE>
</DIV>
<DIV CLASS="runtime-info">
<DIV CLASS="runtime-info-title">MARS_NWE runtime information</DIV>
<DIV CLASS="runtime-info-row">
<DIV>Configuration file</DIV>
<DIV><CODE>@MARS_NWE_INSTALL_FULL_CONFDIR@/nwserv.conf</CODE></DIV>
</DIV>
<DIV CLASS="runtime-info-row">
<DIV>SMArT configuration</DIV>
<DIV><CODE>@MARS_NWE_INSTALL_FULL_CONFDIR@/smart.conf</CODE></DIV>
</DIV>
<DIV CLASS="runtime-info-row">
<DIV>WebUI scripts</DIV>
<DIV><CODE>@MARS_NWE_INSTALL_FULL_LIBEXECDIR@</CODE></DIV>
</DIV>
<DIV CLASS="runtime-info-row">
<DIV>MARS_NWE service</DIV>
<DIV><CODE>mars-nwe-serv.service</CODE></DIV>
</DIV>
<DIV CLASS="runtime-info-note">
User, group and queue operations need a running <B>MARS_NWE</B> service and a reachable bindery.
Configuration changes require write access to the SMArT configuration directory.
</DIV>
</DIV>
<DIV CLASS="footer">
<DIV CLASS="project-footer">
<DIV>SMArT is shipped as part of the <B>MARS_NWE</B> package.</DIV>
<DIV>Project sources are available from the <A HREF="https://gitea.disconnected-by-peer.at/mars_nwe/mars-nwe" TARGET="_blank">MARS_NWE repository</A>.</DIV>
</DIV><BR><BR>
<DIV CLASS="copyright">&copy; Copyright 2026 <A HREF="mailto:mario.fetka@disconnected-by-peer.at">Mario Fetka</A></DIV>
</DIV>
</DIV>
</DIV>
</BODY>
</HTML>