From 067892d979c6d4efea24c5cb47222c91eead7765 Mon Sep 17 00:00:00 2001 From: Joseph-Percival-ONS <144360663+joepercival@users.noreply.github.com> Date: Mon, 10 Jun 2024 16:01:27 +0100 Subject: [PATCH] fix: update future methods table (#328) --- sml_builder/templates/methods.html | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/sml_builder/templates/methods.html b/sml_builder/templates/methods.html index c3667820e..b86de5d47 100644 --- a/sml_builder/templates/methods.html +++ b/sml_builder/templates/methods.html @@ -67,6 +67,9 @@

Methods catalogue

{% endif %} {% endif %} + + +{% if page.rows %}

{{ onsStatus({ "label": 'Methods Ready to Use', @@ -74,8 +77,6 @@

{{ }) }}

The following methods are released and ready to use

- -{% if page.rows %} {% set methodsTable = { "id": "ready-table", "variants": ["sortable","responsive"], @@ -116,10 +117,15 @@

{{ onsTable(methodsTable) }} {% else %} -

- No methods found under Methods Ready to Use, please try another search term -

+ {% if method_search %} +

+ No methods found under Methods Ready to Use, please try another search term +

+ {% endif %} {% endif %} + + +{% if page.future_rows %}

{{ onsStatus({ "label": 'Future Methods', @@ -127,8 +133,6 @@

{{ }) }}

The following methods have been approved for development and will be included in future releases.

- -{% if page.future_rows %} {% set futureMethodsTable = { "id": "future-table", "variants": ["sortable","responsive"], @@ -169,9 +173,11 @@

{{ onsTable(futureMethodsTable) }} {% else %} -

- No methods found under Future Methods, please try another search term. -

+ {% if method_search %} +

+ No methods found under Future Methods, please try another search term. +

+ {% endif %} {% endif %}