diff --git a/SECURITY.md b/SECURITY.md index 3584cc3..c94240f 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -1,11 +1,3 @@ # Security Policy -## Supported Versions - -Only the latest version is supported. - -## Reporting a Vulnerability - -Please send a mail to agreper+security@demindiro.com - -PGP key: [7897 2A80 BC74 A394 1C50 F060 A915 6EA5 E4B6 44FF](https://www.demindiro.com/pubkey.pgp.asc) +Use at your own risk. diff --git a/forum/main.py b/forum/main.py index f263178..d19a341 100644 --- a/forum/main.py +++ b/forum/main.py @@ -1,4 +1,4 @@ -VERSION = "agreper-v0.1.1q1" +from version import VERSION # TODO put in config table THREADS_PER_PAGE = 50 diff --git a/forum/static/theme.css b/forum/static/theme.css index 3ab2203..25e5a5f 100644 --- a/forum/static/theme.css +++ b/forum/static/theme.css @@ -73,8 +73,6 @@ td > input[type=text], td > input[type=password] { .logo { margin: 0; - padding: 5px; - padding-left: 15px; font-size: 3em; font-weight: bold; } @@ -138,3 +136,81 @@ table.form > * > tr > td, th { opacity: 1; color: white; } + +/* Dropdown menu */ +.navbar { + overflow: hidden; + background-color: #333; + font-family: inherit; +} + +.navbar a { + float: left; + font-size: 16px; + color: white; + text-align: center; + text-decoration: none; +} + +.dropdown { + float: left; + overflow: hidden; +} + +.dropdown .dropbtn { + font-size: 16px; + border: none; + outline: none; + color: white; + padding: 0px 0px; + background-color: inherit; + font-family: inherit; /* Important for vertical align on mobile phones */ + margin: 0; /* Important for vertical align on mobile phones */ +} + +.button_image { + height: 50px; +} + +.navbar a:hover, .dropdown:hover .dropbtn { + background-color: black; +} + +/* Dropdown content (hidden by default) */ +.dropdown-content { + display: none; + position: absolute; + background-color: #444; + min-width: 160px; + box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); + z-index: 1; +} + +/* Links inside the dropdown */ +.dropdown-content a { + float: none; + color: #F9F6EE; + padding: 12px 16px; + text-decoration: none; + display: block; + text-align: left; +} + +/* Add a grey background color to dropdown links on hover */ +.dropdown-content a:hover { + background-color: #555; +} +.dropdown-content a:visited { + color: #F9F6EE; +} + +/* Show the dropdown menu on hover */ +.dropdown:hover .dropdown-content { + display: block; +} + + +/* Admin */ +.admin_h2 { + background-color: rgba(0,0,0,0.15); +} diff --git a/forum/templates/admin/base.html b/forum/templates/admin/base.html index a864555..030f9a5 100644 --- a/forum/templates/admin/base.html +++ b/forum/templates/admin/base.html @@ -4,38 +4,15 @@
-Admin panel +Admin panel | Home page
{%- for category, msg in get_flashed_messages(True) -%} diff --git a/forum/templates/admin/index.html b/forum/templates/admin/index.html index 38c1627..3bcecef 100644 --- a/forum/templates/admin/index.html +++ b/forum/templates/admin/index.html @@ -1,84 +1,7 @@ {% extends 'admin/base.html' -%} {% block content -%} -⚠ Only use queries if you know what you're doing ⚠
- --
- --
- -| ID | -Name | -Description | -Actions | -
|---|---|---|---|
| {{ id }} | -- - | - - | -Remove | -
| ID | @@ -126,4 +49,93 @@
|---|
| ID | +Name | +Description | +Actions | +
|---|---|---|---|
| {{ id }} | ++ + | + + | +Remove | +
+
+ ++
+ + + + + + +⚠ Only use queries if you know what you're doing ⚠
+ {%- endblock %} diff --git a/forum/templates/base.html b/forum/templates/base.html index 1daf43a..30a12fc 100644 --- a/forum/templates/base.html +++ b/forum/templates/base.html @@ -11,7 +11,8 @@