diff --git a/cli/medperf/web_ui/templates/benchmark_detail.html b/cli/medperf/web_ui/templates/benchmark_detail.html index 448d35dfb..b612a720e 100644 --- a/cli/medperf/web_ui/templates/benchmark_detail.html +++ b/cli/medperf/web_ui/templates/benchmark_detail.html @@ -24,7 +24,11 @@
Details

Description: {{ entity.description }}

-

Documentation: {{ entity.docs_url }}

+ {% if entity.docs_url %} +

Documentation: {{ entity.docs_url }}

+ {% else %} +

Documentation: Not Available

+ {% endif %}

Demo Dataset Tarball: {{ entity.demo_dataset_tarball_url }}

{{ entity.demo_dataset_tarball_hash }}

diff --git a/cli/medperf/web_ui/templates/benchmarks.html b/cli/medperf/web_ui/templates/benchmarks.html index 36fe70e8d..ccd534a50 100644 --- a/cli/medperf/web_ui/templates/benchmarks.html +++ b/cli/medperf/web_ui/templates/benchmarks.html @@ -17,7 +17,11 @@
{{ benchmark.state }}
Is valid: {{ benchmark.is_valid }}

Description: {{ benchmark.description }}

-

Documentation

+ {% if benchmark.docs_url %} +

Documentation

+ {% else %} +

Documentation: Not Available

+ {% endif %}

Approval Status: {{ benchmark.approval_status }}

diff --git a/cli/medperf/web_ui/templates/mlcube_detail.html b/cli/medperf/web_ui/templates/mlcube_detail.html index 0164463f8..6c1deb84d 100644 --- a/cli/medperf/web_ui/templates/mlcube_detail.html +++ b/cli/medperf/web_ui/templates/mlcube_detail.html @@ -82,10 +82,20 @@
Details

{{ entity.mlcube_hash }}

Parameters: {{ entity.git_parameters_url }}

{{ entity.parameters_hash }}

-

Image Tarball: {{ entity.image_tarball_url }}

-

{{ entity.image_tarball_hash }}

-

Additional Files: {{ entity.additional_files_tarball_url }}

-

{{ entity.additional_files_tarball_hash }}

+ {% if entity.image_tarball_url %} +

Image Tarball: {{ entity.image_tarball_url }}

+

{{ entity.image_tarball_hash }}

+ {% else %} +

Image Tarball: Not Available

+

N/A

+ {% endif %} + {% if entity.additional_files_tarball_url %} +

Additional Files: {{ entity.additional_files_tarball_url }}

+

{{ entity.additional_files_tarball_hash }}

+ {% else %} +

Additional Files: Not Available

+

N/A

+ {% endif %}