publiccode.si/site/layouts/partials/organisations.html

52 lines
2.8 KiB
HTML
Raw Normal View History

{{ "<!-- 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>
<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>
<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>
<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>
</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>
<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>
</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>
</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> -->
</div>
2017-09-21 00:02:13 +02:00
<div class="expand" tabindex="0">
<i class="fa fa-share" aria-hidden="true"></i>
</div>
<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 -->
{{ $orgs := getJSON "data/organisations/organisations.json" }}
2018-02-15 16:28:35 +01:00
{{ range $int := shuffle (where $orgs "priority" "1") }}
<li class="org" orgtype="{{ .orgtype }}" >
<a href="{{ .url }}" class="hiddenlink" title="{{ .name }}" style="background-image: url(/img/organisations/{{ .img }})" target="_blank"></a>
</li>
{{ end }}
2018-02-15 16:28:35 +01:00
{{ range $int := shuffle (where $orgs "priority" "0") }}
<li class="org" orgtype="{{ .orgtype }}" >
<a href="{{ .url }}" class="hiddenlink" title="{{ .name }}" style="background-image: url(/img/organisations/{{ .img }})" target="_blank"></a>
</li>
{{ end }}
</ul>
</div>
</div>
</div>
</section>