remove dummy "empty" vars, just check if the arrays are empty

This commit is contained in:
Andrew Croce 2018-07-31 12:07:25 -04:00
parent d9d638ab3b
commit 4331f54adb
3 changed files with 3 additions and 15 deletions

View File

@ -1,9 +1,5 @@
{% extends "base.html.to" %} {% extends "base.html.to" %}
{% block template_vars %}
{% set requestsEmpty = False %}
{% end %}
{% block modal %} {% block modal %}
{% if modalOpen() %} {% if modalOpen() %}
{% apply modal %} {% apply modal %}
@ -35,7 +31,7 @@
{% block content %} {% block content %}
{% if requestsEmpty %} {% if not requests %}
{% module EmptyState( {% module EmptyState(
'There are currently no active requests for you to see.', 'There are currently no active requests for you to see.',

View File

@ -1,12 +1,8 @@
{% extends "base_workspace.html.to" %} {% extends "base_workspace.html.to" %}
{% block template_vars %}
{% set membersEmpty = False %}
{% end %}
{% block workspace_content %} {% block workspace_content %}
{% if membersEmpty %} {% if not members %}
{% module EmptyState( {% module EmptyState(
'There are currently no members in this Workspace.', 'There are currently no members in this Workspace.',

View File

@ -1,12 +1,8 @@
{% extends "base_workspace.html.to" %} {% extends "base_workspace.html.to" %}
{% block template_vars %}
{% set projectsEmpty = False %}
{% end %}
{% block workspace_content %} {% block workspace_content %}
{% if projectsEmpty %} {% if not projects %}
{% module EmptyState( {% module EmptyState(
'There are currently no projects set up for this Workspace.', 'There are currently no projects set up for this Workspace.',