Skip to content

Latest commit

 

History

History
182 lines (160 loc) · 7.44 KB

bollettino.md

File metadata and controls

182 lines (160 loc) · 7.44 KB
layout title permalink
page
Bollettino
/bollettino/
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script> <style> #map{ height: 400px } </style>

Segnalazioni Aperte

{% assign filteredissues = site.data.issuesjson | where: "state","open" %} {% for member in filteredissues %} {% if member.issue.labels contains "Bollettino" %} {% capture memberName %}{{member.issue.data.descrizione}}{% endcapture %} {% assign memberId = member.number %} {% capture memberUrl %}{{site.url}}/issues/{{member.number}}{% endcapture %}
{% if member.issue.data.descrizione %}
{{member.issue.data.descrizione|markdownify}}
{% endif %} {% if member.issue.data.data %}
Data:
{{member.issue.data.data}}
{% endif %} {% if member.issue.data.indirizzo %}
Indirizzo:
{{member.issue.data.indirizzo}}
{% endif %} {% if member.issue.data.link %} {% endif %}
  • Condividi:
  • Copia link
  • Condividi su Facebook
  • Tweet
  • Condividi su Google+
  • Invia email
{% endif %} {% endfor %}

Segnalazioni Chiuse

{% assign filteredissues = site.data.issuesjson | where: "state","closed" %} {% for member in filteredissues %} {% if member.issue.labels contains "Bollettino" %} {% capture memberName %}{{member.issue.data.descrizione}}{% endcapture %} {% assign memberId = member.number %} {% capture memberUrl %}{{site.url}}/issues/{{member.number}}{% endcapture %}
{% if member.issue.data.descrizione %}
{{member.issue.data.descrizione|markdownify}}
{% endif %} {% if member.issue.data.data %}
Data:
{{member.issue.data.data}}
{% endif %} {% if member.issue.data.indirizzo %}
Indirizzo:
{{member.issue.data.indirizzo}}
{% endif %} {% if member.issue.data.link %} {% endif %}
  • Condividi:
  • Copia link
  • Condividi su Facebook
  • Tweet
  • Condividi su Google+
  • Invia email
{% endif %} {% endfor %}
{% for post in site.posts %} {% if post.categories contains 'bollettino' %}
    <div class="entry">
      {{ post.excerpt }}
    </div>

    <a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a>
  </article>
{% endif %}

{% endfor %}

<script> var markerList=[]; {% assign filteredissues = site.data.issuesjson | where: "state","open" %} {% for member in filteredissues %} {% if member.issue.labels contains "Bollettino" %} {% if member.issue.lat != blank and member.issue.lon != blank %} markerList.push([{{member.issue.lat}}, {{member.issue.lon}}, "{{member.title|uri_escape}}", "/issues/{{ member.number }}"]); {% endif %} {% endif %} {% endfor %} // initialize the map var map = L.map('map') // create the tile layer with correct attribution var osmUrl='http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png'; var osmAttrib='© OpenStreetMap, Tiles courtesy of Humanitarian OpenStreetMap Team'; var osm = new L.TileLayer(osmUrl, {minZoom: 6, maxZoom: 19, attribution: osmAttrib}); var sumLat = 0.; var sumLon = 0.; var countMarkers=0; for (var i=0; i" + decodeURI(popupText) + ""); sumLat += lat; sumLon += lon; countMarkers++; } } map.addLayer(osm).setView([sumLat / countMarkers, sumLon / countMarkers], 6); </script>