40 lines
1.0 KiB
HTML
40 lines
1.0 KiB
HTML
{% from "components/sidenav_item.html" import SidenavItem %}
|
|
|
|
<nav class='sidenav workspace-navigation'>
|
|
<ul>
|
|
{{ SidenavItem(
|
|
"Projects",
|
|
href=url_for("workspaces.workspace_projects", workspace_id=123456),
|
|
active=g.matchesPath('\/workspaces\/[A-Za-z0-9]*\/projects'),
|
|
subnav=[
|
|
{
|
|
"label": "Add New Project",
|
|
"href":"/",
|
|
"active": g.matchesPath('workspaces/projects/new'),
|
|
"icon": "plus"
|
|
}
|
|
]
|
|
) }}
|
|
|
|
{{ SidenavItem(
|
|
"Members",
|
|
href=url_for("workspaces.workspace_members", workspace_id=123456),
|
|
active=g.matchesPath('\/workspaces\/[A-Za-z0-9]*\/members'),
|
|
subnav=[
|
|
{
|
|
"label": "Add New Member",
|
|
"href": "",
|
|
"active": g.matchesPath('/workspaces/members/new'),
|
|
"icon": "plus"
|
|
}
|
|
]
|
|
) }}
|
|
|
|
{{ SidenavItem(
|
|
"Funding & Reports",
|
|
href='/workspaces/123456/reports',
|
|
active=g.matchesPath('\/workspaces\/[A-Za-z0-9]*\/reports')
|
|
) }}
|
|
</ul>
|
|
</nav>
|