Skip to content

Commit 06288ec

Browse files
committed
Pagine embed CSV Lombardia Milano e Monza Lecco Sondrio #565
1 parent aa30535 commit 06288ec

File tree

7 files changed

+257
-0
lines changed

7 files changed

+257
-0
lines changed

CSVLombardia/CSVLecco.md

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
lang: it
3+
layout: issuelist_embed
4+
title: Emergenza coronavirus - CSV Lecco
5+
nome_regione: Lombardia
6+
nome_provincia: Lecco
7+
issuecategories:
8+
- games and activities for children
9+
- cultural activities and leisure
10+
- solidarity services and initiatives
11+
- deliveries and services
12+
- psychological support
13+
- goods donations and services offering
14+
- e-learning
15+
- migrants and refugees
16+
---
17+
18+
{%- if page.issuecategory != blank -%}
19+
20+
{% assign issuecategories = "" | split: "," %}
21+
{% assign tmpcategory = "" | split: "," %}
22+
{%- assign tmpcategory = tmpcategory | push: page.issuecategory -%}
23+
{%- assign tmpcategory = tmpcategory | push: site.data.cfg.issuecategories[page.issuecategory] -%}
24+
{%- assign issuecategories = issuecategories | push: tmpcategory -%}
25+
26+
{%- elsif page.issuecategories != blank -%}
27+
28+
{% assign issuecategories = "" | split: "," %}
29+
{% for category in page.issuecategories %}
30+
{% assign tmpcategory = "" | split: "," %}
31+
{%- assign tmpcategory = tmpcategory | push: category -%}
32+
{%- assign tmpcategory = tmpcategory | push: site.data.cfg.issuecategories[category] -%}
33+
{%- assign issuecategories = issuecategories | push: tmpcategory -%}
34+
{% endfor %}
35+
36+
{%- elsif page.displayname != blank and page.markericon != blank -%}
37+
38+
{% assign issuecategories = "" | split: "," %}
39+
{% assign tmpcategory = "" | split: "," %}
40+
{%- assign tmpcategory = tmpcategory | push: "page" -%}
41+
{%- assign tmpcategory = tmpcategory | push: page -%}
42+
{%- assign issuecategories = issuecategories | push: tmpcategory -%}
43+
44+
{%- else -%}
45+
46+
{%- assign issuecategories = site.data.cfg.issuecategories -%}
47+
48+
{%- endif -%}
49+
50+
<div class="row mx-auto">
51+
{% for categorytuple in issuecategories %}
52+
{% assign category = categorytuple[1] %}
53+
<div class="col-12 col-sm-6 mb-15">
54+
<a href="{{category["permalink"]}}" class="btn btn-primary btn-block text-left h-100" title="Vedi tutte le segnalazioni della categoria {{category['displayname']}}">
55+
<span class="fa-stack text-left" aria-label="logo del marker della segnalazione" role="img">
56+
<i class="fa fa-circle fa-stack-2x" aria-hidden="true" style="color:{{category['markercolor']}};"></i>
57+
<i class="fa fa-{{category['markericon']}} fa-stack-1x fa-inverse" aria-hidden="true"></i>
58+
</span>
59+
<span class="text-center">{{category["displayname"]}}</span></a>
60+
</div>
61+
{% endfor %}
62+
</div>

CSVLombardia/CSVMilano.md

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
lang: it
3+
layout: issuelist_embed
4+
title: Emergenza coronavirus - CSV Milano
5+
nome_regione: Lombardia
6+
nome_provincia: Milano
7+
issuecategories:
8+
- games and activities for children
9+
- cultural activities and leisure
10+
- deliveries and services
11+
- psychological support
12+
- goods donations and services offering
13+
- e-learning
14+
- migrants and refugees
15+
---
16+
17+
{%- if page.issuecategory != blank -%}
18+
19+
{% assign issuecategories = "" | split: "," %}
20+
{% assign tmpcategory = "" | split: "," %}
21+
{%- assign tmpcategory = tmpcategory | push: page.issuecategory -%}
22+
{%- assign tmpcategory = tmpcategory | push: site.data.cfg.issuecategories[page.issuecategory] -%}
23+
{%- assign issuecategories = issuecategories | push: tmpcategory -%}
24+
25+
{%- elsif page.issuecategories != blank -%}
26+
27+
{% assign issuecategories = "" | split: "," %}
28+
{% for category in page.issuecategories %}
29+
{% assign tmpcategory = "" | split: "," %}
30+
{%- assign tmpcategory = tmpcategory | push: category -%}
31+
{%- assign tmpcategory = tmpcategory | push: site.data.cfg.issuecategories[category] -%}
32+
{%- assign issuecategories = issuecategories | push: tmpcategory -%}
33+
{% endfor %}
34+
35+
{%- elsif page.displayname != blank and page.markericon != blank -%}
36+
37+
{% assign issuecategories = "" | split: "," %}
38+
{% assign tmpcategory = "" | split: "," %}
39+
{%- assign tmpcategory = tmpcategory | push: "page" -%}
40+
{%- assign tmpcategory = tmpcategory | push: page -%}
41+
{%- assign issuecategories = issuecategories | push: tmpcategory -%}
42+
43+
{%- else -%}
44+
45+
{%- assign issuecategories = site.data.cfg.issuecategories -%}
46+
47+
{%- endif -%}
48+
49+
<div class="row mx-auto">
50+
{% for categorytuple in issuecategories %}
51+
{% assign category = categorytuple[1] %}
52+
<div class="col-12 col-sm-6 mb-15">
53+
<a href="{{category["permalink"]}}" class="btn btn-primary btn-block text-left h-100" title="Vedi tutte le segnalazioni della categoria {{category['displayname']}}">
54+
<span class="fa-stack text-left" aria-label="logo del marker della segnalazione" role="img">
55+
<i class="fa fa-circle fa-stack-2x" aria-hidden="true" style="color:{{category['markercolor']}};"></i>
56+
<i class="fa fa-{{category['markericon']}} fa-stack-1x fa-inverse" aria-hidden="true"></i>
57+
</span>
58+
<span class="text-center">{{category["displayname"]}}</span></a>
59+
</div>
60+
{% endfor %}
61+
</div>

CSVLombardia/CSVMonza.md

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
lang: it
3+
layout: issuelist_embed
4+
title: Emergenza coronavirus - CSV Monza
5+
nome_regione: Lombardia
6+
nome_provincia: Monza
7+
issuecategories:
8+
- games and activities for children
9+
- cultural activities and leisure
10+
- solidarity services and initiatives
11+
- deliveries and services
12+
- psychological support
13+
- goods donations and services offering
14+
- e-learning
15+
- migrants and refugees
16+
---
17+
18+
{%- if page.issuecategory != blank -%}
19+
20+
{% assign issuecategories = "" | split: "," %}
21+
{% assign tmpcategory = "" | split: "," %}
22+
{%- assign tmpcategory = tmpcategory | push: page.issuecategory -%}
23+
{%- assign tmpcategory = tmpcategory | push: site.data.cfg.issuecategories[page.issuecategory] -%}
24+
{%- assign issuecategories = issuecategories | push: tmpcategory -%}
25+
26+
{%- elsif page.issuecategories != blank -%}
27+
28+
{% assign issuecategories = "" | split: "," %}
29+
{% for category in page.issuecategories %}
30+
{% assign tmpcategory = "" | split: "," %}
31+
{%- assign tmpcategory = tmpcategory | push: category -%}
32+
{%- assign tmpcategory = tmpcategory | push: site.data.cfg.issuecategories[category] -%}
33+
{%- assign issuecategories = issuecategories | push: tmpcategory -%}
34+
{% endfor %}
35+
36+
{%- elsif page.displayname != blank and page.markericon != blank -%}
37+
38+
{% assign issuecategories = "" | split: "," %}
39+
{% assign tmpcategory = "" | split: "," %}
40+
{%- assign tmpcategory = tmpcategory | push: "page" -%}
41+
{%- assign tmpcategory = tmpcategory | push: page -%}
42+
{%- assign issuecategories = issuecategories | push: tmpcategory -%}
43+
44+
{%- else -%}
45+
46+
{%- assign issuecategories = site.data.cfg.issuecategories -%}
47+
48+
{%- endif -%}
49+
50+
<div class="row mx-auto">
51+
{% for categorytuple in issuecategories %}
52+
{% assign category = categorytuple[1] %}
53+
<div class="col-12 col-sm-6 mb-15">
54+
<a href="{{category["permalink"]}}" class="btn btn-primary btn-block text-left h-100" title="Vedi tutte le segnalazioni della categoria {{category['displayname']}}">
55+
<span class="fa-stack text-left" aria-label="logo del marker della segnalazione" role="img">
56+
<i class="fa fa-circle fa-stack-2x" aria-hidden="true" style="color:{{category['markercolor']}};"></i>
57+
<i class="fa fa-{{category['markericon']}} fa-stack-1x fa-inverse" aria-hidden="true"></i>
58+
</span>
59+
<span class="text-center">{{category["displayname"]}}</span></a>
60+
</div>
61+
{% endfor %}
62+
</div>

CSVLombardia/CSVSondrio.md

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
lang: it
3+
layout: issuelist_embed
4+
title: Emergenza coronavirus - CSV Sondrio
5+
nome_regione: Lombardia
6+
nome_provincia: Sondrio
7+
issuecategories:
8+
- games and activities for children
9+
- cultural activities and leisure
10+
- solidarity services and initiatives
11+
- deliveries and services
12+
- psychological support
13+
- goods donations and services offering
14+
- e-learning
15+
- migrants and refugees
16+
---
17+
18+
{%- if page.issuecategory != blank -%}
19+
20+
{% assign issuecategories = "" | split: "," %}
21+
{% assign tmpcategory = "" | split: "," %}
22+
{%- assign tmpcategory = tmpcategory | push: page.issuecategory -%}
23+
{%- assign tmpcategory = tmpcategory | push: site.data.cfg.issuecategories[page.issuecategory] -%}
24+
{%- assign issuecategories = issuecategories | push: tmpcategory -%}
25+
26+
{%- elsif page.issuecategories != blank -%}
27+
28+
{% assign issuecategories = "" | split: "," %}
29+
{% for category in page.issuecategories %}
30+
{% assign tmpcategory = "" | split: "," %}
31+
{%- assign tmpcategory = tmpcategory | push: category -%}
32+
{%- assign tmpcategory = tmpcategory | push: site.data.cfg.issuecategories[category] -%}
33+
{%- assign issuecategories = issuecategories | push: tmpcategory -%}
34+
{% endfor %}
35+
36+
{%- elsif page.displayname != blank and page.markericon != blank -%}
37+
38+
{% assign issuecategories = "" | split: "," %}
39+
{% assign tmpcategory = "" | split: "," %}
40+
{%- assign tmpcategory = tmpcategory | push: "page" -%}
41+
{%- assign tmpcategory = tmpcategory | push: page -%}
42+
{%- assign issuecategories = issuecategories | push: tmpcategory -%}
43+
44+
{%- else -%}
45+
46+
{%- assign issuecategories = site.data.cfg.issuecategories -%}
47+
48+
{%- endif -%}
49+
50+
<div class="row mx-auto">
51+
{% for categorytuple in issuecategories %}
52+
{% assign category = categorytuple[1] %}
53+
<div class="col-12 col-sm-6 mb-15">
54+
<a href="{{category["permalink"]}}" class="btn btn-primary btn-block text-left h-100" title="Vedi tutte le segnalazioni della categoria {{category['displayname']}}">
55+
<span class="fa-stack text-left" aria-label="logo del marker della segnalazione" role="img">
56+
<i class="fa fa-circle fa-stack-2x" aria-hidden="true" style="color:{{category['markercolor']}};"></i>
57+
<i class="fa fa-{{category['markericon']}} fa-stack-1x fa-inverse" aria-hidden="true"></i>
58+
</span>
59+
<span class="text-center">{{category["displayname"]}}</span></a>
60+
</div>
61+
{% endfor %}
62+
</div>

_includes/issuelist_cards.html

+10
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@
77
<div class="col-10"><h4 class="card-title">{{member.title}}</h4></div>
88
<div class="col-2"><img width="128" src="/images/validato_inp_logo.png" class="img-fluid" alt="logo Validato da Italia No Profit" /></div>
99
</div>
10+
{% elsif member.issue.labels contains "CSV Milano" %}
11+
<div class="row">
12+
<div class="col-10"><h4 class="card-title">{{member.title}}</h4></div>
13+
<div class="col-2"><img width="128" src="/images/Logo_CSV_Milano.png" class="img-fluid" alt="logo Validato da CSV Milano" /></div>
14+
</div>
15+
{% elsif member.issue.labels contains "CSV Monza Lecco Sondrio" %}
16+
<div class="row">
17+
<div class="col-10"><h4 class="card-title">{{member.title}}</h4></div>
18+
<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>
19+
</div>
1020
{% else %}<h4 class="card-title">{{member.title}}</h4>
1121
{% endif %}</a>
1222
<dl class="row">

images/Logo_CSV_MLS.png

13.8 KB
Loading

images/Logo_CSV_Milano.png

30.5 KB
Loading

0 commit comments

Comments
 (0)