From cac7679fb29eb563637c9c8c1218b0a9b55860e7 Mon Sep 17 00:00:00 2001 From: George Drummond Date: Mon, 22 Apr 2019 10:02:00 -0400 Subject: [PATCH] Remove ToggleList --- templates/components/toggle_list.html | 6 --- .../fragments/applications/environments.html | 46 ++++++++++--------- templates/portfolios/applications/team.html | 24 +++++----- 3 files changed, 36 insertions(+), 40 deletions(-) diff --git a/templates/components/toggle_list.html b/templates/components/toggle_list.html index b5990955..08526c5a 100644 --- a/templates/components/toggle_list.html +++ b/templates/components/toggle_list.html @@ -9,12 +9,6 @@ {% endmacro %} -{% macro ToggleList(item_name, item_type, length) %} -
- {{ caller() }} -
-{% endmacro %} - {% macro ToggleSection(section_name) %}
{{ caller() }} diff --git a/templates/fragments/applications/environments.html b/templates/fragments/applications/environments.html index ac4c3a60..b85f52f4 100644 --- a/templates/fragments/applications/environments.html +++ b/templates/fragments/applications/environments.html @@ -1,5 +1,5 @@ {% from "components/icon.html" import Icon %} -{% from "components/toggle_list.html" import ToggleList, ToggleButton, ToggleSection %} +{% from "components/toggle_list.html" import ToggleButton, ToggleSection %}
@@ -60,27 +60,31 @@
- {% call ToggleList() %} - {% call ToggleSection(section_name="environments") %} - - {% endcall %} + {% call ToggleSection(section_name="environments") %} + + {% endcall %} - {% call ToggleSection(section_name="edit") %} - - {% endcall %} + {% call ToggleSection(section_name="edit") %} + {% endcall %} diff --git a/templates/portfolios/applications/team.html b/templates/portfolios/applications/team.html index 489e6698..ac467251 100644 --- a/templates/portfolios/applications/team.html +++ b/templates/portfolios/applications/team.html @@ -2,7 +2,7 @@ {% from "components/empty_state.html" import EmptyState %} {% from "components/icon.html" import Icon %} -{% from "components/toggle_list.html" import ToggleList, ToggleButton, ToggleSection %} +{% from "components/toggle_list.html" import ToggleButton, ToggleSection %} {% set secondary_breadcrumb = 'portfolios.applications.team_settings.title' | translate({ "application_name": application.name }) %} @@ -96,18 +96,16 @@ }}
- {% call ToggleList() %} - {% call ToggleSection(section_name="environments") %} - - {% endcall %} + {% call ToggleSection(section_name="environments") %} + {% endcall %}