remove dummy "empty" vars, just check if the arrays are empty
This commit is contained in:
parent
d9d638ab3b
commit
4331f54adb
@ -1,9 +1,5 @@
|
||||
{% extends "base.html.to" %}
|
||||
|
||||
{% block template_vars %}
|
||||
{% set requestsEmpty = False %}
|
||||
{% end %}
|
||||
|
||||
{% block modal %}
|
||||
{% if modalOpen() %}
|
||||
{% apply modal %}
|
||||
@ -35,7 +31,7 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% if requestsEmpty %}
|
||||
{% if not requests %}
|
||||
|
||||
{% module EmptyState(
|
||||
'There are currently no active requests for you to see.',
|
||||
|
@ -1,12 +1,8 @@
|
||||
{% extends "base_workspace.html.to" %}
|
||||
|
||||
{% block template_vars %}
|
||||
{% set membersEmpty = False %}
|
||||
{% end %}
|
||||
|
||||
{% block workspace_content %}
|
||||
|
||||
{% if membersEmpty %}
|
||||
{% if not members %}
|
||||
|
||||
{% module EmptyState(
|
||||
'There are currently no members in this Workspace.',
|
||||
|
@ -1,12 +1,8 @@
|
||||
{% extends "base_workspace.html.to" %}
|
||||
|
||||
{% block template_vars %}
|
||||
{% set projectsEmpty = False %}
|
||||
{% end %}
|
||||
|
||||
{% block workspace_content %}
|
||||
|
||||
{% if projectsEmpty %}
|
||||
{% if not projects %}
|
||||
|
||||
{% module EmptyState(
|
||||
'There are currently no projects set up for this Workspace.',
|
||||
|
Loading…
x
Reference in New Issue
Block a user