2017-08-29 20:37:06 +02:00
|
|
|
{{ "<!-- ORGANISATIONS -->" | safeHTML }}
|
|
|
|
<section id="organisations">
|
|
|
|
<div class="container">
|
|
|
|
<div class="text-center">
|
2018-06-08 18:22:10 +02:00
|
|
|
<h2 class="section-heading">{{ i18n "organisations_headline" }}</h2>
|
2017-08-29 20:37:06 +02:00
|
|
|
<hr />
|
2017-09-06 00:52:52 +02:00
|
|
|
<!-- replace the URL defined in config.toml because this snipped is used in sub-pages too -->
|
2018-06-08 18:22:10 +02:00
|
|
|
<p>{{ replace (i18n "organisations_text") "openletter/" ("/openletter" | relLangURL) | markdownify }}</p>
|
2019-08-07 14:35:17 +02:00
|
|
|
<br />
|
2018-02-16 11:29:51 +01:00
|
|
|
<div class="radio-filter-orgs">
|
|
|
|
<label>
|
2018-02-23 16:05:09 +01:00
|
|
|
<input name="filter_orgs" type="radio" onclick="showAllOrgs()" checked><span class="label-text">{{ i18n "organisations_all" }}</span></input> </label>
|
2018-02-16 11:29:51 +01:00
|
|
|
<label>
|
2018-02-23 16:05:09 +01:00
|
|
|
<input name="filter_orgs" type="radio" onclick="selectOrgType('international_ngo')"><span class="label-text">{{ i18n "organisations_international_ngo" }}</span></input>
|
2018-02-16 11:29:51 +01:00
|
|
|
</label>
|
2018-02-20 10:46:26 +01:00
|
|
|
<label>
|
2018-02-23 16:05:09 +01:00
|
|
|
<input name="filter_orgs" type="radio" onclick="selectOrgType('administration')"><span class="label-text">{{ i18n "organisations_administration" }}</span></input>
|
2018-02-20 10:46:26 +01:00
|
|
|
</label>
|
2018-02-16 11:29:51 +01:00
|
|
|
<label>
|
2018-02-23 16:05:09 +01:00
|
|
|
<input name="filter_orgs" type="radio" onclick="selectOrgType('national_ngo')"><span class="label-text">{{ i18n "organisations_national_ngo" }}</span></input>
|
2018-02-20 17:26:49 +01:00
|
|
|
</label>
|
|
|
|
<label>
|
2018-02-23 16:05:09 +01:00
|
|
|
<input name="filter_orgs" type="radio" onclick="selectOrgType('regional_ngo')"><span class="label-text">{{ i18n "organisations_regional_ngo" }}</span></input>
|
2018-02-16 11:29:51 +01:00
|
|
|
</label>
|
2018-02-20 10:43:59 +01:00
|
|
|
<!--<label>
|
2018-02-23 16:05:09 +01:00
|
|
|
<input name="filter_orgs" type="radio" onclick="selectOrgType('corporate')"><span class="label-text">{{ i18n "organisations_corporate" }}</span></input>
|
2018-02-20 10:43:59 +01:00
|
|
|
</label> -->
|
2018-02-16 11:29:51 +01:00
|
|
|
</div>
|
2017-09-21 00:02:13 +02:00
|
|
|
<div class="expand" tabindex="0">
|
2020-11-25 16:09:06 +01:00
|
|
|
<i class="fa fa-chevron-down" aria-hidden="true"></i>
|
2017-09-21 00:02:13 +02:00
|
|
|
</div>
|
2017-08-29 20:37:06 +02:00
|
|
|
<div class="orgs">
|
|
|
|
<ul>
|
2018-02-15 16:28:35 +01:00
|
|
|
<!-- Get all organizations and split them in two sets according
|
|
|
|
to their priorities -->
|
2017-09-14 11:36:33 +02:00
|
|
|
{{ $orgs := getJSON "data/organisations/organisations.json" }}
|
2018-02-15 16:28:35 +01:00
|
|
|
{{ range $int := shuffle (where $orgs "priority" "1") }}
|
2018-02-16 11:29:51 +01:00
|
|
|
<li class="org" orgtype="{{ .orgtype }}" >
|
|
|
|
<a href="{{ .url }}" class="hiddenlink" title="{{ .name }}" style="background-image: url(/img/organisations/{{ .img }})" target="_blank"></a>
|
|
|
|
</li>
|
2017-09-14 11:36:33 +02:00
|
|
|
{{ end }}
|
|
|
|
|
2018-02-15 16:28:35 +01:00
|
|
|
{{ range $int := shuffle (where $orgs "priority" "0") }}
|
2018-02-16 11:29:51 +01:00
|
|
|
<li class="org" orgtype="{{ .orgtype }}" >
|
|
|
|
<a href="{{ .url }}" class="hiddenlink" title="{{ .name }}" style="background-image: url(/img/organisations/{{ .img }})" target="_blank"></a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
2017-08-29 20:37:06 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|