forked from JJediny/jkan
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdatasets.html
38 lines (33 loc) · 1.34 KB
/
datasets.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
title: Datasets
layout: default
permalink: /datasets/
---
{% include breadcrumbs.html %}
<div class="row">
<div class="col-sm-4">
<h3>Categories</h3>
<div class="list-group" data-component="categories-filter" data-show="5"></div>
<h3>Organizations</h3>
<div class="list-group" data-component="organizations-filter" data-show="15"></div>
</div>
<div class="col-sm-8" data-component="datasets-list">
<h3 class="datasets-count" data-hook="datasets-count"></h3>
<a href="{{ site.baseurl }}/add-dataset/" class="btn btn-default pull-right admin-only" data-hook="add-dataset-btn"><i class="fa fa-plus"></i> Add Dataset</a>
<input type="text" data-hook="search-query" placeholder="Search..." class="form-control">
<div data-hook="datasets-items"></div>
</div>
</div>
<script type="text/template" data-hook="tmpl-list-group-item">
<a href="<%= data.url %>" class="list-group-item<% if (data.selected) { %> active <% } %>">
<span class="list-group-item-truncate"><%= data.title %></span>
<span class="badge"><%= data.count %></span>
<% if (data.selected) { %><span class="badge"><i class="fa fa-times"></i></span><% } %>
</a>
</script>
<script type="text/template" data-hook="tmpl-dataset-item">
<dataset>
<h3><a href="<%= data.url %>"><%= data.title %></a></h3>
<%= data.notes %>
</dataset>
</script>