workspace projects list

This commit is contained in:
Andrew Croce 2018-07-27 12:19:20 -04:00
parent b21c997e09
commit d7281e12ba
5 changed files with 61 additions and 18 deletions

View File

@ -29,3 +29,4 @@
@import 'sections/login'; @import 'sections/login';
@import 'sections/request_approval'; @import 'sections/request_approval';
@import 'sections/projects_list';

View File

@ -12,6 +12,9 @@
@include panel-base; @include panel-base;
@include panel-theme-default; @include panel-theme-default;
padding: $gap * 2; padding: $gap * 2;
display: flex;
flex-direction: row;
justify-content: space-between;
} }
@mixin block-list__title { @mixin block-list__title {

View File

@ -16,10 +16,12 @@
th { th {
@include block-list-header; @include block-list-header;
display: table-cell;
} }
td { td {
@include block-list-item; @include block-list-item;
display: table-cell;
} }
&:last-child { &:last-child {

View File

@ -0,0 +1,33 @@
.project-list-item {
.project-list-item__environment {
display: flex;
flex-direction: row;
justify-content: space-between;
.project-list-item__environment__link {
text-decoration: none;
display: flex;
flex-direction: row;
align-items: center;
.icon {
@include icon-color($color-primary);
margin-right: $gap;
}
span {
text-decoration: underline;
}
}
.project-list-item__environment__members {
display: flex;
flex-direction: row;
align-items: center;
span {
@include h6;
}
}
}
}

View File

@ -2,25 +2,29 @@
{% block workspace_content %} {% block workspace_content %}
<div class="panel"> {% for project in projects %}
<div class='responsive-table-wrapper'> <div class='block-list project-list-item'>
<table> <header class='block-list__header'>
<thead> <h2 class='block-list__title'>{{ project['name'] }} ({{ len(project['environments'])}} environments)</h2>
<tr> <a class='block-list__header__link' href='/'>edit</a>
<th scope="col">Name</th> </header>
</tr> <ul>
</thead> {% for environment in project['environments'] %}
<tbody> <li class='block-list__item project-list-item__environment'>
{% for p in projects %} <a href='/' target='_blank' rel='noopener noreferrer' class='project-list-item__environment__link'>
<tr> {% module Icon('link') %}
<td>{{ p['name'] }}</td> <span>{{ environment["name"]}}</span>
</tr> </a>
{% end %}
</tbody>
</table>
</div>
</div>
<div class='project-list-item__environment__members'>
<div class='label'>0</div>
<span>members</span>
</div>
</li>
{% end %}
</ul>
</div>
{% end %}
{% end %} {% end %}