Update condition for empty state on portfolio funding screen

This commit is contained in:
Patrick Smith 2019-01-15 13:41:45 -05:00
parent f6037aa8af
commit 8cc46c9e05

View File

@ -37,16 +37,14 @@
{% endfor %} {% endfor %}
{% if not portfolio.task_orders %} {% if not active_task_orders and not pending_task_orders %}
{{ EmptyState( {{ EmptyState(
'This portfolio doesnt have any task orders yet.', 'This portfolio doesnt have any active or pending task orders.',
action_label='Add a New Task Order', action_label='Add a New Task Order',
action_href=url_for('task_orders.new', screen=1, portfolio_id=portfolio.id), action_href=url_for('task_orders.new', screen=1, portfolio_id=portfolio.id),
icon='cloud', icon='cloud',
) }} ) }}
{% endif %}
{% else %}
<ul> <ul>
{% for task_order in portfolio.task_orders %} {% for task_order in portfolio.task_orders %}