Add member placeholder info
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
{% from "components.html" import EmptyState %}
|
||||
|
||||
{% extends "base_workspace.html" %}
|
||||
{% extends "base_workspace.html.to" %}
|
||||
|
||||
{% block workspace_content %}
|
||||
|
||||
{% if not members %}
|
||||
|
||||
{{ EmptyState(
|
||||
{% module EmptyState(
|
||||
'There are currently no members in this Workspace.',
|
||||
actionLabel='Invite a new Member',
|
||||
actionHref='/members/new',
|
||||
icon='avatar'
|
||||
)}}
|
||||
)%}
|
||||
|
||||
|
||||
{% else %}
|
||||
@@ -61,17 +59,17 @@
|
||||
{% for m in members %}
|
||||
<tr>
|
||||
<td><a href="/workspaces/123456/members/789/edit" class="icon-link icon-link--large">{{ m['first_name'] }} {{ m['last_name'] }}</a></td>
|
||||
<td class='table-cell--shrink'>{% if m['num_projects'] == '0' %} <span class="label label--info">No Project Access</span> {% endif %}</td>
|
||||
<td class='table-cell--shrink'>{% if m['num_projects'] == '0' %} <span class="label label--info">No Project Access</span> {% end %}</td>
|
||||
<td>{{ m['status'] }}</a></td>
|
||||
<td>{{ m['workspace_role'] }}</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% end %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
{% end %}
|
||||
|
||||
|
||||
{% endblock %}
|
||||
{% end %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user