Web Interface: Add Flattr meta tag for Backspace e.V. hacker space

This commit is contained in:
Florian Festi 2018-03-05 19:49:13 +01:00
parent 5a5c3d72f0
commit 0dc6d26566
1 changed files with 8 additions and 4 deletions

View File

@ -153,8 +153,7 @@ class BServer:
<link rel="stylesheet" href="https://necolas.github.io/normalize.css/4.1.1/normalize.css" type="text/css" /> <link rel="stylesheet" href="https://necolas.github.io/normalize.css/4.1.1/normalize.css" type="text/css" />
<link rel="stylesheet" href="static/self.css" type="text/css" /> <link rel="stylesheet" href="static/self.css" type="text/css" />
""", self.scripts % (len(box.argparser._action_groups)-3), """ """, self.scripts % (len(box.argparser._action_groups)-3), """
<script> <meta name="flattr:id" content="456799">
</script>
</head> </head>
<body onload="hideargs()"> <body onload="hideargs()">
@ -241,6 +240,7 @@ class BServer:
document.getElementById("sample-" + group).style.height= "0px"; document.getElementById("sample-" + group).style.height= "0px";
} }
</script>""", self.scripts % len(self.groups), """ </script>""", self.scripts % len(self.groups), """
<meta name="flattr:id" content="456799">
</head> </head>
<body onload="hideargs()"> <body onload="hideargs()">
<div class="container" style="background-color: #FFF8EA;"> <div class="container" style="background-color: #FFF8EA;">
@ -310,8 +310,12 @@ Create boxes and more with a laser cutter!
def errorMessage(self, name, e): def errorMessage(self, name, e):
return [ return [
b"""<html><head><title>Error generating""", name.encode(), b"""<html>
b"""</title><head> <head>
<title>Error generating""", name.encode(),
b"""</title>
<meta name="flattr:id" content="456799">
</head>
<body> <body>
<h1>An error occurred!</h1> <h1>An error occurred!</h1>
<p>""", str(e).encode(), b"""</p> <p>""", str(e).encode(), b"""</p>