mirror of
https://codeberg.org/metamuffin/abrechenbarkeit.git
synced 2024-12-29 00:04:35 +00:00
fix some printing styles and some other stuff forgot tbh
This commit is contained in:
parent
8f1b230e63
commit
69f01a2e89
2 changed files with 34 additions and 19 deletions
|
@ -309,7 +309,7 @@ end
|
||||||
|
|
||||||
local function r_log(filter)
|
local function r_log(filter)
|
||||||
return respond(200, "Abrechnungen", function()
|
return respond(200, "Abrechnungen", function()
|
||||||
print([[<table class="log">]])
|
print([[<table class="log"]])
|
||||||
print([[<tr>
|
print([[<tr>
|
||||||
<th>Time</th>
|
<th>Time</th>
|
||||||
<th>Username</th>
|
<th>Username</th>
|
||||||
|
@ -364,8 +364,8 @@ local function r_index()
|
||||||
<input type="submit" value="Continue" class="button amount-ntr" />
|
<input type="submit" value="Continue" class="button amount-ntr" />
|
||||||
</form>
|
</form>
|
||||||
]])
|
]])
|
||||||
print("<ul>")
|
print([[<div class="userlist"></div>]]) -- for printing
|
||||||
|
print([[<ul class="userlist">]])
|
||||||
for _, user in ipairs(get_active_users()) do
|
for _, user in ipairs(get_active_users()) do
|
||||||
print(string.format([[
|
print(string.format([[
|
||||||
<li><a href="/%s"><span class="name">%s</span> <span class="amount amount-%s">%.02f€</span></a></li>
|
<li><a href="/%s"><span class="name">%s</span> <span class="amount amount-%s">%.02f€</span></a></li>
|
||||||
|
|
47
style.css
47
style.css
|
@ -273,24 +273,39 @@ input:not([type=submit]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@media print {
|
@media print {
|
||||||
|
nav, .container {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
nav,
|
h1 {
|
||||||
.container,
|
font-size: 2em;
|
||||||
h1 {
|
text-decoration: underline;
|
||||||
display: none;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
table.log:before {
|
table.log:before {
|
||||||
content: "Abrechenbarkeit Log";
|
content: "Abrechnung";
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.productlist:before {
|
div.userlist:before {
|
||||||
content: "Produkt Liste";
|
content: "User List, is still work in progress :/";
|
||||||
font-size: 2em;
|
clear: right;
|
||||||
text-decoration: underline;
|
width: 100vw;
|
||||||
}
|
font-size: 2em;
|
||||||
|
text-decoration: underline;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.userlist a, ul {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.userlist > li > a {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
tr :last-child {
|
tr :last-child {
|
||||||
display: none;
|
display: none;
|
||||||
|
@ -309,4 +324,4 @@ input:not([type=submit]) {
|
||||||
form {
|
form {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue