home » zplus/freepost.git
Author zPlus <zplus@peers.community> 2023-11-22 07:34:49
Committer zPlus <zplus@peers.community> 2023-11-22 07:34:49
Commit 239f2a8 (patch)
Tree 5b426d8
Parent(s)

Disable registrations.


commits diff: 3f4365e..239f2a8
3 files changed, 37 insertions, 0 deletionsdownload


Diffstat
-rw-r--r-- freepost/__init__.py 2
-rw-r--r-- freepost/static/css/freepost.css 30
-rw-r--r-- freepost/templates/register.html 5

Diff options
View
Side
Whitespace
Context lines
Inter-hunk lines
+2/-0 M   freepost/__init__.py
index 29c4da0..7995288
old size: 31K - new size: 31K
@@ -235,6 +235,8 @@ def register_new_account ():
235 235 Check form for creating new account.
236 236 """
237 237
238 + abort()
239 +
238 240 username = request.forms.getunicode ('username')
239 241 password = request.forms.getunicode ('password')
240 242

+30/-0 M   freepost/static/css/freepost.css
index d5b641b..a7a00bb
old size: 21K - new size: 21K
@@ -9,8 +9,10 @@
9 9 }
10 10
11 11 a, a:hover, a:visited {
12 + /*
12 13 background: transparent;
13 14 color: #337ab7;
15 + */
14 16 text-decoration: none;
15 17 }
16 18
@@ -203,6 +205,12 @@ html, body {
203 205 width: 100%;
204 206 }
205 207
208 + @media (prefers-color-scheme: dark) {
209 + html, body {
210 + background-color: #000;
211 + }
212 + }
213 +
206 214 pre {
207 215 background-color: #efefef;
208 216 font-family: "Courier 10 Pitch", Courier, monospace;
@@ -300,6 +308,14 @@ ul, ol {
300 308 width: 36px;
301 309 }
302 310
311 + @media (prefers-color-scheme: dark) {
312 + .burger-icon > .line1,
313 + .burger-icon > .line2,
314 + .burger-icon > .line3 {
315 + background-color: #fff;
316 + }
317 + }
318 +
303 319 .burger-icon.open > .line1 {
304 320 transform: rotate(-45deg) translate(-0px, 11px);
305 321 }
@@ -379,6 +395,14 @@ a.logo:visited {
379 395 text-decoration: none;
380 396 }
381 397
398 + @media (prefers-color-scheme: dark) {
399 + a.logo,
400 + a.logo:hover,
401 + a.logo:visited {
402 + color: #fff;
403 + }
404 + }
405 +
382 406 /* List of posts, for example in the homepage */
383 407 .posts {}
384 408
@@ -414,6 +438,12 @@ a.logo:visited {
414 438 font-size: 1.6rem;
415 439 }
416 440
441 + @media (prefers-color-scheme: dark) {
442 + .posts > .post > .info > .title > a {
443 + color: #fff;
444 + }
445 + }
446 +
417 447 /* Some post info showed below the title */
418 448 .posts > .post > .info > .about {
419 449 color: #666;

+5/-0 M   freepost/templates/register.html
index 20008e0..7faf8a5
old size: 1002B - new size: 1K
@@ -15,6 +15,11 @@
15 15 <h3>Create new account</h3>
16 16
17 17 <form action="" method="post">
18 + <div>
19 + Registrations are closed because of spam. If you need an account, please
20 + ask in #peers (irc.libera.chat)
21 + </div>
22 +
18 23 <div class="title">
19 24 Screen name
20 25 </div>