Skip to content

Commit

Permalink
fix: update future methods table (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
joepercival authored Jun 10, 2024
1 parent 4898242 commit 067892d
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions sml_builder/templates/methods.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,16 @@ <h1 class="ons-u-mt-no">Methods catalogue</h1>
{% endif %}
{% endif %}



{% if page.rows %}
<h2>{{
onsStatus({
"label": 'Methods Ready to Use',
"variant": 'success'
})
}}</h2>
<p>The following methods are released and ready to use</p>

{% if page.rows %}
{% set methodsTable = {
"id": "ready-table",
"variants": ["sortable","responsive"],
Expand Down Expand Up @@ -116,19 +117,22 @@ <h2>{{
onsTable(methodsTable)
}}
{% else %}
<p class="ons-panel__error" id="search-alert">
<strong>No methods found under Methods Ready to Use, please try another search term</strong>
</p>
{% if method_search %}
<p class="ons-panel__error" id="search-alert">
<strong>No methods found under Methods Ready to Use, please try another search term</strong>
</p>
{% endif %}
{% endif %}


{% if page.future_rows %}
<h2>{{
onsStatus({
"label": 'Future Methods',
"variant": 'pending'
})
}}</h2>
<p>The following methods have been approved for development and will be included in future releases.</p>

{% if page.future_rows %}
{% set futureMethodsTable = {
"id": "future-table",
"variants": ["sortable","responsive"],
Expand Down Expand Up @@ -169,9 +173,11 @@ <h2>{{
onsTable(futureMethodsTable)
}}
{% else %}
<p class="ons-panel__error" id="future-search-alert">
<strong>No methods found under Future Methods, please try another search term.</strong>
</p>
{% if method_search %}
<p class="ons-panel__error" id="future-search-alert">
<strong>No methods found under Future Methods, please try another search term.</strong>
</p>
{% endif %}
{% endif %}


Expand Down

0 comments on commit 067892d

Please sign in to comment.