Login page moved to forms.py, New warning and ban system, a bunch of other shit.

- Change password page from profile settings has been moved over to forms.py
- Login page has been moved over to forms.py. There is no JavaScript right now, however it is still functional.
-Profile_tools_Form has been altered to remove a few unneeded fields that administrators don't need to mess with.
- warned_reason and warned fields are gone from User_tools_Form and will be removed from models.py at a later point.

- a new ban system has been implemented. While bans are still incomplete and lack capabilities to ban IP addresses as of right now, the groundwork is now here and those features can be added later.
- manage_bans page was added.

- A new warning system has been implemented. If a Warning is created, a notification is created automatically with it.  A warning notification replaces the "new announcement" notification type.
- Warning notifications are larger and stand out compared to normal notifications
- When posting, commenting or messaging someone, a check is performed to make sure you've seen the warning notification.
- manage_warnings page was added. This page will also show you the warning history.

- help_text was added to a bunch of fields.
This commit is contained in:
some weird guy
2023-08-23 16:47:28 -07:00
parent e190d76079
commit ca09f3295b
44 changed files with 652 additions and 543 deletions
+21
View File
@@ -144,6 +144,12 @@ input.disabled {
.green {
color: green !important;
}
.warning-reason {
margin-top: 6px;
}
.warning-note {
margin-top: 6px;
}
body {
font-size: 14px;
text-align: center;
@@ -1943,6 +1949,9 @@ font-size: 18px;
.button-wiiu:hover {
background: #1088b6;
}
.list .bigger {
padding: 29px;
}
.list > li,
.list > div,
.list > a,
@@ -3386,6 +3395,18 @@ border-top: 1px solid var(--theme, #94ff3d);
content: "e";
color: var(--theme, #5ac800);
}
.sidebar-setting .sidebar-admin-settings:before {
content: "y";
color: var(--theme, #5ac800);
}
.sidebar-setting .sidebar-admin-warnings:before {
content: "n";
color: var(--theme, #5ac800);
}
.sidebar-setting .sidebar-admin-bans:before {
content: "x";
color: var(--theme, #5ac800);
}
.sidebar-setting .sidebar-menu-replies:before {
content: "r";
color: var(--theme, #5ac800);
+4 -2
View File
@@ -2021,7 +2021,9 @@ var Olv = Olv || {};
event.preventDefault();
});
c.on("drop paste", handleFileChange);
c.on("drop", handleFileChange);
// upon choosing an image, and pasting plain text after, no image would be uploaded for some reason.
// yeah i got no fucking clue how to fix this shit.
c.on("olv:entryform:post:done", function() {
imageDimensions.text(b.EntryForm.tempPollutionButImageFormAllowedText);
@@ -3221,7 +3223,7 @@ mode_post = 0;
b.router.connect("^/users/[^\/]+/favorites$", function(a, c, d) {
b.Content.autopagerize(".community-list", d)
}),
b.router.connect("^/login/$|^/signup/$", function(c, d, e) {
b.router.connect("^/signup/$", function(c, d, e) {
function lfinish(b) {
window.location.href=b
//a('body').attr('sess-usern', a('input[name=username]').val())
Binary file not shown.

Before

Width:  |  Height:  |  Size: 601 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 760 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 519 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

+76 -62
View File
@@ -4,37 +4,37 @@
<svg
version="1.1"
id="svg1"
width="262.66666"
height="64"
viewBox="0 0 262.66666 64"
width="270.35233"
height="61.079422"
viewBox="0 0 270.35233 61.079422"
sodipodi:docname="menu-logo.svg"
inkscape:version="1.3 (0e150ed6c4, 2023-07-21)"
xml:space="preserve"
inkscape:export-filename="menu-logo.png"
inkscape:export-xdpi="170.44423"
inkscape:export-ydpi="170.44423"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1">
<linearGradient
xmlns:svg="http://www.w3.org/2000/svg"><defs
id="defs1"><linearGradient
id="linearGradient3"
inkscape:collect="always"><stop
style="stop-color:#fe3939;stop-opacity:1;"
offset="0"
id="stop3" /><stop
style="stop-color:#c72a2a;stop-opacity:1;"
offset="1"
id="stop4" /></linearGradient><linearGradient
id="linearGradient1"
inkscape:collect="always">
<stop
inkscape:collect="always"><stop
style="stop-color:#ff3a3a;stop-opacity:1;"
offset="0"
id="stop1" />
<stop
id="stop1" /><stop
style="stop-color:#ad1a1a;stop-opacity:1;"
offset="1"
id="stop2" />
</linearGradient>
<rect
x="72.546936"
y="26.759483"
width="260.0376"
height="68.768394"
id="rect55" />
<linearGradient
id="stop2" /></linearGradient><linearGradient
inkscape:collect="always"
xlink:href="#linearGradient1"
id="linearGradient2"
@@ -42,9 +42,31 @@
y1="36.274925"
x2="136.69847"
y2="70.450951"
gradientUnits="userSpaceOnUse" />
</defs>
<sodipodi:namedview
gradientUnits="userSpaceOnUse" /><linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3"
id="linearGradient4"
x1="149.797"
y1="0"
x2="149.797"
y2="325.388"
gradientUnits="userSpaceOnUse" /><linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3"
id="linearGradient5"
gradientUnits="userSpaceOnUse"
x1="149.797"
y1="0"
x2="149.797"
y2="325.388" /><linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3"
id="linearGradient6"
gradientUnits="userSpaceOnUse"
x1="149.797"
y1="0"
x2="149.797"
y2="325.388" /></defs><sodipodi:namedview
id="namedview1"
pagecolor="#505050"
bordercolor="#ffffff"
@@ -61,38 +83,33 @@
inkscape:window-x="0"
inkscape:window-y="32"
inkscape:window-maximized="1"
inkscape:current-layer="g1" />
<g
inkscape:current-layer="g1" /><g
inkscape:groupmode="layer"
inkscape:label="Image"
id="g1">
<g
id="g56">
<rect
id="g1"
transform="translate(-0.78294009,-1.5827909)"><g
id="g56"><rect
style="fill:#ff4d4d;fill-opacity:1"
id="rect53"
width="5.9472828"
height="5.9472828"
x="8.667901"
y="16.853588"
transform="rotate(-45)" />
<rect
transform="rotate(-45)" /><rect
style="fill:#ad1a1a;fill-opacity:1"
id="rect53-3"
width="5.9472828"
height="7.947773"
x="8.667901"
y="22.800871"
transform="rotate(-45)" />
<rect
transform="rotate(-45)" /><rect
style="fill:#ff7676;fill-opacity:1"
id="rect53-3-6"
width="5.9472828"
height="7.947773"
x="16.853588"
y="-8.667901"
transform="rotate(45)" />
<rect
transform="rotate(45)" /><rect
style="fill:#ff7676;fill-opacity:1"
id="rect53-3-6-5"
width="7.9418755"
@@ -100,8 +117,7 @@
x="22.803822"
y="-0.72012806"
transform="rotate(45)"
ry="0" />
<rect
ry="0" /><rect
style="fill:#ff7676;fill-opacity:1"
id="rect53-3-6-5-8"
width="13.31431"
@@ -109,8 +125,7 @@
x="30.748648"
y="12.59123"
transform="rotate(45)"
ry="0" />
<rect
ry="0" /><rect
style="fill:#ad1a1a;fill-opacity:1"
id="rect53-3-6-5-8-6"
width="13.31431"
@@ -118,8 +133,7 @@
x="-12.591232"
y="44.062958"
transform="rotate(-45)"
ry="0" />
<rect
ry="0" /><rect
style="fill:#ad1a1a;fill-opacity:1"
id="rect53-3-6-5-9"
width="7.9418755"
@@ -127,44 +141,44 @@
x="0.72307706"
y="30.748646"
transform="rotate(-45)"
ry="0" />
<path
ry="0" /><path
id="rect54"
style="fill:#ff4d4d;fill-opacity:1"
transform="rotate(-45)"
d="m 0.72012806,22.800871 7.94777294,0 -7.94777294,7.947775 z"
sodipodi:nodetypes="cccc" />
<path
d="M 0.72012806,22.800871 H 8.667901 l -7.94777294,7.947775 z"
sodipodi:nodetypes="cccc" /><path
id="rect54-2"
style="fill:#d13434;fill-opacity:1"
d="m 27.871707,15.613444 -5.619924,5.619924 -2e-6,-11.2398501 z"
sodipodi:nodetypes="cccc" />
<path
sodipodi:nodetypes="cccc" /><path
id="rect54-29"
style="fill:#ff4d4d;stroke-width:1.67523;fill-opacity:1"
style="fill:#ff4d4d;fill-opacity:1;stroke-width:1.67523"
d="m 12.839233,30.645922 9.414637,-9.414637 3e-6,18.829278 z"
sodipodi:nodetypes="cccc" />
<path
sodipodi:nodetypes="cccc" /><path
id="rect54-2-3"
style="fill:#d13434;stroke-width:1.67523;fill-opacity:1"
style="fill:#d13434;fill-opacity:1;stroke-width:1.67523"
d="m 31.668508,30.645922 -9.414637,9.414639 -3e-6,-18.829278 z"
sodipodi:nodetypes="cccc" />
<path
sodipodi:nodetypes="cccc" /><path
style="fill:#b68147;fill-opacity:1"
d="m 22.253868,40.060561 -6.028143,6.028146 v 12.674516 l 6.028143,3.898989 z"
id="path55"
sodipodi:nodetypes="ccccc" />
<path
sodipodi:nodetypes="ccccc" /><path
style="fill:#5e4125;fill-opacity:1"
d="m 22.253873,40.060562 6.028143,6.028146 v 12.674516 l -6.028143,3.898989 z"
id="path55-2"
sodipodi:nodetypes="ccccc" />
</g>
<path
sodipodi:nodetypes="ccccc" /></g><path
style="font-weight:bold;font-size:42.6667px;font-family:Comfortaa;-inkscape-font-specification:'Comfortaa Bold';white-space:pre;shape-padding:4.21878;fill:url(#linearGradient2)"
d="m 95.965639,70.450952 q -3.456002,0 -6.485338,-1.280001 -2.986669,-1.322668 -5.248004,-3.62667 -2.218668,-2.346668 -3.498669,-5.461337 -1.237334,-3.114669 -1.237334,-6.741338 0,-3.584003 1.237334,-6.656005 1.280001,-3.114669 3.498669,-5.418671 2.261335,-2.346669 5.248004,-3.669336 2.986669,-1.322668 6.485338,-1.322668 3.285336,0 5.632001,0.853334 2.38934,0.853334 4.77867,2.816002 0.34134,0.256 0.512,0.554667 0.21334,0.256 0.256,0.554667 0.0853,0.256001 0.0853,0.640001 0,0.810667 -0.59734,1.365334 -0.55466,0.512001 -1.36533,0.597334 -0.81067,0.04267 -1.57867,-0.554667 -1.57867,-1.365334 -3.28533,-2.090668 -1.664005,-0.725334 -4.437341,-0.725334 -2.517335,0 -4.736003,1.024001 -2.218669,1.024 -3.925336,2.816002 -1.664002,1.792001 -2.602669,4.181336 -0.938667,2.346669 -0.938667,5.034671 0,2.730668 0.938667,5.120003 0.938667,2.346669 2.602669,4.13867 1.706667,1.792001 3.925336,2.816002 2.218668,0.981334 4.736003,0.981334 2.176002,0 4.096001,-0.725334 1.96267,-0.768 3.75467,-2.090668 0.768,-0.554667 1.49334,-0.469334 0.768,0.04267 1.28,0.597334 0.512,0.512001 0.512,1.450668 0,0.426667 -0.17067,0.853334 -0.17067,0.384 -0.512,0.725334 -2.304,1.834668 -4.94934,2.773335 -2.602665,0.938668 -5.504001,0.938668 z M 123.0163,70.194951 q -3.54133,0 -6.31467,-1.493334 -2.73067,-1.536001 -4.30933,-4.181336 -1.536,-2.688002 -1.536,-6.144005 0,-3.498669 1.45066,-6.144005 1.49334,-2.688002 4.09601,-4.181336 2.60267,-1.536001 5.97333,-1.536001 3.32801,0 5.71734,1.493334 2.38934,1.450668 3.62667,4.053337 1.28,2.560001 1.28,5.930671 0,0.810667 -0.55466,1.365334 -0.55467,0.512 -1.40801,0.512 h -17.19468 v -3.413335 h 17.06668 l -1.74933,1.194667 q -0.0427,-2.133335 -0.85333,-3.797336 -0.81067,-1.706668 -2.30401,-2.688002 -1.49333,-0.981334 -3.62667,-0.981334 -2.432,0 -4.18133,1.066667 -1.70667,1.066668 -2.60267,2.944002 -0.896,1.834669 -0.896,4.181337 0,2.346668 1.06667,4.181336 1.06666,1.834668 2.944,2.901336 1.87733,1.066667 4.30933,1.066667 1.32267,0 2.68801,-0.469333 1.408,-0.512001 2.26133,-1.152001 0.64,-0.469334 1.36534,-0.469334 0.768,-0.04267 1.32266,0.426667 0.72534,0.640001 0.768,1.408001 0.0427,0.768001 -0.68266,1.322668 -1.45067,1.152001 -3.62667,1.877335 -2.13334,0.725333 -4.09601,0.725333 z m 25.25868,0 q -3.328,0 -6.016,-1.536001 -2.64534,-1.578668 -4.22401,-4.26667 -1.536,-2.688002 -1.536,-6.058671 0,-3.370669 1.408,-6.016004 1.45067,-2.688002 3.92534,-4.224003 2.47467,-1.578668 5.58934,-1.578668 2.51733,0 4.65067,1.066667 2.13333,1.024001 3.584,2.816002 V 38.877595 q 0,-0.981334 0.59733,-1.578668 0.64,-0.597334 1.57867,-0.597334 0.98134,0 1.57867,0.597334 0.59733,0.597334 0.59733,1.578668 v 19.456014 q 0,3.370669 -1.57866,6.058671 -1.53601,2.688002 -4.18134,4.26667 -2.64534,1.536001 -5.97334,1.536001 z m 0,-3.840002 q 2.176,0 3.88267,-1.024001 1.70667,-1.066668 2.688,-2.901336 0.98134,-1.834668 0.98134,-4.096003 0,-2.304001 -0.98134,-4.096003 -0.98133,-1.792001 -2.688,-2.816002 -1.70667,-1.066667 -3.88267,-1.066667 -2.13333,0 -3.88267,1.066667 -1.70667,1.024001 -2.73067,2.816002 -0.98133,1.792002 -0.98133,4.096003 0,2.261335 0.98133,4.096003 1.024,1.834668 2.73067,2.901336 1.74934,1.024001 3.88267,1.024001 z m 29.14132,3.840002 q -3.11467,0 -5.58934,-1.536001 -2.47467,-1.578668 -3.92533,-4.224003 -1.40801,-2.688002 -1.40801,-6.058671 0,-3.370669 1.53601,-6.058671 1.57866,-2.688002 4.224,-4.224003 2.688,-1.578668 6.016,-1.578668 3.32801,0 5.97334,1.578668 2.64534,1.536001 4.18134,4.224003 1.57867,2.688002 1.57867,6.058671 h -1.66401 q 0,3.370669 -1.45066,6.058671 -1.408,2.645335 -3.88267,4.224003 -2.47467,1.536001 -5.58934,1.536001 z m 0.85333,-3.840002 q 2.17601,0 3.88267,-1.024001 1.70667,-1.066668 2.68801,-2.858669 0.98133,-1.834668 0.98133,-4.096003 0,-2.304002 -0.98133,-4.096003 -0.98134,-1.834668 -2.68801,-2.858669 -1.70666,-1.066667 -3.88267,-1.066667 -2.13333,0 -3.88267,1.066667 -1.70666,1.024001 -2.73066,2.858669 -0.98134,1.792001 -0.98134,4.096003 0,2.261335 0.98134,4.096003 1.024,1.792001 2.73066,2.858669 1.74934,1.024001 3.88267,1.024001 z m 9.55734,3.712002 q -0.93866,0 -1.57866,-0.597333 -0.59734,-0.640001 -0.59734,-1.578668 v -6.528005 l 0.81067,-4.52267 3.54134,1.536001 v 9.514674 q 0,0.938667 -0.64,1.578668 -0.59734,0.597333 -1.53601,0.597333 z m 10.75199,-14.634677 q 0,-2.560002 1.23733,-4.565337 1.28,-2.048002 3.41334,-3.242669 2.13333,-1.194668 4.69333,-1.194668 2.56,0 3.79734,0.853334 1.28,0.810668 0.98133,1.962668 -0.128,0.597334 -0.512,0.938668 -0.34133,0.298667 -0.81066,0.384 -0.46934,0.08533 -1.02401,-0.04267 -2.73066,-0.554667 -4.90667,-0.08533 -2.176,0.469334 -3.456,1.749335 -1.23733,1.280001 -1.23733,3.242669 z m 0.0427,14.592011 q -1.024,0 -1.57867,-0.512001 -0.55466,-0.554667 -0.55466,-1.621334 V 48.818935 q 0,-1.024 0.55466,-1.578667 0.55467,-0.554667 1.57867,-0.554667 1.06667,0 1.57867,0.554667 0.55467,0.512 0.55467,1.578667 V 67.89095 q 0,1.024 -0.55467,1.578668 -0.512,0.554667 -1.57867,0.554667 z"
id="text55"
transform="matrix(1.468878,0,0,1.468878,-67.310013,-46.383647)"
aria-label="Cedar" />
</g>
</svg>
aria-label="Cedar" /><g
fill="#2ba977"
id="g2"
transform="matrix(0.07550438,0,0,0.07550438,251.86754,5.3031849)"
style="fill:url(#linearGradient4)"><path
d="m 114.784,0 h 53.278 v 244.191 c -27.29,5.162 -47.38,7.193 -69.117,7.193 C 33.873,251.316 0,222.245 0,166.412 0,112.617 35.93,77.704 91.608,77.704 c 8.64,0 15.222,0.68 23.176,2.717 z m 1.867,124.427 c -6.24,-2.038 -11.382,-2.717 -17.965,-2.717 -26.947,0 -42.512,16.437 -42.512,45.243 0,28.046 14.88,43.532 42.17,43.532 5.896,0 10.696,-0.332 18.307,-1.351 z"
id="path1"
style="fill:url(#linearGradient5)" /><path
d="m 255.187,84.26 v 122.263 c 0,42.105 -3.154,62.353 -12.411,79.81 -8.64,16.783 -20.022,27.366 -43.541,39.055 l -49.438,-23.297 c 23.519,-10.93 34.901,-20.588 42.17,-35.327 7.61,-15.072 10.01,-32.529 10.01,-78.445 V 84.261 h 53.21 z M 196.608,0 h 53.278 v 54.135 h -53.278 z"
id="path2"
style="fill:url(#linearGradient6)" /></g></g></svg>

Before

Width:  |  Height:  |  Size: 9.8 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 600 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 605 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 603 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 599 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 600 B