From 48a05f36ac606ac828896e48dc8dbcb2559e06ed Mon Sep 17 00:00:00 2001 From: Benjamin Glitsos Date: Wed, 2 Oct 2024 15:53:10 +1000 Subject: [PATCH] Classification specifications --- docs/_templates/product-v2.rst | 46 ++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 21 deletions(-) diff --git a/docs/_templates/product-v2.rst b/docs/_templates/product-v2.rst index 62b0a0d6..26e99904 100644 --- a/docs/_templates/product-v2.rst +++ b/docs/_templates/product-v2.rst @@ -310,6 +310,12 @@ * - **Last updated** - {{ page.data.published }} {%- endif %} + {%- if page.data.licence %} + {%- if page.data.licence.name and page.data.licence.link %} + * - **Licence** + - `{{ page.data.licence.name }} <{{ page.data.licence.link }}>`_ + {%- endif %} + {%- endif %} {%- if page.data.parent_products %} {%- if page.data.parent_products.name and page.data.parent_products.link %} * - **Parent product(s)** @@ -329,12 +335,6 @@ * - **Tags** - {{ tags_list_component }} {%- endif %} - {%- if page.data.licence %} - {%- if page.data.licence.name and page.data.licence.link %} - * - **Licence** - - `{{ page.data.licence.name }} <{{ page.data.licence.link }}>`_ - {%- endif %} - {%- endif %} {%- endif %} {% if page.data.citations %} @@ -573,39 +573,43 @@ - `{{ page.data.ecat_id }} `_ - The eCat ID (for internal use). {%- endif %} + {%- if page.data.licence %} + {%- if page.data.licence.name and page.data.licence.link and page.data.enable_credits %} + * - **Licence** + - `{{ page.data.licence.name }} <{{ page.data.licence.link }}>`_ + - See the `Credits tab <./?tab=credits>`_. + {%- elif page.data.licence.name and page.data.licence.link %} + * - **Licence** + - `{{ page.data.licence.name }} <{{ page.data.licence.link }}>`_ + - + {%- endif %} + {%- endif %} + + .. rubric:: Classification + :name: classification-specifications + :class: h2 + + .. list-table:: + :name: classification-specifications-table + {%- if page.data.parent_products %} {%- if page.data.parent_products.name and page.data.parent_products.link %} * - **Parent product(s)** - `{{ page.data.parent_products.name }} <{{ page.data.parent_products.link }}>`_ - - {%- endif %} {%- endif %} {%- if page.data.collection %} {%- if page.data.collection.name and page.data.collection.link %} * - **Collection** - `{{ page.data.collection.name }} <{{ page.data.collection.link }}>`_ - - {%- elif page.data.collection.name %} * - **Collection** - {{ page.data.collection.name }} - - {%- endif %} {%- endif %} {%- if tags_list %} * - **Tags** - {{ tags_list_component }} - - - {%- endif %} - {%- if page.data.licence %} - {%- if page.data.licence.name and page.data.licence.link and page.data.enable_credits %} - * - **Licence** - - `{{ page.data.licence.name }} <{{ page.data.licence.link }}>`_ - - See the `Credits tab <./?tab=credits>`_. - {%- elif page.data.licence.name and page.data.licence.link %} - * - **Licence** - - `{{ page.data.licence.name }} <{{ page.data.licence.link }}>`_ - - - {%- endif %} {%- endif %} {% endif %}