Remove workspace ID from templates, since its not really working anyway. Replace with a static dummy ID.
This commit is contained in:
parent
9369a137ca
commit
fbbd766f1f
@ -6,7 +6,7 @@
|
||||
|
||||
<div class="topbar__context topbar__context--{{context}}">
|
||||
<a href="/" class="topbar__link">
|
||||
<span class="topbar__link-label">{{ "Workspace "+workspace_id if context == 'workspace' else "JEDI" }}</span>
|
||||
<span class="topbar__link-label">{{ "Workspace 123456" if context == 'workspace' else "JEDI" }}</span>
|
||||
{% module Icon('caret_down', classes='topbar__link-icon icon--tiny') %}
|
||||
</a>
|
||||
|
||||
|
@ -2,20 +2,28 @@
|
||||
<ul>
|
||||
{% module SidenavItem(
|
||||
"Projects",
|
||||
href=reverse_url('workspace_projects', workspace_id),
|
||||
active=matchesPath('\/workspaces\/[A-Za-z0-9]*\/projects'))
|
||||
%}
|
||||
href=reverse_url('workspace_projects', '123456'),
|
||||
active=matchesPath('\/workspaces\/[A-Za-z0-9]*\/projects'),
|
||||
subnav=[
|
||||
{
|
||||
"label": "Add New Project",
|
||||
"href":"/",
|
||||
"active": matchesPath('workspaces/projects/new'),
|
||||
"icon": "plus"
|
||||
}
|
||||
]
|
||||
)%}
|
||||
|
||||
{% module SidenavItem(
|
||||
"Members",
|
||||
href=reverse_url('workspace_members', workspace_id),
|
||||
active=matchesPath('\/workspaces\/[A-Za-z0-9]*\/members'))
|
||||
%}
|
||||
href=reverse_url('workspace_members', '123456'),
|
||||
active=matchesPath('\/workspaces\/[A-Za-z0-9]*\/members')
|
||||
)%}
|
||||
|
||||
{% module SidenavItem(
|
||||
"Funding & Reports",
|
||||
href=reverse_url('workspace_projects', workspace_id),
|
||||
active=matchesPath('\/workspaces\/[A-Za-z0-9]*\/reports'))
|
||||
%}
|
||||
href=reverse_url('workspace_projects', '123456'),
|
||||
active=matchesPath('\/workspaces\/[A-Za-z0-9]*\/reports')
|
||||
)%}
|
||||
</ul>
|
||||
</nav>
|
||||
|
Loading…
x
Reference in New Issue
Block a user