Commit 1de433cb authored by Lennart Franken's avatar Lennart Franken
Browse files

Fixed link in devel-warning

parent f58421e3
Pipeline #259 passed with stage
in 43 seconds
......@@ -48,7 +48,6 @@
body_format: json
body:
add: True
message: "This is a devel server. Productive server is at <a href='https://webvokabeln.de'>https://webvokabeln.de</a>"
message: "This is a devel server. Productive server is at <a href='https://webvokabeln.de' style='margin-left: 6px'> https://webvokabeln.de</a>"
status_code: 200
when: is_devel
......@@ -30,7 +30,7 @@ def render_showuser(self):
def render_log(self):
for logentry in self.user.database.logs[::-1]:
self.addtohtml("""<div class="logentry">[%s] %s at %s:<br>%s</div>""" % (logentry["type"], str(logentry["user"]["name"])+" / "+str(logentry["user"]["id"]), datetime.datetime.fromtimestamp(logentry["time"]), logentry["message"]))
self.addtohtml("""<div class="logentry">[%s] %s at %s:<br>%s</div>""" % (logentry["type"], str(logentry["user"]["name"])+" / "+str(logentry["user"]["id"]), datetime.datetime.fromtimestamp(logentry["time"]), tohtml(logentry["message"])))
def render_globalmessage(self):
self.addtohtml(button("globalmessage_set"), button("globalmessage_remove"))
def render_donators(self):
......
......@@ -58,7 +58,7 @@ def static(path):
raise StaticNoPermission()
def addglobalmessage(message):
generalplacements["globalwarnings"] += """<center><p class="warning">%s</p></center>""" % tohtml(message)
generalplacements["globalwarnings"] += """<center><p class="warning">%s</p></center>""" % message
def generate_setting(setting, usersettings):
if setting[1]["type"]=="select":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment