From c946bc74dbe7e60a0b6f038d2681c50da66e1e28 Mon Sep 17 00:00:00 2001 From: leigh-mil Date: Sun, 19 Jan 2020 07:11:35 -0500 Subject: [PATCH] Remove button from TO index page sticy cta when there are no TOs --- templates/task_orders/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/task_orders/index.html b/templates/task_orders/index.html index 5926ff60..a720c789 100644 --- a/templates/task_orders/index.html +++ b/templates/task_orders/index.html @@ -66,7 +66,7 @@ {% call StickyCTA(text="common.task_orders"|translate) %} - {% if user_can(permissions.CREATE_TASK_ORDER) and task_orders %} + {% if user_can(permissions.CREATE_TASK_ORDER) and to_count > 0 %} {{ "task_orders.add_new_button" | translate }}