aboutsummaryrefslogtreecommitdiff
path: root/web/NetUseAdminWeb/views/layouts
diff options
context:
space:
mode:
authorPasha <pasha@member.fsf.org>2024-01-20 10:09:23 +0000
committerPasha <pasha@member.fsf.org>2024-01-20 10:09:23 +0000
commit76669f6c298bcf3f69a0e1df5c524a7cff3e367d (patch)
tree9704c3470c1f3ca91510d9af01b8e8eb81969ed9 /web/NetUseAdminWeb/views/layouts
downloadnetusemod-master.tar.gz
netusemod-master.tar.bz2
initial commitHEADmaster
Diffstat (limited to 'web/NetUseAdminWeb/views/layouts')
-rw-r--r--web/NetUseAdminWeb/views/layouts/main.tt132
1 files changed, 132 insertions, 0 deletions
diff --git a/web/NetUseAdminWeb/views/layouts/main.tt b/web/NetUseAdminWeb/views/layouts/main.tt
new file mode 100644
index 0000000..19f2134
--- /dev/null
+++ b/web/NetUseAdminWeb/views/layouts/main.tt
@@ -0,0 +1,132 @@
+<!DOCTYPE html>
+
+<!--
+ NetUseMod is a program to moderate Usenet posts via web interface.
+ Copyright (C) 2024 Salahuddin <salahuddin@member.fsf.org>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+-->
+
+<html lang="en">
+<head>
+ <meta charset="<% settings.charset %>">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
+ <style>
+ body {
+ margin: 0;
+ margin-bottom: 25px;
+ padding: 0;
+ background-color: #ddd;
+ background-repeat: no-repeat;
+ background-position: top left;
+ font-family: "Lucida Grande", "Bitstream Vera Sans", "Verdana";
+ font-size: 16px;
+ color: #333;
+ }
+
+ * {
+ box-sizing: border-box;
+ }
+
+ input, button, select, option, textarea {
+ font-size: 100%;
+ }
+
+ header {
+ background-color: #777;
+ padding: 15px;
+ text-align: center;
+ font-size: 18px;
+ color: white;
+ }
+
+ header a {
+ color: white;
+ }
+
+ footer {
+ position: fixed;
+ left: 0;
+ bottom: 0;
+ width: 100%;
+
+ background-color: #777;
+ padding: 10px;
+ text-align: center;
+ color: white;
+ font-size: 14px;
+ }
+
+ footer a {
+ color: white;
+ }
+
+ section {
+ padding: 20px;
+ display: inline-block;
+ width: 100%;
+ background-color: white;
+ }
+
+ article {
+ margin: auto;
+ width: 100%;
+ font-size: 16px;
+ border: 2px solid #777;
+ padding: 15px;
+ background-color: f1f1f1;
+ max-width: 900px;
+ }
+
+ table {
+ font-family: Arial, Helvetica, sans-serif;
+ border-collapse: collapse;
+ width: 100%;
+ }
+
+ table td, table th {
+ border: 1px solid #ddd;
+ padding: 8px;
+ }
+
+ table tr:nth-child(even) {
+ background-color: #f2f2f2;
+ }
+
+ table tr:hover {background-color: #ddd;}
+
+ table th {
+ padding-top: 12px;
+ padding-bottom: 12px;
+ text-align: left;
+ background-color: #777;
+ color: white;
+ }
+ </style>
+ <title><% title %></title>
+</head>
+<body>
+ <header>
+ <a href="<% request.uri_base %>/">Home</a>&nbsp;&nbsp;&nbsp;<a href="<% request.uri_base %>/logout">Logout</a>
+ </header>
+ <section>
+ <article>
+ <% content %>
+ </article>
+</section>
+<footer>
+Powered by <a href="http://perldancer.org/">Dancer2</a> <% dancer_version %>
+</footer>
+</body>
+</html>