diff --git a/celerybeat-schedule b/celerybeat-schedule index 7e5adc6..64f54bc 100644 Binary files a/celerybeat-schedule and b/celerybeat-schedule differ diff --git a/my_geonode/static/css/site_base.css b/my_geonode/static/css/site_base.css index 5d978f7..feb6f52 100644 --- a/my_geonode/static/css/site_base.css +++ b/my_geonode/static/css/site_base.css @@ -1,3 +1,10 @@ + +body{ + overflow-x: hidden; +} +.home .navbar-inverse, .navbar-inverse { + background-color: #04a2db; +} .navbar-brand { background: url(../img/Web_RA-logo.png); background-repeat: no-repeat; @@ -6,4 +13,90 @@ text-indent: -9999px; height: 60px; width: 160px; +} + +.navbar-nav .search input { + border: 1px solid #04a2db; +} + +.home .jumbotron{ + position: relative; + background: url(../img/homapage.jpg); + background-repeat: no-repeat; + background-position: center; + background-size: cover; + color: #fff; + text-shadow: none; + height: 650px; + text-align: center; + +} +.jumbotron h1{ + font-size: 40px; + padding-top: 220px; +} +.home .jumbotron p { + font-weight: bold; + font-style: italic!important; + font-size: 30px!important; + color: #059ace; +} +.navbar-inverse .navbar-nav > li > a:hover { + background-color: #31708f9c; +} + +/*arrow css*/ +.arrow_image > img{ +align-content: center; + margin-left: 54em; +} + +.arrow_image > .container { + text-align: center; + margin-bottom: 25px; + +} + +.arrow_image > .container h3, .arrow_image > .container p { + line-height: 1.5em; +} +/*dataset css*/ +.datasets{ + position: relative; + background: url(../img/Background-Blue.png); + background-repeat: no-repeat; + background-position: center; + background-size: cover; + text-shadow: none; + height: 770px; + text-align: center; +} +.datasets > iframe{ + margin-top: 60px; + +} + +/*showcase*/ + +.layers, .docs, .maps{ + box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); + transition: 0.3s; + +} +.layers p, .docs p, .maps p { + padding: 15px; +} + +/*footer*/ +.footer{ + background: #ffffff; +} +.footer_img { + width: 50%; +} +.footer_img1{ + width: 100%; +} +.footer_img, .footer_img1{ + margin: 55px 0 55px 60px; } \ No newline at end of file diff --git a/my_geonode/static/img/ARU-logo.jpg b/my_geonode/static/img/ARU-logo.jpg new file mode 100644 index 0000000..d6aab97 Binary files /dev/null and b/my_geonode/static/img/ARU-logo.jpg differ diff --git a/my_geonode/static/img/Background-Blue.png b/my_geonode/static/img/Background-Blue.png new file mode 100644 index 0000000..6e149f1 Binary files /dev/null and b/my_geonode/static/img/Background-Blue.png differ diff --git a/my_geonode/static/img/Government-of-Tanzania-Logo.png b/my_geonode/static/img/Government-of-Tanzania-Logo.png new file mode 100644 index 0000000..987d077 Binary files /dev/null and b/my_geonode/static/img/Government-of-Tanzania-Logo.png differ diff --git a/my_geonode/static/img/MikocheniDrainage-1.png b/my_geonode/static/img/MikocheniDrainage-1.png new file mode 100644 index 0000000..aa524c7 Binary files /dev/null and b/my_geonode/static/img/MikocheniDrainage-1.png differ diff --git a/my_geonode/static/img/RA.jpg b/my_geonode/static/img/RA.jpg new file mode 100644 index 0000000..2a32ab8 Binary files /dev/null and b/my_geonode/static/img/RA.jpg differ diff --git a/my_geonode/static/img/SUA_logo.png b/my_geonode/static/img/SUA_logo.png new file mode 100644 index 0000000..dbd0820 Binary files /dev/null and b/my_geonode/static/img/SUA_logo.png differ diff --git a/my_geonode/static/img/SUZA_Logo.png b/my_geonode/static/img/SUZA_Logo.png new file mode 100644 index 0000000..4a23461 Binary files /dev/null and b/my_geonode/static/img/SUZA_Logo.png differ diff --git a/my_geonode/static/img/TURP-Logo.png b/my_geonode/static/img/TURP-Logo.png new file mode 100644 index 0000000..0e43dc4 Binary files /dev/null and b/my_geonode/static/img/TURP-Logo.png differ diff --git a/my_geonode/static/img/The-World-Bank-logo.png b/my_geonode/static/img/The-World-Bank-logo.png new file mode 100644 index 0000000..ddc314b Binary files /dev/null and b/my_geonode/static/img/The-World-Bank-logo.png differ diff --git a/my_geonode/static/img/UDSM_logo.png b/my_geonode/static/img/UDSM_logo.png new file mode 100644 index 0000000..6c17c02 Binary files /dev/null and b/my_geonode/static/img/UDSM_logo.png differ diff --git a/my_geonode/static/img/UKaid-Logo.png b/my_geonode/static/img/UKaid-Logo.png new file mode 100644 index 0000000..0400afd Binary files /dev/null and b/my_geonode/static/img/UKaid-Logo.png differ diff --git a/my_geonode/static/img/UTU.png b/my_geonode/static/img/UTU.png new file mode 100644 index 0000000..c4ecb17 Binary files /dev/null and b/my_geonode/static/img/UTU.png differ diff --git a/my_geonode/static/img/arrows.png b/my_geonode/static/img/arrows.png new file mode 100644 index 0000000..ea6b047 Binary files /dev/null and b/my_geonode/static/img/arrows.png differ diff --git a/my_geonode/static/img/component.png b/my_geonode/static/img/component.png new file mode 100644 index 0000000..0c1d9b1 Binary files /dev/null and b/my_geonode/static/img/component.png differ diff --git a/my_geonode/static/img/homapage.jpg b/my_geonode/static/img/homapage.jpg new file mode 100644 index 0000000..227b283 Binary files /dev/null and b/my_geonode/static/img/homapage.jpg differ diff --git a/my_geonode/static/img/kisutu3.png b/my_geonode/static/img/kisutu3.png new file mode 100644 index 0000000..7fa9b9a Binary files /dev/null and b/my_geonode/static/img/kisutu3.png differ diff --git a/my_geonode/static/img/shina.jpg b/my_geonode/static/img/shina.jpg new file mode 100644 index 0000000..211302a Binary files /dev/null and b/my_geonode/static/img/shina.jpg differ diff --git a/my_geonode/templates/footer.html b/my_geonode/templates/footer.html new file mode 100644 index 0000000..3dabe7a --- /dev/null +++ b/my_geonode/templates/footer.html @@ -0,0 +1,39 @@ + \ No newline at end of file diff --git a/my_geonode/templates/layers/layer_base.html b/my_geonode/templates/layers/layer_base.html new file mode 100644 index 0000000..09d613a --- /dev/null +++ b/my_geonode/templates/layers/layer_base.html @@ -0,0 +1,16 @@ +{% extends "geonode_base.html" %} +{% load i18n %} +{% block extra_head %} + +{% endblock %} +{% block title %} {{ block.super }} {% endblock %} +{% block header %} + {% include 'navigation.html' %} +{% endblock header %} + +{% block body_class %}{% trans "data" %}{% endblock body_class %} + +{% block body_outer %} + {% block body %}{% endblock body %} + {% block sidebar %}{% endblock sidebar %} +{% endblock body_outer %} diff --git a/my_geonode/templates/layers/layer_change_poc.html b/my_geonode/templates/layers/layer_change_poc.html new file mode 100644 index 0000000..f056803 --- /dev/null +++ b/my_geonode/templates/layers/layer_change_poc.html @@ -0,0 +1,22 @@ +{% extends "admin/base_site.html" %} + +{% load i18n %} + +{% block breadcrumbs %}{% endblock %} + +{% block title %}{% trans 'Change point of contact' %}{% endblock %} + +{% block content %} +

{% trans "Assign a new point of contact to the layers below:" %}

+{% for layer in layers %} +
  • {{ layer }}
  • +{% endfor %} +
    +{% csrf_token %} +{{ form.as_p }} +

    +
    + diff --git a/my_geonode/templates/layers/layer_detail.html b/my_geonode/templates/layers/layer_detail.html new file mode 100644 index 0000000..6beea38 --- /dev/null +++ b/my_geonode/templates/layers/layer_detail.html @@ -0,0 +1,1024 @@ +{% extends "layers/layer_base.html" %} +{% load i18n %} +{% load staticfiles %} +{% load dialogos_tags %} +{% load agon_ratings_tags %} +{% load bootstrap_tags %} +{% load pagination_tags %} +{% load base_tags %} +{% load guardian_tags %} +{% load client_lib_tags %} + +{% block title %}{{ resource.title|default:resource.alternate }} — {{ block.super }}{% endblock %} + +{% block head %} + {% if TWITTER_CARD %} + {% include "base/_resourcebase_twittercard.html" %} + {% endif %} + + {% if OPENGRAPH_ENABLED %} + {% include "base/_resourcebase_opengraph.html" %} + {% endif %} + + {% get_layer_detail %} +{{ block.super }} +{% endblock %} + + +{% block body_class %}{% trans "layers" %}{% endblock %} + +{% block body_outer %} + + +
    +
    + +
    +
    +
    + +
    + {% include "_actions.html" %} +
    + +
    + + + {% if resource.is_mosaic %} +
    +
    + +
    + {% csrf_token %} +   +
    + {% if filter %} + {% trans "Active Filter:" %} {{ filter }} + {% endif %} +
    + + + + + + + + + + + + {% autopaginate all_granules.features 10 %} + {% for feature in granules.features %} + + + + + + + + {% endfor %} + +
    {% trans "Bounding Box" %} (minX,minY,maxX,maxY){% trans "Time" %}{% trans "Actions" %}
    {% if feature.properties.time %}{{ feature.properties.time }}{% endif %} + {% trans + {% trans + +
    +
    + {% paginate %} +
    + {% endif %} + +
    + {% if resource.is_mosaic %} + + + + + + + + + + + + + + + + +
    {% trans "Dimension" %}{% trans "Enabled" %}{% trans "Regex" %}
    {% trans "TIME" %}{% if resource.has_time %}{% trans "True" %}{% else %}{% trans "False" %}{% endif %}{% if resource.time_regex %}{{ resource.time_regex }}{% else %} {% endif %}
    + {% endif %} + {% if resource.attribute_set.all %} + + + + + + + {% if wps_enabled %} + + + + + {% endif %} + + + + {% for attribute in resource.attributes %} + + + + + {% if wps_enabled %} + {% if attribute.unique_values == "NA" %} + + {% else %} + + {% endif %} + + + + {% endif %} + + {% endfor %} + +
    {% trans "Attribute Name" %}{% trans "Label" %}{% trans "Description" %}{% trans "Range" %}{% trans "Average" %}{% trans "Median" %}{% trans "Standard Deviation" %}
    {{ attribute.attribute }}{{ attribute.attribute_label|default:"" }}{{ attribute.description|default:"" }}{{ attribute.unique_values }} + + {{ attribute.average|floatformat:"2" }}{{ attribute.median|floatformat:"2" }}{{ attribute.stddev|floatformat:"2" }}
    + {% endif %} +
    + + {% block social_links %} + {% if DISPLAY_SOCIAL %} + {% include "social_links.html" %} + {% endif %} + {% endblock %} + + {% if DISPLAY_COMMENTS %} +
    + {% with resource as obj %} + {% include "_comments.html" %} + {% endwith %} +
    + {% endif %} + + {% if DISPLAY_RATINGS %} +
    + + {% if request.user.is_authenticated %} +

    {% trans "Rate this layer" %}

    + {% user_rating request.user resource "layer" as user_layer_rating %} +
    + {% endif %} +

    {% trans 'Average Rating' %}

    + {% overall_rating resource "layer" as layer_rating %} + {% num_ratings resource as num_votes %} +
    ({{num_votes}}) +
    + {% endif %} + + {% if FAVORITE_ENABLED %} +
    + {% include "favorite/_favorite.html" %} +
    + {% endif %} +
    + +
    +
    + + + + + + {% if GEONODE_SECURITY_ENABLED %} + {% include "_permissions_form.html" %} + {% endif %} + +
    +
    +{% endblock %} + +{% block extra_script %} +{{ block.super }} + {% if request.user.is_authenticated %} + {% user_rating_js request.user resource "layer" %} + {% else %} + {% overall_rating resource 'layer' as the_layer_rating %} + {% endif %} + {% include 'rating.html' %} + {% include 'request_download.html' %} + {% if DISPLAY_SOCIAL %} + + {% endif %} + + + {% block thumbnail_script %} + + {% endblock thumbnail_script %} + + + + {% if GEONODE_SECURITY_ENABLED %} + {% include "_permissions_form_js.html" %} + + {% endif %} + + {% if FAVORITE_ENABLED %} + {% include "favorite/_favorite_js.html" %} + {% endif %} +{% endblock extra_script %} diff --git a/my_geonode/templates/layers/layer_granule_remove.html b/my_geonode/templates/layers/layer_granule_remove.html new file mode 100644 index 0000000..2a10a3e --- /dev/null +++ b/my_geonode/templates/layers/layer_granule_remove.html @@ -0,0 +1,40 @@ +{% extends "layers/layer_base.html" %} +{% load i18n %} + +{% block title %}{{ layer.alternate }} — {{ block.super }}{% endblock %} + +{% block body %} + +
    +
    +

    + {% blocktrans with layer.alternate as layer_title %} + Are you sure you want to remove Granule {{ granule_id }} of the Mosaic {{ layer_title }}? + {% endblocktrans %} +

    +
    + {% csrf_token %} + + +
    +
    + {% if layer.maps %} +
    + +
    + {% endif %} +
    +{% endblock %} diff --git a/my_geonode/templates/layers/layer_list.html b/my_geonode/templates/layers/layer_list.html new file mode 100644 index 0000000..6f88ec8 --- /dev/null +++ b/my_geonode/templates/layers/layer_list.html @@ -0,0 +1,41 @@ +{% extends "layers/layer_base.html" %} +{% load i18n %} +{% load staticfiles %} + +{% block title %} {% trans "Explore Layers" %} - {{ block.super }} {% endblock %} + +{% block body_class %}layers explore{% endblock %} + +{% block body %} + + {% with include_type_filter='true' %} + {% with header='Type' %} + {% with filter='type__in' %} + {% include "search/_search_content.html" %} + {% endwith %} + {% endwith %} + {% endwith %} + {% include "_bulk_permissions_form.html" %} +{% endblock %} + +{% block extra_script %} +{{ block.super }} + {% if GEONODE_SECURITY_ENABLED %} + {% include "_permissions_form_js.html" %} + {% endif %} + + {% with include_spatial='true' %} + {% include 'search/search_scripts.html' %} + {% endwith %} +{% endblock extra_script %} + diff --git a/my_geonode/templates/layers/layer_metadata.html b/my_geonode/templates/layers/layer_metadata.html new file mode 100644 index 0000000..19c0fa9 --- /dev/null +++ b/my_geonode/templates/layers/layer_metadata.html @@ -0,0 +1,107 @@ +{% extends "metadata_base.html" %} +{% load i18n %} +{% load bootstrap_tags %} +{% load base_tags %} +{% load guardian_tags %} +{% load floppyforms %} + +{% block title %}{{ layer.alternate }} — {{ block.super }}{% endblock title %} + +{% block head %} + {% include "ol/layers/layer_ol2_map.html" %} +{{ block.super }} +{% endblock head %} + +{% block body_class %}{% trans "data" %}{% endblock body_class %} + +{% block body_outer %} + + +
    + {% if layer.metadata_uploaded_preserve %} +

    {% blocktrans %}Note: this layer's orginal metadata was populated and preserved by importing a metadata XML file. + This metadata cannot be edited.{% endblocktrans %}

    + {% elif layer.metadata_uploaded %} +

    {% blocktrans %}Note: this layer's orginal metadata was populated by importing a metadata XML file. + GeoNode's metadata import supports a subset of ISO, FGDC, and Dublin Core metadata elements. + Some of your original metadata may have been lost.{% endblocktrans %}

    + {% endif %} + + {% if layer_form.errors or attribute_form.errors or category_form.errors or author_form.errors or poc.errors %} +

    {% blocktrans %}Error updating metadata. Please check the following fields: {% endblocktrans %}

    + + {% endif %} + + {% csrf_token %} +
    + {% form layer_form using "layouts/panels.html" %} + {# layer_form|as_bootstrap #} +
    + +
    +
    + + + + {% if not layer.metadata_uploaded_preserve %} +
    + {% trans "Return to Layer" %} + + + >" %}"/> +
    + {% endif %} +
    +
    +
    + +{{ block.super }} +{% endblock body_outer %} diff --git a/my_geonode/templates/layers/layer_metadata_advanced.html b/my_geonode/templates/layers/layer_metadata_advanced.html new file mode 100644 index 0000000..82f8bd2 --- /dev/null +++ b/my_geonode/templates/layers/layer_metadata_advanced.html @@ -0,0 +1,145 @@ +{% extends "metadata_base.html" %} +{% load i18n %} +{% load bootstrap_tags %} +{% load base_tags %} +{% load guardian_tags %} + +{% block title %}{{ layer.alternate }} — {{ block.super }}{% endblock %} + +{% block body_class %}{% trans "data" %}{% endblock %} + +{% block body_outer %} + +{{ block.super }} + + +
    +
    +

    + {% blocktrans with layer.alternate as layer_title %} + Editing details for {{ layer_title }} + {% endblocktrans %} +

    +
    + {% if layer.metadata_uploaded_preserve %} +

    {% blocktrans %}Note: this layer's orginal metadata was populated and preserved by importing a metadata XML file. + This metadata cannot be edited.{% endblocktrans %}

    + {% elif layer.metadata_uploaded %} +

    {% blocktrans %}Note: this layer's orginal metadata was populated by importing a metadata XML file. + GeoNode's metadata import supports a subset of ISO, FGDC, and Dublin Core metadata elements. + Some of your original metadata may have been lost.{% endblocktrans %}

    + {% endif %} + + {% if layer_form.errors or attribute_form.errors or category_form.errors or author_form.errors or poc.errors %} +

    {% blocktrans %}Error updating metadata. Please check the following fields: {% endblocktrans %}

    +
      + {% if author_form.errors %} +
    • {% trans "Metadata Author" %}
    • + {{ author_form.errors }} + {% endif %} + {% if poc_form.errors %} +
    • {% trans "Point of Contact" %}
    • + {{ poc_form.errors }} + {% endif %} + {% for field in layer_form %} + {% if field.errors %} +
    • {{ field.label }}
    • + {% endif %} + {% endfor %} + {% if not attribute_form.is_valid %} +
    • {% trans "Attributes" %}
    • + {% for field in attribute_form %} + {% if field.errors %} +
    • {{ field.errors }}
    • + {% endif %} + {% endfor %} + {% endif %} + {% if category_form.errors %} +
    • {{ category_form.errors.as_ul }}
    • + {% endif %} +
    + {% endif %} + + {% if not layer.metadata_uploaded_preserve %} + + {% endif %} + + {% csrf_token %} +
    + {{ layer_form|as_bootstrap }} +
    +
    +
    + +
    + {% autoescape off %} + {% for choice in category_form.category_choice_field.field.choices %} +
    + +
    + + {% endfor %} + {% endautoescape %} +
    +
    + +
    +
    {% trans "Attributes" %}
    + {{ attribute_form.management_form }} + + + + + + + + {% for form in attribute_form.forms %} + {% if form.attribute %} + + + + + + + {% endif %} + {% endfor %} +
    {% trans "Attribute" %}{% trans "Label" %}{% trans "Description" %}{% trans "Display Order" %}
    {{form.id}}
    {{form.attribute}}
    {{form.attribute_label}}{{form.description}}{{form.display_order}}
    + + + + + {% if not layer.metadata_uploaded_preserve %} + + {% endif %} +
    +
    +
    +
    +
    +{% endblock %} diff --git a/my_geonode/templates/layers/layer_metadata_detail.html b/my_geonode/templates/layers/layer_metadata_detail.html new file mode 100644 index 0000000..f320e00 --- /dev/null +++ b/my_geonode/templates/layers/layer_metadata_detail.html @@ -0,0 +1 @@ +{% extends "metadata_detail.html" %} \ No newline at end of file diff --git a/my_geonode/templates/layers/layer_metadata_upload.html b/my_geonode/templates/layers/layer_metadata_upload.html new file mode 100644 index 0000000..6e7cc43 --- /dev/null +++ b/my_geonode/templates/layers/layer_metadata_upload.html @@ -0,0 +1,142 @@ +{% extends "upload/layer_upload_metadata_base.html" %} +{% load i18n %} +{% load staticfiles %} +{% load dialogos_tags %} +{% load agon_ratings_tags %} +{% load bootstrap_tags %} +{% load pagination_tags %} +{% load base_tags %} +{% load guardian_tags %} + +{% block title %} {% trans "Upload Layer Metadata" %} - {{ block.super }} {% endblock %} + +{% block body_class %}{% trans "layers upload" %}{% endblock %} + + +{% block head %} + +{{ block.super }} +{% endblock %} + +{% block body_outer %} + + + +
    +
    + {% if incomplete %} +
    +

    {% trans "Incomplete Uploads" %}

    +

    {% trans "You have the following incomplete uploads" %}:

    + {% for u in incomplete %} +
    +
    {{ u.name }}, {% trans "last updated on" %} {{ u.date }}
    + +
    + {% endfor %} +
    + + {% endif %} + + {% block additional_info %}{% endblock %} + + {% if errors %} +
    + {% for error in errors %} +

    {{ error }}

    + {% endfor %} +
    + {% endif %} + +
    + +
    +


    {% trans "Drop files here" %}

    +
    + +

    {% trans " or select them one by one:" %}

    + +
    + + + +
    + +
    +
      +

      {% trans "Files to be uploaded" %}

      +
      + +
      + +
      + {% trans "Clear" %} + {% trans "Upload files" %} +
      +
      + + {% if GEOSERVER_BASE_URL %} + {% get_obj_perms request.user for resource.layer as "layer_perms" %} + {% endif %} + + {% if GEONODE_SECURITY_ENABLED %} + {% if "change_resourcebase_permissions" in perms_list %} +
    • +

      {% trans "Permissions" %}

      +

      {% trans "Click the button below to change the permissions of this layer." %}

      +

      {% trans "Change Layer Permissions" %}

      +
    • + {% endif %} + {% endif %} + + {% if GEONODE_SECURITY_ENABLED %} +
      +

      {% trans "Permissions" %}

      +
      + {% include "_permissions.html" %} +
      +
      + {% endif %} + +
      +{% endblock %} + + +{% block extra_script %} + {{ block.super }} + + + {% if GEONODE_SECURITY_ENABLED %} + {% with resource=layer %} + {% include "_permissions_form_js.html" %} + {% endwith %} + {% endif %} +{% endblock extra_script %} diff --git a/my_geonode/templates/layers/layer_remove.html b/my_geonode/templates/layers/layer_remove.html new file mode 100644 index 0000000..a4afba2 --- /dev/null +++ b/my_geonode/templates/layers/layer_remove.html @@ -0,0 +1,40 @@ +{% extends "layers/layer_base.html" %} +{% load i18n %} + +{% block title %}{{ layer.alternate }} — {{ block.super }}{% endblock %} + +{% block body %} + +
      +
      +

      + {% blocktrans with layer.alternate as layer_title %} + Are you sure you want to remove {{ layer_title }}? + {% endblocktrans %} +

      +
      + {% csrf_token %} + + +
      +
      + {% if layer.maps %} +
      + +
      + {% endif %} +
      +{% endblock %} diff --git a/my_geonode/templates/layers/layer_replace.html b/my_geonode/templates/layers/layer_replace.html new file mode 100644 index 0000000..0d926a1 --- /dev/null +++ b/my_geonode/templates/layers/layer_replace.html @@ -0,0 +1,151 @@ +{% extends "upload/layer_upload_base.html" %} +{% load i18n %} +{% load staticfiles %} +{% load dialogos_tags %} +{% load agon_ratings_tags %} +{% load bootstrap_tags %} +{% load pagination_tags %} +{% load base_tags %} +{% load guardian_tags %} + +{% block title %} {% trans "Replace Layer" %} - {{ block.super }} {% endblock %} + +{% block body_class %}{% trans "layers upload" %}{% endblock %} + + +{% block head %} + +{{ block.super }} +{% endblock %} + +{% block body_outer %} + +
      +
      + {% if incomplete %} +
      +

      {% trans "Incomplete Uploads" %}

      +

      {% trans "You have the following incomplete uploads" %}:

      + {% for u in incomplete %} +
      +
      {{ u.name }}, {% trans "last updated on" %} {{ u.date }}
      + +
      + {% endfor %} +
      + + {% endif %} + + {% block additional_info %}{% endblock %} + + {% if errors %} +
      + {% for error in errors %} +

      {{ error }}

      + {% endfor %} +
      + {% endif %} + +
      + +
      +


      {% trans "Drop files here" %}

      +
      + +

      {% trans " or select them one by one:" %}

      + +
      + + + +
      + +
      +
        +

        {% trans "Files to be uploaded" %}

        +
        + +
        + +
        +

        {% trans "Select the charset or leave default" %}

        + +
        + +
        + {% trans "Clear" %} + {% trans "Replace Layer" %} +
        +
        + + {% if GEOSERVER_BASE_URL %} + {% get_obj_perms request.user for resource.layer as "layer_perms" %} + {% endif %} + + {% if GEONODE_SECURITY_ENABLED %} + {% if "change_resourcebase_permissions" in perms_list %} +
      • +

        {% trans "Permissions" %}

        +

        {% trans "Click the button below to change the permissions of this layer." %}

        +

        {% trans "Change Layer Permissions" %}

        +
      • + {% endif %} + {% endif %} + + {% if GEONODE_SECURITY_ENABLED %} +
        +

        {% trans "Permissions" %}

        +
        + {% include "_permissions.html" %} +
        +
        + {% endif %} +
        +{% endblock %} + + +{% block extra_script %} +{{ block.super }} + + +{% if GEONODE_SECURITY_ENABLED %} +{% with resource=layer %} +{% include "_permissions_form_js.html" %} +{% endwith %} +{% endif %} +{% endblock extra_script %} diff --git a/my_geonode/templates/layers/layer_style_edit.html b/my_geonode/templates/layers/layer_style_edit.html new file mode 100644 index 0000000..1abc5bb --- /dev/null +++ b/my_geonode/templates/layers/layer_style_edit.html @@ -0,0 +1,27 @@ +{% extends "layers/layer_base.html" %} +{% load i18n %} +{% load staticfiles %} +{% load dialogos_tags %} +{% load agon_ratings_tags %} +{% load bootstrap_tags %} +{% load pagination_tags %} +{% load base_tags %} +{% load guardian_tags %} +{% load client_lib_tags %} + +{% block title %}{{ resource.title|default:resource.alternate }} — {{ block.super }}{% endblock %} + +{% block head %} + {% if TWITTER_CARD %} + {% include "base/_resourcebase_twittercard.html" %} + {% endif %} + + {% if OPENGRAPH_ENABLED %} + {% include "base/_resourcebase_opengraph.html" %} + {% endif %} + + {% get_layer_style_edit %} +{{ block.super }} +{% endblock %} + +{% block body_class %}{% trans "layers" %}{% endblock %} diff --git a/my_geonode/templates/layers/layer_style_manage.html b/my_geonode/templates/layers/layer_style_manage.html new file mode 100644 index 0000000..ad9a56d --- /dev/null +++ b/my_geonode/templates/layers/layer_style_manage.html @@ -0,0 +1,108 @@ +{% extends "layers/layer_base.html" %} +{% load i18n %} + +{% block title %}{{ layer.alternate }} — {{ block.super }}{% endblock %} + +{% block body_class %}{% trans "layers" %}{% endblock %} + +{% block body_outer %} +{% if error %} +
        {{ error }}
        +{% endif %} + + +

        {% blocktrans with layer.alternate as layer_title %} + Manage Available Styles for {{ layer_title }} + {% endblocktrans %}

        +
        +
        +
        +
        +

        {% trans "Layer Default Style" %}

        +
        +
        + +
        +
        +
        +
        +
        +
        +

        {% trans "Available styles" %}

        +

        {% trans "Click on an available style in the upper box to assign it to this layer. Selected styles appear in the lower box." %}

        +
        + +
        +
        +
        + +
        +
        + + {% csrf_token %} + +
        +
        +
        +
        +
        + +
        +
        +
        + +{% endblock %} +{% block extra_script %} +{{ block.super }} + +{% endblock %} diff --git a/my_geonode/templates/layers/layer_style_upload.html b/my_geonode/templates/layers/layer_style_upload.html new file mode 100644 index 0000000..be2e7ee --- /dev/null +++ b/my_geonode/templates/layers/layer_style_upload.html @@ -0,0 +1,143 @@ +{% extends "upload/layer_upload_metadata_base.html" %} +{% load i18n %} +{% load staticfiles %} +{% load dialogos_tags %} +{% load agon_ratings_tags %} +{% load bootstrap_tags %} +{% load pagination_tags %} +{% load base_tags %} +{% load guardian_tags %} + +{% block title %} {% trans "Upload Layer Metadata" %} - {{ block.super }} {% endblock %} + +{% block body_class %}{% trans "layers upload" %}{% endblock %} + + +{% block head %} + +{{ block.super }} +{% endblock %} + +{% block body_outer %} + + + +
        +
        + {% if incomplete %} +
        +

        {% trans "Incomplete Uploads" %}

        +

        {% trans "You have the following incomplete uploads" %}:

        + {% for u in incomplete %} +
        +
        {{ u.name }}, {% trans "last updated on" %} {{ u.date }}
        + +
        + {% endfor %} +
        + + {% endif %} + + {% block additional_info %}{% endblock %} + + {% if errors %} +
        + {% for error in errors %} +

        {{ error }}

        + {% endfor %} +
        + {% endif %} + +
        + +
        +


        {% trans "Drop files here" %}

        +
        + +

        {% trans " or select them one by one:" %}

        + +
        + + + +
        + +
        +
          +

          {% trans "Files to be uploaded" %}

          +
          + +
          + +
          +
          {% trans "WARNING" %}: {% trans "This will most probably overwrite the current default style!" %}
          + {% trans "Clear" %} + {% trans "Upload files" %} +
          +
          + + {% if GEOSERVER_BASE_URL %} + {% get_obj_perms request.user for resource.layer as "layer_perms" %} + {% endif %} + + {% if GEONODE_SECURITY_ENABLED %} + {% if "change_resourcebase_permissions" in perms_list %} +
        • +

          {% trans "Permissions" %}

          +

          {% trans "Click the button below to change the permissions of this layer." %}

          +

          {% trans "Change Layer Permissions" %}

          +
        • + {% endif %} + {% endif %} + + {% if GEONODE_SECURITY_ENABLED %} +
          +

          {% trans "Permissions" %}

          +
          + {% include "_permissions.html" %} +
          +
          + {% endif %} + +
          +{% endblock %} + + +{% block extra_script %} + {{ block.super }} + + + {% if GEONODE_SECURITY_ENABLED %} + {% with resource=layer %} + {% include "_permissions_form_js.html" %} + {% endwith %} + {% endif %} +{% endblock extra_script %} diff --git a/my_geonode/templates/layers/wps_execute_gs_aggregate.xml b/my_geonode/templates/layers/wps_execute_gs_aggregate.xml new file mode 100644 index 0000000..4110e9d --- /dev/null +++ b/my_geonode/templates/layers/wps_execute_gs_aggregate.xml @@ -0,0 +1,84 @@ + + + gs:Aggregate + + + features + + + + + + + + + + aggregationAttribute + + {{ field }} + + + + function + + Count + + + + function + + Min + + + + function + + Max + + + + function + + Average + + + + function + + Median + + + + function + + StdDev + + + + function + + Sum + + + + singlePass + + True + + + + + + + result + + + diff --git a/my_geonode/templates/layers/wps_execute_gs_unique.xml b/my_geonode/templates/layers/wps_execute_gs_unique.xml new file mode 100644 index 0000000..ec4a5ef --- /dev/null +++ b/my_geonode/templates/layers/wps_execute_gs_unique.xml @@ -0,0 +1,27 @@ + + + gs:Unique + + + features + + + + + + + + + + attribute + + {{ field }} + + + + + + result + + + diff --git a/my_geonode/templates/navigation.html b/my_geonode/templates/navigation.html new file mode 100644 index 0000000..e9d3a2e --- /dev/null +++ b/my_geonode/templates/navigation.html @@ -0,0 +1,96 @@ +{% load i18n avatar_tags %} + + + + \ No newline at end of file diff --git a/my_geonode/templates/search/_extent_filter.html b/my_geonode/templates/search/_extent_filter.html new file mode 100644 index 0000000..4d28127 --- /dev/null +++ b/my_geonode/templates/search/_extent_filter.html @@ -0,0 +1,10 @@ +{% load i18n %} + diff --git a/my_geonode/templates/search/_general_filters.html b/my_geonode/templates/search/_general_filters.html new file mode 100644 index 0000000..599e765 --- /dev/null +++ b/my_geonode/templates/search/_general_filters.html @@ -0,0 +1,118 @@ +{% load i18n %} +{% if SEARCH_FILTERS.CATEGORIES_ENABLED %} + +{% endif %} +{#{% if SEARCH_FILTERS.OWNERS_ENABLED %}#} +{##} +{#{% endif %}#} +{#{% if SEARCH_FILTERS.GROUPS_ENABLED %}#} +{# #} +{#{% endif %}#} +{#{% if SEARCH_FILTERS.GROUP_CATEGORIES_ENABLED %}#} +{# #} +{#{% endif %}#} +{#{% if SEARCH_FILTERS.DATE_ENABLED %}#} +{##} +{#{% endif %}#} diff --git a/my_geonode/templates/search/_group_snippet.html b/my_geonode/templates/search/_group_snippet.html new file mode 100644 index 0000000..a7ba34e --- /dev/null +++ b/my_geonode/templates/search/_group_snippet.html @@ -0,0 +1,38 @@ +{% verbatim %} +
          +
          + + +{% endverbatim %} diff --git a/my_geonode/templates/search/_groupcategory_snippet.html b/my_geonode/templates/search/_groupcategory_snippet.html new file mode 100644 index 0000000..9df4daa --- /dev/null +++ b/my_geonode/templates/search/_groupcategory_snippet.html @@ -0,0 +1,24 @@ +{% verbatim %} + + + +{% endverbatim %} diff --git a/my_geonode/templates/search/_h_keywords_filter.html b/my_geonode/templates/search/_h_keywords_filter.html new file mode 100644 index 0000000..1d10b0a --- /dev/null +++ b/my_geonode/templates/search/_h_keywords_filter.html @@ -0,0 +1,5 @@ +{% load i18n %} + diff --git a/my_geonode/templates/search/_pagination.html b/my_geonode/templates/search/_pagination.html new file mode 100644 index 0000000..45deb58 --- /dev/null +++ b/my_geonode/templates/search/_pagination.html @@ -0,0 +1,18 @@ +{% load i18n %} + + + diff --git a/my_geonode/templates/search/_region_filter.html b/my_geonode/templates/search/_region_filter.html new file mode 100644 index 0000000..94e56b0 --- /dev/null +++ b/my_geonode/templates/search/_region_filter.html @@ -0,0 +1,18 @@ +{% load i18n %} +{% load base_tags %} + diff --git a/my_geonode/templates/search/_search_content.html b/my_geonode/templates/search/_search_content.html new file mode 100644 index 0000000..24ebc19 --- /dev/null +++ b/my_geonode/templates/search/_search_content.html @@ -0,0 +1,109 @@ +{% load i18n %} +
          +
          +{# #} +
          +
          +
          + {% if SEARCH_FILTERS.TEXT_ENABLED %} + {% include "search/_text_filter.html" %} + {% endif %} +
          +
          +
          +
          + {% if SEARCH_FILTERS.TYPE_ENABLED and include_type_filter == 'true' %} + {% include "search/_type_filters.html" %} + {% endif %} +
          +
          +
          +
          + {% include "search/_general_filters.html" %} +
          +
          +
          +
          +
          +
          +
          + {% if facet_type == 'layers' %} + + {% elif facet_type == 'maps' %} + + {% elif facet_type == 'documents' %} + + {% else %} + + {% endif %} +
          +
          {% include "search/_sort_filters.html" %}
          +
          +
          +
          +{% verbatim %} +
          +
          +

          No content created yet.

          +
          + +
          +{% endverbatim %} {% include 'search/_pagination.html' %} +
          +
          +
          + {% include "_bulk_permissions_form.html" %} +
          diff --git a/my_geonode/templates/search/_search_user_content.html b/my_geonode/templates/search/_search_user_content.html new file mode 100644 index 0000000..ec846dc --- /dev/null +++ b/my_geonode/templates/search/_search_user_content.html @@ -0,0 +1,64 @@ +{% load i18n %} +
          +
          +
          +
          + {% load base_tags %} + + {% if facet_type == 'groups' %} + + + + {% endif %} +
          +
          + +
          +
          +
          + {% trans "Total" %}: + +
          + {% include "search/_sort_filters.html" %} +
          + {% if facet_type == 'groups' %} + {% include 'search/_group_snippet.html' %} + {% elif facet_type == 'groupcategories' %} + {% include 'search/_groupcategory_snippet.html' %} + {% elif facet_type == 'people' %} + {% include "people/_profile_list_item.html" %} + {% endif %} +
          + {% include 'search/_pagination.html' %} +
          +
          diff --git a/my_geonode/templates/search/_sort_filters.html b/my_geonode/templates/search/_sort_filters.html new file mode 100644 index 0000000..0b80e11 --- /dev/null +++ b/my_geonode/templates/search/_sort_filters.html @@ -0,0 +1,54 @@ +{% load i18n %} + +
          +
          + + +
          +
          diff --git a/my_geonode/templates/search/_spatial_tags.html b/my_geonode/templates/search/_spatial_tags.html new file mode 100644 index 0000000..4b6b451 --- /dev/null +++ b/my_geonode/templates/search/_spatial_tags.html @@ -0,0 +1,4 @@ +{% load leaflet_tags %} + +{% leaflet_js %} +{% leaflet_css %} \ No newline at end of file diff --git a/my_geonode/templates/search/_t_keywords_filter.html b/my_geonode/templates/search/_t_keywords_filter.html new file mode 100644 index 0000000..f7109e8 --- /dev/null +++ b/my_geonode/templates/search/_t_keywords_filter.html @@ -0,0 +1,25 @@ +{% load i18n %} + +
          +{% for tname in THESAURI_FILTERS %} + + + +{% endfor %} + +
          diff --git a/my_geonode/templates/search/_text_filter.html b/my_geonode/templates/search/_text_filter.html new file mode 100644 index 0000000..c6cc9ea --- /dev/null +++ b/my_geonode/templates/search/_text_filter.html @@ -0,0 +1,18 @@ +{% load i18n %} +{% load base_tags %} + diff --git a/my_geonode/templates/search/_type_filters.html b/my_geonode/templates/search/_type_filters.html new file mode 100644 index 0000000..1e11b4f --- /dev/null +++ b/my_geonode/templates/search/_type_filters.html @@ -0,0 +1,18 @@ +{% load i18n %} +{% load base_tags %} + diff --git a/my_geonode/templates/search/indexes/documents/document_text.txt b/my_geonode/templates/search/indexes/documents/document_text.txt new file mode 100644 index 0000000..6d94c07 --- /dev/null +++ b/my_geonode/templates/search/indexes/documents/document_text.txt @@ -0,0 +1,6 @@ +{{ object.content }} +{{ object.title }} +{{ object.abstract }} +{{ object.purpose }} +{{ object.supplemental_information }} +{{ object.keyword_list }} \ No newline at end of file diff --git a/my_geonode/templates/search/indexes/groups/groupprofile_text.txt b/my_geonode/templates/search/indexes/groups/groupprofile_text.txt new file mode 100644 index 0000000..e84a438 --- /dev/null +++ b/my_geonode/templates/search/indexes/groups/groupprofile_text.txt @@ -0,0 +1,4 @@ +{{ object.content }} +{{ object.title }} +{{ object.description }} +{{ object.keyword_list }} \ No newline at end of file diff --git a/my_geonode/templates/search/indexes/layers/layer_text.txt b/my_geonode/templates/search/indexes/layers/layer_text.txt new file mode 100644 index 0000000..78f6b9a --- /dev/null +++ b/my_geonode/templates/search/indexes/layers/layer_text.txt @@ -0,0 +1,7 @@ +{{ object.content }} +{{ object.title }} +{{ object.abstract }} +{{ object.purpose }} +{{ object.name }} +{{ object.supplemental_information }} +{{ object.keyword_list }} diff --git a/my_geonode/templates/search/indexes/maps/map_text.txt b/my_geonode/templates/search/indexes/maps/map_text.txt new file mode 100644 index 0000000..78f6b9a --- /dev/null +++ b/my_geonode/templates/search/indexes/maps/map_text.txt @@ -0,0 +1,7 @@ +{{ object.content }} +{{ object.title }} +{{ object.abstract }} +{{ object.purpose }} +{{ object.name }} +{{ object.supplemental_information }} +{{ object.keyword_list }} diff --git a/my_geonode/templates/search/indexes/people/profile_text.txt b/my_geonode/templates/search/indexes/people/profile_text.txt new file mode 100644 index 0000000..e3efe10 --- /dev/null +++ b/my_geonode/templates/search/indexes/people/profile_text.txt @@ -0,0 +1,7 @@ +{{ object.content }} +{{ object.get_full_name }} +{{ object.username }} +{{ object.name }} +{{ object.organization }} +{{ object.profile}} +{{ object.position }} diff --git a/my_geonode/templates/search/search.html b/my_geonode/templates/search/search.html new file mode 100644 index 0000000..353f524 --- /dev/null +++ b/my_geonode/templates/search/search.html @@ -0,0 +1,37 @@ +{% extends "geonode_base.html" %} +{% load i18n %} +{% load staticfiles %} + +{% block title %} {% trans "Search" %} - {{ block.super }} {% endblock %} + +{% block body_class %}search{% endblock %} + +{% block body_outer %} + + {% with include_type_filter='true' %} + {% with header='Type' %} + {% with filter='type__in' %} + {% include "search/_search_content.html" %} + {% endwith %} + {% endwith %} + {% endwith %} +{% endblock %} + +{% block extra_script %} +{{ block.super }} + {% if GEONODE_SECURITY_ENABLED %} + {% include "_permissions_form_js.html" %} + {% endif %} + + {% with include_spatial='true' %} + {% include 'search/search_scripts.html' %} + {% endwith %} +{% endblock extra_script %} diff --git a/my_geonode/templates/search/search_scripts.html b/my_geonode/templates/search/search_scripts.html new file mode 100644 index 0000000..5864bf9 --- /dev/null +++ b/my_geonode/templates/search/search_scripts.html @@ -0,0 +1,64 @@ +{% load base_tags %} +{% load static from staticfiles %} + +{% if DEBUG_STATIC %} + + + +{% endif %} + +{% if include_spatial == 'true' %} + + +{% include 'search/_spatial_tags.html' %} + +{% endif %} + + + + diff --git a/my_geonode/templates/showcase.html b/my_geonode/templates/showcase.html new file mode 100644 index 0000000..36325fe --- /dev/null +++ b/my_geonode/templates/showcase.html @@ -0,0 +1,53 @@ +{% load i18n %} +{% load base_tags %} + + +
          +
          +
          +

          {% trans "Featured Datasets" %}

          +
          + {% with facet_type='home' %} + {% facets as facets %} +
          +
          +

          +

          {{ facets.layer|default:_("No") }} {% blocktrans count counter=facets.layer %}Layer{% plural %}Layers{% endblocktrans %}

          +

          {% trans "Click to search for geospatial data published by other users, organizations and public sources. Download data in standard formats." %}

          + {% if user.is_authenticated %} +

          {% trans "Add layers" %} »

          + {% else %} +

          {% trans "Explore layers" %} »

          + {% endif %} +
          +
          +
          +
          +

          +

          {{ facets.map|default:_("No") }} {% blocktrans count counter=facets.map %}Map{% plural %}Maps{% endblocktrans %}

          +

          {% trans "Data is available for browsing, aggregating and styling to generate maps which can be saved, downloaded, shared publicly or restricted to specify users only." %}

          + {% if user.is_authenticated %} +

          {% trans "Create maps" %} »

          + {% else %} +

          {% trans "Explore maps" %} »

          + {% endif %} +
          +
          +
          +
          + +

          +

          {{ facets.document|default:_("No") }} {% blocktrans count counter=facets.document %}Document{% plural %}Documents{% endblocktrans %}

          +

          {% trans "As for the layers and maps GeoNode allows to publish tabular and text data, manage theirs metadata and associated documents." %}

          + {% if user.is_authenticated %} +

          {% trans "Add documents" %} »

          + {% else %} +

          {% trans "Explore documents" %} »

          + {% endif %} +
          +
          + {% endwith %} +
          +
          +
          +
          diff --git a/my_geonode/templates/site_index.html b/my_geonode/templates/site_index.html index 4a6b9b8..9d30112 100644 --- a/my_geonode/templates/site_index.html +++ b/my_geonode/templates/site_index.html @@ -1,17 +1,51 @@ -{% extends 'index.html' %} +{% extends 'index.html' %} {% load i18n %} {% comment %} This is where you can override the hero area block. You can simply modify the content below or replace it wholesale to meet your own needs. {% endcomment %} +{% block title %} {% trans "Resilience Academy!" %} {% endblock %} +{% block header %} + {% include 'navigation.html' %} +{% endblock header %} + {% block hero %}
          -

          {{custom_theme.jumbotron_welcome_title|default:_("Welcome")}}

          +

          {{custom_theme.jumbotron_welcome_title|default:_("Resilience Academy")}}

          -

          {{custom_theme.jumbotron_welcome_content|default:_("GeoNode is an open source platform for sharing geospatial data and maps.")}}

          +

          {{custom_theme.jumbotron_welcome_content|default:_("taught, learned, transferred, accessed, secured.")}}

          {% if not custom_theme.jumbotron_cta_hide %} -

          {{custom_theme.jumbotron_cta_text|default:_("Get Started »")}}

          +{#

          {{custom_theme.jumbotron_cta_text|default:_("Get Started »")}}

          #} {% endif %}
          {% endblock hero %} + +{% block bigsearch %} +
          + +
          + +

          Resilience Academy's mission is to equip young people with tools, knowledge and skills to address the world's most pressing urban challenges and ensure resilience urban development

          +

          As an initiative for Tanzania Urban Resilience Program(TURP) and the Government of Tanzania, the Resilience + Academy is implemented through a collaborative approach involving dedicated faculty in from universities; Ardhi University(Tanzania), + State University(Zanzibar), Sokoine University of Agriculture(Tanzania), University of Dar es salaam(Tanzania), University of Turku(Finland) +

          +
          +
          +{% endblock bigsearch %} + +{% block datasets %} +
          + +
          +{% endblock datasets %} + +{% block showcase %} + {% include 'showcase.html' %} + +{% endblock showcase %} + {% block footer %} + {% include 'footer.html' %} +{% endblock footer %} \ No newline at end of file