diff --git a/apps/map/templates/map/detail.html b/apps/map/templates/map/detail.html index 28e0942..2df2ef5 100644 --- a/apps/map/templates/map/detail.html +++ b/apps/map/templates/map/detail.html @@ -5,113 +5,267 @@ {% load leaflet_tags %} {% load humanize %} - - - - - - - - -{% block content %} -
-
-
- -
-

{{case_study.entry_name}}

-

{{case_study.synopsis}}

-
-
-
- {{case_study.get_sector_of_economy_display}} - {% if case_study.positive_or_negative == "P" %} - {{case_study.get_positive_or_negative_display}} - {% elif case_study.positive_or_negative == "N"%} - {{case_study.get_positive_or_negative_display}} - {% endif %} - {{case_study.country.name}} -
- Created {{case_study.date_created|naturaltime}} by {{case_study.author}} -
- Get Involved -
-
-
-
- -
-
-
-
-
-
-
- +{% block stylesheets %} +{{ super }} -
-
- {{case_study.full_description}} -
-
-
-
- -
-
- {{case_study.community_voices}} -
-
-
-
-
-
-
-
- {% trans "Factbar" %} -
-
-
    - {% if case_study.area_of_land %} -
  • {% trans "Approximate land area"%}: {{case_study.area_of_land}} km²
  • - {% endif %} -
-
-
-
-
- Attached Files -
-
    -
  • - File One
    - Uploaded one month ago -
  • -
  • - File Two
    - Uploaded 3 mins ago -
  • -
-
+ + +{% endblock %} + +{% block content %} +
+
+
+ + +
+

{{ case_study.entry_name }}

+
+ +
+ + {{ case_study.get_sector_of_economy_display }} +   + + {% if case_study.positive_or_negative == "P" %} + + {{ case_study.get_positive_or_negative_display }} +   + {% elif case_study.positive_or_negative == "N" %} + + {{ case_study.get_positive_or_negative_display }} +   + {% endif %} + + + {{ case_study.get_project_status_display }} +   + + + {{ case_study.country.name }} + +
+ +

Case study created {{case_study.date_created | naturaltime}} + +

{{ case_study.synopsis }}

+ +
+ +
+ {% if case_study.image_caption %} + {{ case_study.image_caption }}
+ {% endif %} + {% if case_study.image_credit %} + {% trans "Credit(s)" %}: {{ case_study.image_credit }} + {% endif %} +
+
+ +
+ +
+ +
+
+

Contents

+ +

... + +

Description

+ + {{ case_study.full_description | linebreaks }} + +

{% trans "Affected land" %}

+ +
+ {% if case_study.country %} +
{% trans "Country" %}: +
{{ case_study.get_country_display }} + {% endif %} + + {% if case_study.location_context %} +
{% trans "Rural or urban" %}: +
{{ case_study.get_location_context_display }} + {% endif %} + + {% if case_study.area_of_land %} +
{% trans "Approximate land area" %}: +
{{ case_study.area_of_land }} km² + {% endif %} + + {% if case_study.land_ownership %} +
{% trans "Land ownership" %}: + {% if case_study.land_ownership == 'OTH' %} +
{{ case_study.land_ownership_details }} + {% else %} +
{{ case_study.get_land_ownership_display }} + {% endif %} + {% endif %} + + {% if case_study.type_of_ecosystem %} +
{% trans "Type of ecosystem" %}: +
{{ case_study.get_type_of_ecosystem_display }} + {% endif %} + + {% if case_study.describe_ecosystem %} +
{% trans "Description of ecosystem" %}: +
{{ case_study.describe_ecosystem | linebreaks }} + {% endif %} + +
+ + {% if case_study.affects_indigenous %} +

{% trans "Affected groups of indigenous people" %}

+ {{ case_study.affects_indigenous_detail | linebreaks }} + {% endif %} + +

Project status

+ +
+ {% if case_study.project_status %} +
{% trans "Status" %}: +
{{ case_study.get_project_status_display }} + {% endif %} + + {% if case_study.start_year %} +
{% trans "Start year" %}: +
{{ case_study.start_year }} + {% endif %} + + {% if case_study.completion_year %} +
{% trans "Completion year" %}: +
{{ case_study.completion_year }} + {% endif %} + + {% if case_study.project_owners %} +
{% trans "Project and facility owners" %}: +
{{ case_study.project_owners }} + {% endif %} + + {% if case_study.shareholders %} +
{% trans "Shareholders of the project owners" %}: +
{{ case_study.shareholders }} + {% endif %} + + {% if case_study.financial_institutions %} +
{% trans "Financial institutions" %}: +
{{ case_study.financial_institutions }} + {% endif %} + + {% if case_study.energy_customers %} +
{% trans "Energy consumers" %}: +
{{ case_study.energy_customers }} + {% endif %} +
+ +

Multimedia

+ +
+
+
+ +
+ {% if case_study.video_caption %} + {{ case_study.video_caption }}
+ {% endif %} + {% if case_study.video_credit %} + {% trans "Credit(s)" %}: {{ case_study.video_credit }} + {% endif %} +
+
+ + {% if case_study.media_coverage_mainstream or case_study.media_coverage_independent or case_study.social_media_links %} +
+

{% trans "Media coverage" %}

+ + {% if case_study.media_coverage_mainstream %} +

{% trans "Mainstream media" %}

+ {{ case_study.media_coverage_mainstream | urlize }} + {% endif %} + + {% if case_study.media_coverage_independent %} +

{% trans "Independent/grassroots media" %}

+ {{ case_study.media_coverage_independent | urlize }} + {% endif %} + + {% if case_study.social_media_links %} +

{% trans "Social media" %}

+ {{ case_study.social_media_links | urlize }} + {% endif %} +
+ {% endif %} + +

{% trans "Community Voices" %}

+ {{ case_study.community_voices | linebreaks }} + + {% if case_study.direct_comms %} +

{% trans "Reports of direct communications" %}

+ {{ case_study.direct_comms | linebreaks }} + {% endif %} + +
+
+
+ + + {% endblock %} - diff --git a/ojusomap/templates/base.html b/ojusomap/templates/base.html index 1523436..ec11487 100644 --- a/ojusomap/templates/base.html +++ b/ojusomap/templates/base.html @@ -5,28 +5,27 @@ {% load leaflet_tags %} {% load static %} - - - - - {% block page_title %}Ojuso{% endblock %} - - - - - + + + + + + + +{% block page_title %}Ojuso{% endblock %} + + +{# Additional Stylesheets #} +{% block stylesheets %} + +{% endblock %} - {# Additional Stylesheets #} - {% block stylesheets %} - - {% endblock %} -