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}}">
|
<div class="topbar__context topbar__context--{{context}}">
|
||||||
<a href="/" class="topbar__link">
|
<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') %}
|
{% module Icon('caret_down', classes='topbar__link-icon icon--tiny') %}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
@ -2,20 +2,28 @@
|
|||||||
<ul>
|
<ul>
|
||||||
{% module SidenavItem(
|
{% module SidenavItem(
|
||||||
"Projects",
|
"Projects",
|
||||||
href=reverse_url('workspace_projects', workspace_id),
|
href=reverse_url('workspace_projects', '123456'),
|
||||||
active=matchesPath('\/workspaces\/[A-Za-z0-9]*\/projects'))
|
active=matchesPath('\/workspaces\/[A-Za-z0-9]*\/projects'),
|
||||||
%}
|
subnav=[
|
||||||
|
{
|
||||||
|
"label": "Add New Project",
|
||||||
|
"href":"/",
|
||||||
|
"active": matchesPath('workspaces/projects/new'),
|
||||||
|
"icon": "plus"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
)%}
|
||||||
|
|
||||||
{% module SidenavItem(
|
{% module SidenavItem(
|
||||||
"Members",
|
"Members",
|
||||||
href=reverse_url('workspace_members', workspace_id),
|
href=reverse_url('workspace_members', '123456'),
|
||||||
active=matchesPath('\/workspaces\/[A-Za-z0-9]*\/members'))
|
active=matchesPath('\/workspaces\/[A-Za-z0-9]*\/members')
|
||||||
%}
|
)%}
|
||||||
|
|
||||||
{% module SidenavItem(
|
{% module SidenavItem(
|
||||||
"Funding & Reports",
|
"Funding & Reports",
|
||||||
href=reverse_url('workspace_projects', workspace_id),
|
href=reverse_url('workspace_projects', '123456'),
|
||||||
active=matchesPath('\/workspaces\/[A-Za-z0-9]*\/reports'))
|
active=matchesPath('\/workspaces\/[A-Za-z0-9]*\/reports')
|
||||||
%}
|
)%}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user