Commit ead25e74 authored by svilayphiou's avatar svilayphiou

print.css → laser.css

parent 3612b167
......@@ -3,7 +3,7 @@
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="/static/css/style.css" type="text/css" charset="utf-8">
<link rel="stylesheet" href="/static/css/print.css" media="print" type="text/css" charset="utf-8">
<link rel="stylesheet" href="/static/css/laser.css" media="print" type="text/css" charset="utf-8">
<title>Error message</title>
</head>
......@@ -40,4 +40,4 @@
</div>
</div>
</body>
</html>
\ No newline at end of file
</html>
......@@ -383,13 +383,13 @@ def css(request):
def cssprint(request):
try:
pad = Pad.objects.get(display_slug='print.css')
pad = Pad.objects.get(display_slug='laser.css')
padID = pad.group.groupID + '$' + urllib.quote_plus(pad.name.replace('::', '_'))
epclient = EtherpadLiteClient(pad.server.apikey, pad.server.apiurl)
return HttpResponse(epclient.getText(padID)['text'], mimetype="text/css")
except:
# If there is no pad called "css", loads a default css file
f = open('relearn/static/css/print.css', 'r')
f = open('relearn/static/css/laser.css', 'r')
css = f.read()
f.close()
return HttpResponse(css, mimetype="text/css")
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