UI methods for rendering a modal, and dummy function to check if a modal is open
This commit is contained in:
@@ -5,3 +5,12 @@ def dev(self):
|
|||||||
|
|
||||||
def matchesPath(self, href):
|
def matchesPath(self, href):
|
||||||
return self.request.uri.startswith(href)
|
return self.request.uri.startswith(href)
|
||||||
|
|
||||||
|
def modal(self, body):
|
||||||
|
return self.render_string(
|
||||||
|
"components/modal.html.to",
|
||||||
|
body=body)
|
||||||
|
|
||||||
|
def modalOpen(self):
|
||||||
|
# For now, just check a dummy URL param
|
||||||
|
return self.get_argument("modal", False)
|
||||||
|
Reference in New Issue
Block a user