Skip to content

Commit

Permalink
Pagine embed CSV Lombardia Milano e Monza Lecco Sondrio #565
Browse files Browse the repository at this point in the history
  • Loading branch information
mfortini committed Jun 9, 2020
1 parent aa30535 commit 06288ec
Show file tree
Hide file tree
Showing 7 changed files with 257 additions and 0 deletions.
62 changes: 62 additions & 0 deletions CSVLombardia/CSVLecco.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
lang: it
layout: issuelist_embed
title: Emergenza coronavirus - CSV Lecco
nome_regione: Lombardia
nome_provincia: Lecco
issuecategories:
- games and activities for children
- cultural activities and leisure
- solidarity services and initiatives
- deliveries and services
- psychological support
- goods donations and services offering
- e-learning
- migrants and refugees
---

{%- if page.issuecategory != blank -%}

{% assign issuecategories = "" | split: "," %}
{% assign tmpcategory = "" | split: "," %}
{%- assign tmpcategory = tmpcategory | push: page.issuecategory -%}
{%- assign tmpcategory = tmpcategory | push: site.data.cfg.issuecategories[page.issuecategory] -%}
{%- assign issuecategories = issuecategories | push: tmpcategory -%}

{%- elsif page.issuecategories != blank -%}

{% assign issuecategories = "" | split: "," %}
{% for category in page.issuecategories %}
{% assign tmpcategory = "" | split: "," %}
{%- assign tmpcategory = tmpcategory | push: category -%}
{%- assign tmpcategory = tmpcategory | push: site.data.cfg.issuecategories[category] -%}
{%- assign issuecategories = issuecategories | push: tmpcategory -%}
{% endfor %}

{%- elsif page.displayname != blank and page.markericon != blank -%}

{% assign issuecategories = "" | split: "," %}
{% assign tmpcategory = "" | split: "," %}
{%- assign tmpcategory = tmpcategory | push: "page" -%}
{%- assign tmpcategory = tmpcategory | push: page -%}
{%- assign issuecategories = issuecategories | push: tmpcategory -%}

{%- else -%}

{%- assign issuecategories = site.data.cfg.issuecategories -%}

{%- endif -%}

<div class="row mx-auto">
{% for categorytuple in issuecategories %}
{% assign category = categorytuple[1] %}
<div class="col-12 col-sm-6 mb-15">
<a href="{{category["permalink"]}}" class="btn btn-primary btn-block text-left h-100" title="Vedi tutte le segnalazioni della categoria {{category['displayname']}}">
<span class="fa-stack text-left" aria-label="logo del marker della segnalazione" role="img">
<i class="fa fa-circle fa-stack-2x" aria-hidden="true" style="color:{{category['markercolor']}};"></i>
<i class="fa fa-{{category['markericon']}} fa-stack-1x fa-inverse" aria-hidden="true"></i>
</span>
<span class="text-center">{{category["displayname"]}}</span></a>
</div>
{% endfor %}
</div>
61 changes: 61 additions & 0 deletions CSVLombardia/CSVMilano.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
lang: it
layout: issuelist_embed
title: Emergenza coronavirus - CSV Milano
nome_regione: Lombardia
nome_provincia: Milano
issuecategories:
- games and activities for children
- cultural activities and leisure
- deliveries and services
- psychological support
- goods donations and services offering
- e-learning
- migrants and refugees
---

{%- if page.issuecategory != blank -%}

{% assign issuecategories = "" | split: "," %}
{% assign tmpcategory = "" | split: "," %}
{%- assign tmpcategory = tmpcategory | push: page.issuecategory -%}
{%- assign tmpcategory = tmpcategory | push: site.data.cfg.issuecategories[page.issuecategory] -%}
{%- assign issuecategories = issuecategories | push: tmpcategory -%}

{%- elsif page.issuecategories != blank -%}

{% assign issuecategories = "" | split: "," %}
{% for category in page.issuecategories %}
{% assign tmpcategory = "" | split: "," %}
{%- assign tmpcategory = tmpcategory | push: category -%}
{%- assign tmpcategory = tmpcategory | push: site.data.cfg.issuecategories[category] -%}
{%- assign issuecategories = issuecategories | push: tmpcategory -%}
{% endfor %}

{%- elsif page.displayname != blank and page.markericon != blank -%}

{% assign issuecategories = "" | split: "," %}
{% assign tmpcategory = "" | split: "," %}
{%- assign tmpcategory = tmpcategory | push: "page" -%}
{%- assign tmpcategory = tmpcategory | push: page -%}
{%- assign issuecategories = issuecategories | push: tmpcategory -%}

{%- else -%}

{%- assign issuecategories = site.data.cfg.issuecategories -%}

{%- endif -%}

<div class="row mx-auto">
{% for categorytuple in issuecategories %}
{% assign category = categorytuple[1] %}
<div class="col-12 col-sm-6 mb-15">
<a href="{{category["permalink"]}}" class="btn btn-primary btn-block text-left h-100" title="Vedi tutte le segnalazioni della categoria {{category['displayname']}}">
<span class="fa-stack text-left" aria-label="logo del marker della segnalazione" role="img">
<i class="fa fa-circle fa-stack-2x" aria-hidden="true" style="color:{{category['markercolor']}};"></i>
<i class="fa fa-{{category['markericon']}} fa-stack-1x fa-inverse" aria-hidden="true"></i>
</span>
<span class="text-center">{{category["displayname"]}}</span></a>
</div>
{% endfor %}
</div>
62 changes: 62 additions & 0 deletions CSVLombardia/CSVMonza.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
lang: it
layout: issuelist_embed
title: Emergenza coronavirus - CSV Monza
nome_regione: Lombardia
nome_provincia: Monza
issuecategories:
- games and activities for children
- cultural activities and leisure
- solidarity services and initiatives
- deliveries and services
- psychological support
- goods donations and services offering
- e-learning
- migrants and refugees
---

{%- if page.issuecategory != blank -%}

{% assign issuecategories = "" | split: "," %}
{% assign tmpcategory = "" | split: "," %}
{%- assign tmpcategory = tmpcategory | push: page.issuecategory -%}
{%- assign tmpcategory = tmpcategory | push: site.data.cfg.issuecategories[page.issuecategory] -%}
{%- assign issuecategories = issuecategories | push: tmpcategory -%}

{%- elsif page.issuecategories != blank -%}

{% assign issuecategories = "" | split: "," %}
{% for category in page.issuecategories %}
{% assign tmpcategory = "" | split: "," %}
{%- assign tmpcategory = tmpcategory | push: category -%}
{%- assign tmpcategory = tmpcategory | push: site.data.cfg.issuecategories[category] -%}
{%- assign issuecategories = issuecategories | push: tmpcategory -%}
{% endfor %}

{%- elsif page.displayname != blank and page.markericon != blank -%}

{% assign issuecategories = "" | split: "," %}
{% assign tmpcategory = "" | split: "," %}
{%- assign tmpcategory = tmpcategory | push: "page" -%}
{%- assign tmpcategory = tmpcategory | push: page -%}
{%- assign issuecategories = issuecategories | push: tmpcategory -%}

{%- else -%}

{%- assign issuecategories = site.data.cfg.issuecategories -%}

{%- endif -%}

<div class="row mx-auto">
{% for categorytuple in issuecategories %}
{% assign category = categorytuple[1] %}
<div class="col-12 col-sm-6 mb-15">
<a href="{{category["permalink"]}}" class="btn btn-primary btn-block text-left h-100" title="Vedi tutte le segnalazioni della categoria {{category['displayname']}}">
<span class="fa-stack text-left" aria-label="logo del marker della segnalazione" role="img">
<i class="fa fa-circle fa-stack-2x" aria-hidden="true" style="color:{{category['markercolor']}};"></i>
<i class="fa fa-{{category['markericon']}} fa-stack-1x fa-inverse" aria-hidden="true"></i>
</span>
<span class="text-center">{{category["displayname"]}}</span></a>
</div>
{% endfor %}
</div>
62 changes: 62 additions & 0 deletions CSVLombardia/CSVSondrio.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
lang: it
layout: issuelist_embed
title: Emergenza coronavirus - CSV Sondrio
nome_regione: Lombardia
nome_provincia: Sondrio
issuecategories:
- games and activities for children
- cultural activities and leisure
- solidarity services and initiatives
- deliveries and services
- psychological support
- goods donations and services offering
- e-learning
- migrants and refugees
---

{%- if page.issuecategory != blank -%}

{% assign issuecategories = "" | split: "," %}
{% assign tmpcategory = "" | split: "," %}
{%- assign tmpcategory = tmpcategory | push: page.issuecategory -%}
{%- assign tmpcategory = tmpcategory | push: site.data.cfg.issuecategories[page.issuecategory] -%}
{%- assign issuecategories = issuecategories | push: tmpcategory -%}

{%- elsif page.issuecategories != blank -%}

{% assign issuecategories = "" | split: "," %}
{% for category in page.issuecategories %}
{% assign tmpcategory = "" | split: "," %}
{%- assign tmpcategory = tmpcategory | push: category -%}
{%- assign tmpcategory = tmpcategory | push: site.data.cfg.issuecategories[category] -%}
{%- assign issuecategories = issuecategories | push: tmpcategory -%}
{% endfor %}

{%- elsif page.displayname != blank and page.markericon != blank -%}

{% assign issuecategories = "" | split: "," %}
{% assign tmpcategory = "" | split: "," %}
{%- assign tmpcategory = tmpcategory | push: "page" -%}
{%- assign tmpcategory = tmpcategory | push: page -%}
{%- assign issuecategories = issuecategories | push: tmpcategory -%}

{%- else -%}

{%- assign issuecategories = site.data.cfg.issuecategories -%}

{%- endif -%}

<div class="row mx-auto">
{% for categorytuple in issuecategories %}
{% assign category = categorytuple[1] %}
<div class="col-12 col-sm-6 mb-15">
<a href="{{category["permalink"]}}" class="btn btn-primary btn-block text-left h-100" title="Vedi tutte le segnalazioni della categoria {{category['displayname']}}">
<span class="fa-stack text-left" aria-label="logo del marker della segnalazione" role="img">
<i class="fa fa-circle fa-stack-2x" aria-hidden="true" style="color:{{category['markercolor']}};"></i>
<i class="fa fa-{{category['markericon']}} fa-stack-1x fa-inverse" aria-hidden="true"></i>
</span>
<span class="text-center">{{category["displayname"]}}</span></a>
</div>
{% endfor %}
</div>
10 changes: 10 additions & 0 deletions _includes/issuelist_cards.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
<div class="col-10"><h4 class="card-title">{{member.title}}</h4></div>
<div class="col-2"><img width="128" src="/images/validato_inp_logo.png" class="img-fluid" alt="logo Validato da Italia No Profit" /></div>
</div>
{% elsif member.issue.labels contains "CSV Milano" %}
<div class="row">
<div class="col-10"><h4 class="card-title">{{member.title}}</h4></div>
<div class="col-2"><img width="128" src="/images/Logo_CSV_Milano.png" class="img-fluid" alt="logo Validato da CSV Milano" /></div>
</div>
{% elsif member.issue.labels contains "CSV Monza Lecco Sondrio" %}
<div class="row">
<div class="col-10"><h4 class="card-title">{{member.title}}</h4></div>
<div class="col-2"><img width="128" src="/images/Logo_CSV_MLS.png" class="img-fluid" alt="logo Validato da CSV Monza Lecco Sondrio" /></div>
</div>
{% else %}<h4 class="card-title">{{member.title}}</h4>
{% endif %}</a>
<dl class="row">
Expand Down
Binary file added images/Logo_CSV_MLS.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/Logo_CSV_Milano.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 06288ec

Please sign in to comment.