mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
CSS changes
This commit is contained in:
parent
c3565d3cdd
commit
da93c5da13
2 changed files with 25 additions and 7 deletions
|
@ -1,6 +1,8 @@
|
||||||
@background-color: #0d193b;
|
@background-color: #0d193b;
|
||||||
@text-color: #a0ccff;
|
@text-color: #a0ccff;
|
||||||
@accent-color: white;
|
@accent-color: white;
|
||||||
|
@link-color: #00aaff;
|
||||||
|
@visited-color: #aa66ff;
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
|
@ -12,6 +14,18 @@ h1, h2, h3, h4, h5, h6 {
|
||||||
color: @accent-color;
|
color: @accent-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: @link-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:active {
|
||||||
|
color: @link-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:visited {
|
||||||
|
color: @visited-color;
|
||||||
|
}
|
||||||
|
|
||||||
input[type="text"], input[type="password"] {
|
input[type="text"], input[type="password"] {
|
||||||
background-color: rgba(red(@text-color), green(@text-color), blue(@text-color), 0.1);
|
background-color: rgba(red(@text-color), green(@text-color), blue(@text-color), 0.1);
|
||||||
color: @text-color;
|
color: @text-color;
|
||||||
|
@ -32,6 +46,7 @@ textarea {
|
||||||
margin: 1px;
|
margin: 1px;
|
||||||
border: 1px dotted @text-color;
|
border: 1px dotted @text-color;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
height: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
button, input[type="submit"] {
|
button, input[type="submit"] {
|
||||||
|
|
17
webserver.py
17
webserver.py
|
@ -166,7 +166,7 @@ def page_wiki(key: str):
|
||||||
db_session.close()
|
db_session.close()
|
||||||
if wiki_page is None:
|
if wiki_page is None:
|
||||||
return render_template("wiki.html", key=key)
|
return render_template("wiki.html", key=key)
|
||||||
converted_md = Markup(markdown.markdown(escape(wiki_page.content)))
|
converted_md = Markup(markdown.markdown(escape(wiki_page.content), output_format="html5"))
|
||||||
return render_template("wiki.html", key=key, wiki_page=wiki_page, converted_md=converted_md,
|
return render_template("wiki.html", key=key, wiki_page=wiki_page, converted_md=converted_md,
|
||||||
wiki_log=wiki_latest_edit)
|
wiki_log=wiki_latest_edit)
|
||||||
elif request.method == "POST":
|
elif request.method == "POST":
|
||||||
|
@ -186,12 +186,15 @@ def page_wiki(key: str):
|
||||||
new_log = db.WikiLog(editor=user, edited_key=key, timestamp=datetime.datetime.now(), reason=edit_reason)
|
new_log = db.WikiLog(editor=user, edited_key=key, timestamp=datetime.datetime.now(), reason=edit_reason)
|
||||||
db_session.add(new_log)
|
db_session.add(new_log)
|
||||||
db_session.commit()
|
db_session.commit()
|
||||||
telegram_bot.send_message(config["Telegram"]["main_group"],
|
try:
|
||||||
f'ℹ️ La pagina wiki <a href="https://ryg.steffo.eu/wiki/{key}">{key}</a> è stata'
|
telegram_bot.send_message(config["Telegram"]["main_group"],
|
||||||
f' modificata da'
|
f'ℹ️ La pagina wiki <a href="https://ryg.steffo.eu/wiki/{key}">{key}</a> è stata'
|
||||||
f' <a href="https://ryg.steffo.eu/profile/{user.username}">{user.username}</a>:'
|
f' modificata da'
|
||||||
f' {"<i>Nessun motivo specificato.</i>" if not edit_reason else edit_reason}',
|
f' <a href="https://ryg.steffo.eu/profile/{user.username}">{user.username}</a>:'
|
||||||
parse_mode="HTML")
|
f' {"<i>Nessun motivo specificato.</i>" if not edit_reason else edit_reason}\n',
|
||||||
|
parse_mode="HTML")
|
||||||
|
except:
|
||||||
|
pass
|
||||||
return redirect(url_for("page_wiki", key=key))
|
return redirect(url_for("page_wiki", key=key))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue