workspace_projects route working

This commit is contained in:
richard-dds
2018-08-21 11:25:44 -04:00
parent dcd69f6b9f
commit 0de8866919
4 changed files with 20 additions and 55 deletions

View File

@@ -4,21 +4,21 @@
{% block workspace_content %}
{% for project in projects %}
{% for project in workspace.projects %}
<div class='block-list project-list-item'>
<header class='block-list__header'>
<h2 class='block-list__title'>{{ project['name'] }} ({{ project['environments']|length }} environments)</h2>
<a class='icon-link' href=''>
<h2 class='block-list__title'>{{ project.name }} ({{ project.environments|length }} environments)</h2>
<a class='icon-link' href='/workspaces/123456/projects/789/edit'>
{{ Icon('edit') }}
<span>edit</span>
</a>
</header>
<ul>
{% for environment in project['environments'] %}
{% for environment in project.environments %}
<li class='block-list__item project-list-item__environment'>
<a href='/' target='_blank' rel='noopener noreferrer' class='project-list-item__environment__link'>
{{ Icon('link') }}
<span>{{ environment["name"]}}</span>
<span>{{ environment.name }}</span>
</a>
<div class='project-list-item__environment__members'>