Skip to content

Commit

Permalink
Using tilde instead of format method
Browse files Browse the repository at this point in the history
  • Loading branch information
benji-glitsos-ga committed Dec 17, 2024
1 parent d6d8653 commit 0a501af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/_templates/product-v2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,17 @@

{% set bands_table_list = page.tables.bands_table | selectattr("name", "!=", None) | list %}

{% set page_title = page.data.short_name if page.data.is_latest_version else "{}. {}".format(format_version_number(page.data.version_number), page.data.short_name) %}
{% set page_title = page.data.short_name if page.data.is_latest_version else format_version_number(page.data.version_number) ~ ". " ~ page.data.short_name %}

{% set display_title = page.data.short_name if page.data.is_latest_version else "{} {}".format(page.data.short_name, format_version_number(page.data.version_number)) %}
{% set display_title = page.data.short_name if page.data.is_latest_version else page.data.short_name ~ " " ~ format_version_number(page.data.version_number) %}

{% set product_ids_label = "Product IDs" if product_ids_list | length > 1 else "Product ID" %}

{% set parent_products_label = "Parent products" if parent_products_list | length > 1 else "Parent product" %}

{% set collections_label = "Collections" if collections_list | length > 1 else "Collection" %}

{% set currency_report_url = "https://mgmt.sandbox.dea.ga.gov.au/public-dashboards/d22241dbfca54b1fa9f73938ef26e645?orgId=1#:~:text={}".format(page.data.short_name | urlencode) %}
{% set currency_report_url = "https://mgmt.sandbox.dea.ga.gov.au/public-dashboards/d22241dbfca54b1fa9f73938ef26e645?orgId=1#:~:text=" ~ (page.data.short_name | urlencode) %}

{% set lineage_type = lineage_type_terms.get(page.data.lineage_type, page.data.lineage_type) %}

Expand Down

0 comments on commit 0a501af

Please sign in to comment.