Add workspace_id vars to views
This commit is contained in:
parent
e26109178d
commit
8be65316a5
@ -12,4 +12,4 @@ class Workspace(BaseHandler):
|
|||||||
@tornado.gen.coroutine
|
@tornado.gen.coroutine
|
||||||
def get(self, workspace_id):
|
def get(self, workspace_id):
|
||||||
projects = self.projects_repo.get_many(workspace_id)
|
projects = self.projects_repo.get_many(workspace_id)
|
||||||
self.render("workspace.html.to", projects=projects)
|
self.render("workspace_projects.html.to", workspace_id=workspace_id, projects=projects)
|
||||||
|
@ -12,4 +12,4 @@ class WorkspaceMembers(BaseHandler):
|
|||||||
@tornado.gen.coroutine
|
@tornado.gen.coroutine
|
||||||
def get(self, workspace_id):
|
def get(self, workspace_id):
|
||||||
members = self.members_repo.get_many(workspace_id)
|
members = self.members_repo.get_many(workspace_id)
|
||||||
self.render("workspace_members.html.to", members=members)
|
self.render("workspace_members.html.to", workspace_id=workspace_id, members=members)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user