New css UIKIT
This commit is contained in:
parent
42e9e3d707
commit
d88a9f2a77
|
@ -73,6 +73,7 @@ class Application(tornado.web.Application):
|
|||
(r"/save-config-controller", profileCreationHandler),
|
||||
(r"/download-config-controller", profileServeHandler),
|
||||
(r"/upload-profile-controller", profileUploadHandler),
|
||||
(r"/create-upload-profile", createUploadProfileHandler),
|
||||
(r"/?$", madAppBarHandler),
|
||||
(r"/[^/]+/?$", madAppHandler),
|
||||
(r"/[^/]+/.+$", madAppDataHandler)
|
||||
|
@ -481,6 +482,7 @@ class profileCreationHandler(BaseHandler):
|
|||
|
||||
|
||||
class profileServeHandler(BaseHandler):
|
||||
passwordless=True
|
||||
def get(self):
|
||||
try:
|
||||
user_id = self.get_secure_cookie('madgikmining')
|
||||
|
@ -698,6 +700,23 @@ class importingTextsControllerHandler(BaseHandler):
|
|||
return
|
||||
|
||||
|
||||
class createUploadProfileHandler(BaseHandler):
|
||||
passwordless=True
|
||||
# When loading the page first time and evry refresh
|
||||
def get(self):
|
||||
if 'data' in self.request.arguments:
|
||||
return
|
||||
else:
|
||||
# check if we already gave client a user_id
|
||||
user_id = self.get_secure_cookie('madgikmining')
|
||||
if not user_id:
|
||||
# give him a unique user_id
|
||||
user_id = 'user{0}'.format(datetime.datetime.now().microsecond + (random.randrange(1, 100+1) * 100000))
|
||||
self.set_secure_cookie('madgikmining', user_id)
|
||||
# check if he already uploaded his grants ids and inform him via a message
|
||||
self.render('create_upload_profile.html', settings=msettings)
|
||||
|
||||
|
||||
|
||||
class madAppHandler(BaseHandler):
|
||||
def get(self):
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 32 KiB |
|
@ -1,6 +1,5 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<head>
|
||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="{{ static_url("styles.css") }}" />
|
||||
|
|
Loading…
Reference in New Issue