workspace projects list
This commit is contained in:
parent
b21c997e09
commit
d7281e12ba
@ -29,3 +29,4 @@
|
|||||||
|
|
||||||
@import 'sections/login';
|
@import 'sections/login';
|
||||||
@import 'sections/request_approval';
|
@import 'sections/request_approval';
|
||||||
|
@import 'sections/projects_list';
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
33
scss/sections/_projects_list.scss
Normal file
33
scss/sections/_projects_list.scss
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -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 %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user