UI methods for rendering a modal, and dummy function to check if a modal is open
This commit is contained in:
parent
a13727107a
commit
270de201a6
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user