forked from ReproducibiliTea-org/reproducibiliTea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jc-overview.html
68 lines (65 loc) · 2.65 KB
/
jc-overview.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
---
<html>
<head>
<title>Journal club overview</title>
<link rel="stylesheet" href="assets/css/jc-overview.css"/>
<script type="text/javascript" src="assets/js/jc-overview.js"></script>
{% assign fields = 'title, host-organisation, contact, address, country, geolocation, host-org-url, osf, zotero, website, twitter, signup, organisers' %}
{% assign requiredFields = 'title, host-organisation, organisers, contact, address, country, geolocation' %}
{% assign fieldList = fields | split: ', ' %}
</head>
<body>
<h1>Journal Club Overview</h1>
<p><em>Note:</em> There are lots of journal clubs (yay) which means the sorting can be pretty slow (boo). But it does work.</p>
<table>
<thead>
<tr>
{% for f in fieldList %}
<th>{{f}} <a onclick="sortTable('{{f}}')">▲</a><a onclick="sortTable('{{f}}', false)">▼</a></th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for jc in site.journal-clubs %}
<tr>
{% for f in fieldList %}
{% if jc[f] %}
{% if jc[f].first %}
<td data-field-name="{{f}}">
<ul>
{% for i in jc[f] %}
<li title="{{i}}">{{i | truncate: 15, "..."}}</li>
{% endfor %}
</ul>
</td>
{% else %}
<td data-field-name="{{f}}" title="{{jc[f]}}">{{jc[f] | truncate: 15, "..."}}</td>
{% endif %}
{% elsif requiredFields contains f %}
<td data-field-name="{{f}}" class="empty required"></td>
{% else %}
<td data-field-name="{{f}}" class="empty"></td>
{% endif %}
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
---
<h2>Email addresses (BCC is your friend)</h2>
<textarea>{% for jc in site.journal-clubs %}{% if jc.contact %}{{jc.contact}}{% unless forloop.last == true %}; {% endunless %}{% endif %}{% endfor %}</textarea>
<h3>Secondary contacts</h3>
<textarea>{% for jc in site.journal-clubs %}{% if jc.additional-contact %}{{jc.additional-contact | join: "; "}}{% unless forloop.last == true %}; {% endunless %}{% endif %}{% endfor %}</textarea>
---
<h2>Geolookup</h2>
<table>
{% assign jcs = site.journal-clubs | sort_natural: "title" %}
{% for jc in jcs %}
{% unless jc.geolocation %}
<tr>
<td>{{ jc.title }}</td>
<td>{% include jc-lookup.html jc=jc %}</td></tr>{% endunless %}{% endfor %}
</table>
</body>
</html>