diff --git a/geonode/base/templates/base/_resourcebase_info_panel.html b/geonode/base/templates/base/_resourcebase_info_panel.html new file mode 100644 index 00000000000..0a42442c42a --- /dev/null +++ b/geonode/base/templates/base/_resourcebase_info_panel.html @@ -0,0 +1,173 @@ +{% load i18n %} +{% block content %} + +
+ {% if resource.title %} +
{% trans "Title" %}
+
{{ resource.title|truncatechars:80 }}
+ {% endif %} + + {% if resource.srid and SRID_DETAIL == 'above' %} +
{% trans "SRID" %}
+
{{ resource.srid }}
+ {% endif %} + + {% if LICENSES_ENABLED and LICENSES_DETAIL == 'above' and resource.license %} +
{% trans "License" %}
+
{{ resource.license.name_long }}
+ {% endif %} +
+ {% for bullet in resource.license.description_bullets %} + {{ bullet }}

+ {% endfor %} + {% if resource.license.url %} + + For more info see {{ resource.license.url }}. + {% endif %} +
+ + {% if resource.abstract %} +
{% trans "Abstract" %}
+
{{ resource.abstract|escape|urlize|linebreaks|safe|truncatechars:500 }}
+ {% endif %} + + {% if resource.date %} +
{% trans resource.date_type|title %} {% trans "Date" %}
+ {% if resource.date_type == 'creation' %} +
{{ resource.date }}
+ {% elif resource.date_type == 'publication' %} + + {% else %} +
{{ resource.date }}
+ {% endif %} + {% endif %} + + {% if resource.display_type %} +
{% trans "Type" %}
+
{{ resource.display_type }}
+ {% endif %} + + {% if resource.keywords.count > 0 %} +
{% trans "Keywords" %}
+
+ {% for keyword in resource.keywords.all %} + + {{ keyword.name }} + + {% if not forloop.last %},{% endif %} + {% endfor %} +
+ {% endif %} + + {% if resource.category %} +
{% trans "Category" %}
+
{{ resource.category }} {% if resource.category.description %}{% endif %}
+ {% if resource.category.description %} +
+ {{ resource.category.description }} +
+ {% endif %} + {% endif %} + + {% if resource.regions.all %} +
{% trans "Regions" %}
+
+ {% for region in resource.regions.all %} + + {{ region.name }} + + {% if not forloop.last %},{% endif %} + {% endfor %} +
+ {% endif %} + + {% if resource.owner %} +
{% trans "Owner" %}
+
+ {% endif %} + + {% if resource.poc.user %} +
{% trans "Point of Contact" %}
+
{{ resource.poc.user.username }}
+ {% endif %} +
+ +
+
{% trans "More info" %}
+
-
+
+ +
+
+ + {% if resource.srid and SRID_DETAIL == 'below' %} +
{% trans "SRID" %}
+
{{ resource.srid }}
+ {% endif %} + + {% if LICENSES_ENABLED and LICENSES_DETAIL == 'below' and resource.license %} +
{% trans "License" %}
+
{{ resource.license.name_long }}
+
+ {% for bullet in resource.license.description_bullets %} + {{ bullet }}

+ {% endfor %} + {% if resource.license.url %} + + For more info see {{ resource.license.url }}. + {% endif %} +
+ {% endif %} + + {% if resource.maintenance_frequency %} +
{% trans "Maintenance Frequency" %}
+
{{ resource.maintenance_frequency_title }}
+ {% endif %} + + {% if resource.restriction_code_type or resource.constraints_other %} +
{% trans "Restrictions" %}
+
{% if resource.constraints_other %} + {{ resource.constraints_other }} + {% else %} + {{ resource.restriction_code_type }} + {% endif %}
+ {% endif %} + + {% if resource.edition %} +
{% trans "Edition" %}
+
{{ resource.edition}}
+ {% endif %} + + {% if resource.purpose %} +
{% trans "Purpose" %}
+
{{ resource.purpose|escape|urlize|linebreaks|safe|truncatechars:160 }}
+ {% endif %} + + {% if resource.language %} +
{% trans "Language" %}
+
{{ resource.language_title }}
+ {% endif %} + + {% if resource.temporal_extent_start and resource.temporal_extent_end %} +
{% trans "Temporal Extent" %}
+
{{ resource.temporal_extent_start }} - {{ resource.temporal_extent_end }}
+ {% endif %} + + {% if resource.data_quality_statement %} +
{% trans "Data Quality" %}
+
{{ resource.data_quality_statement }}
+ {% endif %} + + {% if resource.supplemental_information %} +
{% trans "Supplemental Information" %}
+
{{ resource.supplemental_information|truncatechars:160|escape|urlize|linebreaks|safe }}
+ {% endif %} + + {% if resource.spatial_representation_type %} +
{% trans "Spatial Representation Type" %}
+
{{ resource.spatial_representation_type }}
+ {% endif %} + +
+ +
+ + {% endblock %} \ No newline at end of file diff --git a/geonode/base/templates/base/resourcebase_info_panel.html b/geonode/base/templates/base/resourcebase_info_panel.html index ae5ea7feb29..13a0164d519 100644 --- a/geonode/base/templates/base/resourcebase_info_panel.html +++ b/geonode/base/templates/base/resourcebase_info_panel.html @@ -1,173 +1,10 @@ +{% extends "base/_resourcebase_info_panel.html" %} {% load i18n %} -
-
- {% if resource.title %} -
{% trans "Title" %}
-
{{ resource.title|truncatechars:80 }}
- {% endif %} - - {% if resource.srid and SRID_DETAIL == 'above' %} -
{% trans "SRID" %}
-
{{ resource.srid }}
- {% endif %} - - {% if LICENSES_ENABLED and LICENSES_DETAIL == 'above' and resource.license %} -
{% trans "License" %}
-
{{ resource.license.name_long }}
- {% endif %} -
- {% for bullet in resource.license.description_bullets %} - {{ bullet }}

- {% endfor %} - {% if resource.license.url %} - + For more info see {{ resource.license.url }}. - {% endif %} -
- - {% if resource.abstract %} -
{% trans "Abstract" %}
-
{{ resource.abstract|escape|urlize|linebreaks|safe|truncatechars:500 }}
- {% endif %} - - {% if resource.date %} -
{% trans resource.date_type|title %} {% trans "Date" %}
- {% if resource.date_type == 'creation' %} -
{{ resource.date }}
- {% elif resource.date_type == 'publication' %} - - {% else %} -
{{ resource.date }}
- {% endif %} - {% endif %} - - {% if resource.display_type %} -
{% trans "Type" %}
-
{{ resource.display_type }}
- {% endif %} - - {% if resource.keywords.count > 0 %} -
{% trans "Keywords" %}
-
- {% for keyword in resource.keywords.all %} - - {{ keyword.name }} - - {% if not forloop.last %},{% endif %} - {% endfor %} -
- {% endif %} - - {% if resource.category %} -
{% trans "Category" %}
-
{{ resource.category }} {% if resource.category.description %}{% endif %}
- {% if resource.category.description %} -
- {{ resource.category.description }} -
- {% endif %} - {% endif %} - - {% if resource.regions.all %} -
{% trans "Regions" %}
-
- {% for region in resource.regions.all %} - - {{ region.name }} - - {% if not forloop.last %},{% endif %} - {% endfor %} -
- {% endif %} - - {% if resource.owner %} -
{% trans "Owner" %}
-
- {% endif %} - - {% if resource.poc.user %} -
{% trans "Point of Contact" %}
-
{{ resource.poc.user.username }}
- {% endif %} -
- -
-
{% trans "More info" %}
-
-
-
- -
-
- - {% if resource.srid and SRID_DETAIL == 'below' %} -
{% trans "SRID" %}
-
{{ resource.srid }}
- {% endif %} - - {% if LICENSES_ENABLED and LICENSES_DETAIL == 'below' and resource.license %} -
{% trans "License" %}
-
{{ resource.license.name_long }}
-
- {% for bullet in resource.license.description_bullets %} - {{ bullet }}

- {% endfor %} - {% if resource.license.url %} - + For more info see {{ resource.license.url }}. - {% endif %} -
- {% endif %} - - {% if resource.maintenance_frequency %} -
{% trans "Maintenance Frequency" %}
-
{{ resource.maintenance_frequency_title }}
- {% endif %} - - {% if resource.restriction_code_type or resource.constraints_other %} -
{% trans "Restrictions" %}
-
{% if resource.constraints_other %} - {{ resource.constraints_other }} - {% else %} - {{ resource.restriction_code_type }} - {% endif %}
- {% endif %} - - {% if resource.edition %} -
{% trans "Edition" %}
-
{{ resource.edition}}
- {% endif %} - - {% if resource.purpose %} -
{% trans "Purpose" %}
-
{{ resource.purpose|escape|urlize|linebreaks|safe|truncatechars:160 }}
- {% endif %} - - {% if resource.language %} -
{% trans "Language" %}
-
{{ resource.language_title }}
- {% endif %} - - {% if resource.temporal_extent_start and resource.temporal_extent_end %} -
{% trans "Temporal Extent" %}
-
{{ resource.temporal_extent_start }} - {{ resource.temporal_extent_end }}
- {% endif %} - - {% if resource.data_quality_statement %} -
{% trans "Data Quality" %}
-
{{ resource.data_quality_statement }}
- {% endif %} - - {% if resource.supplemental_information %} -
{% trans "Supplemental Information" %}
-
{{ resource.supplemental_information|truncatechars:160|escape|urlize|linebreaks|safe }}
- {% endif %} - - {% if resource.spatial_representation_type %} -
{% trans "Spatial Representation Type" %}
-
{{ resource.spatial_representation_type }}
- {% endif %} - -
- -
- -
+
+ {% block article_content %} + {% block content %} + {{ block.super }} + {% endblock %} + {% endblock %} +
\ No newline at end of file