From d0e9dbbd0eeb6b60d3a1afe8f42e36e1aa90fa96 Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Mon, 15 Jul 2019 20:40:53 +0100 Subject: [PATCH] templates explore Fix various UI issues - Add whitespace between download icon and links - Show schema version specified in uploaded data - Add full stop to "There were no ..." messages - Clarify download purpose and messages - Replace Valid* with Structure terminology Fixes for issue #20 --- .../templates/cove_oc4ids/explore.html | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/cove_oc4ids/templates/cove_oc4ids/explore.html b/cove_oc4ids/templates/cove_oc4ids/explore.html index 9a952c6..954d8c9 100644 --- a/cove_oc4ids/templates/cove_oc4ids/explore.html +++ b/cove_oc4ids/templates/cove_oc4ids/explore.html @@ -38,9 +38,9 @@

{% trans 'Headlines' %}

  • {% blocktrans count count=json_data.projects|length %}This file contains {{count}} project.{% plural %}This file contains {{count}} projects.{% endblocktrans %}
  • - {% if data_schema_version %} + {% if json_data.version %}
  • - {% trans "The schema version specified in the file is" %} {{data_schema_version}}. + {% trans "The schema version specified in the file is" %} {{json_data.version}}.
  • {% endif %} @@ -99,16 +99,17 @@

    +

    {% trans "Alternative formats for reviewing your data" %}

    {% if conversion == 'flatten' %} -

    We have tried to convert your JSON into a spreadsheet format.

    The results can be seen below.

    +

    {% trans "Conversion of your (JSON) data into a spreadsheet format. The results can be seen below" %}.

    @@ -119,7 +120,7 @@

    {% endif %} {% elif conversion == 'unflatten' %} -

    We have tried to convert your data into JSON format.

    The results can be seen below.

    +

    {% trans "Conversion of your data into JSON format. The results can be seen below" %}.

    • @@ -173,7 +174,7 @@

      - {% trans 'Validation Errors' %} + {% trans 'Structural Errors' %}

      @@ -184,11 +185,11 @@

      - {% trans 'Validation Errors' %} + {% trans 'Structural Errors' %}

      -

      {% trans 'There were no validation errors' %}

      +

      {% trans 'There were no structural errors' %}.

      {% endif %} @@ -220,7 +221,7 @@

      -

      {% trans 'There were no additional fields' %}

      +

      {% trans 'There were no additional fields' %}.

      {% endif %}