forked from mysociety/jkan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sources.html
24 lines (20 loc) · 1.01 KB
/
sources.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
title: Sources
layout: default
permalink: /sources/
---
<a href="{{ site.baseurl }}/add-organization/" class="btn btn-default pull-right admin-only" data-hook="add-organization-btn"><i class="fa fa-plus"></i> Add Organization</a>
{% for organization in site.organizations %}
{% assign dataset_count = site.datasets | where:"organization", organization.title | size %}
<div class="media">
<div class="media-body">
<h4 class="media-heading"> {% if organization.logo and organization.logo != empty %}
<a href="{{ site.baseurl }}{{ organization.url }}" class="organization-thumbnail">
<img class="media-object" src="{{ organization.logo }}" alt="{{ organization.title }}">
</a>
{% endif %}<a href="{{ site.baseurl }}{{ organization.url }}">{{ organization.title }}</a></h4>
<p>{{ organization.description }}</p>
<p><a href="{{ site.baseurl }}/datasets/?organization={{ organization.title | slugify }}">{{ dataset_count }} datasets</a></p>
</div>
</div>
{% endfor %}