Skip to content
Snippets Groups Projects
Commit 051e6e80 authored by anonymous's avatar anonymous
Browse files

ODPSH-137: change layout

parent 158f7baf
Branches
Tags
No related merge requests found
...@@ -1124,6 +1124,13 @@ body { ...@@ -1124,6 +1124,13 @@ body {
margin-right:0px; margin-right:0px;
font-weight: normal; font-weight: normal;
} }
.module.module-narrow.dataset-map{
margin: 5px 0;
}
.spatial-detail.info-detail{
margin-bottom: 0px;
}
#dataset-map .module-heading [class^="icon-"], #dataset-map .module-heading [class^="icon-"],
#dataset-map .module-heading [class*=" icon-"] { #dataset-map .module-heading [class*=" icon-"] {
font-size: 14px; font-size: 14px;
......
...@@ -29,32 +29,6 @@ ...@@ -29,32 +29,6 @@
{% endblock %} {% endblock %}
{% block spatial_map %} {% block spatial_map %}
{% set dataset_extent = h.get_pkg_dict_extra(c.pkg_dict, 'spatial', '') %}
{% if dataset_extent %}
{% snippet "spatial/snippets/dataset_map_sidebar.html", extent=dataset_extent %}
{% endif %}
{% block spatial_info %}
{% set map_text = h.odsh_get_spatial_text(pkg) %}
<div class="spatial-detail info-detail">
<div>{{ _('Spatial uri') }}:</div>
{%set ext=map_text if map_text else '-'%}
<p>{{ ext }}</p>
</div>
<div class="info-detail">
{% if map_text %}
<p class='map-text'> {{_('Map showing the borders of {map_text}').format(map_text=map_text)}} </p>
{% endif %}
{% set bbox = h.odsh_get_bounding_box(pkg) %}
{% if bbox%}
<div>{{ _('borders of map') }}:</div>
<p> {{ '{0:0.3f}'.format(bbox[0]).zfill(2).replace('.',',') }}° {{_('in east')}}</p>
<p> {{ '{0:0.3f}'.format(bbox[1]).replace('.',',') }}° {{_('in west')}}</p>
<p> {{ '{0:0.3f}'.format(bbox[2]).replace('.',',') }}° {{_('in south')}}</p>
<p> {{ '{0:0.3f}'.format(bbox[3]).replace('.',',') }}° {{_('in north')}}</p>
{% endif %}
</div>
{% endblock %}
{% endblock %} {% endblock %}
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -67,6 +67,30 @@ Example: ...@@ -67,6 +67,30 @@ Example:
{% endblock %} {% endblock %}
</div> </div>
{% set map_text = h.odsh_get_spatial_text(pkg) %}
<div class="spatial-detail info-detail">
<div>{{ _('Spatial uri') }}:</div>
{%set ext=map_text if map_text else '-'%}
<p>{{ ext }}</p>
</div>
{% set dataset_extent = h.get_pkg_dict_extra(c.pkg_dict, 'spatial', '') %}
{% if dataset_extent %}
<section class="module module-narrow dataset-map">
{% snippet "spatial/snippets/dataset_map_base.html", extent=dataset_extent %}
</section>
{% endif %}
{% block spatial_info %}
<div class="info-detail">
{% set bbox = h.odsh_get_bounding_box(pkg) %}
{% if bbox%}
<div>{{ _('borders of map') }}:</div>
<p> {{ '{0:0.3f}'.format(bbox[0]).zfill(2).replace('.',',') }}° {{_('in east')}}</p>
<p> {{ '{0:0.3f}'.format(bbox[1]).replace('.',',') }}° {{_('in west')}}</p>
<p> {{ '{0:0.3f}'.format(bbox[2]).replace('.',',') }}° {{_('in south')}}</p>
<p> {{ '{0:0.3f}'.format(bbox[3]).replace('.',',') }}° {{_('in north')}}</p>
{% endif %}
</div>
{% endblock %}
</div> </div>
</section> </section>
{% endif %} {% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment