UI methods for rendering a modal, and dummy function to check if a modal is open

This commit is contained in:
Andrew Croce 2018-07-23 14:24:49 -04:00
parent a13727107a
commit 270de201a6

View File

@ -5,3 +5,12 @@ def dev(self):
def matchesPath(self, 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)