-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservice.html
More file actions
145 lines (124 loc) · 5.18 KB
/
service.html
File metadata and controls
145 lines (124 loc) · 5.18 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
---
layout: default
title: Service
---
<h3>Service to University</h3>
<table class="table-hover table-dates compact">
<tbody>
{% assign prev = 'none' -%}
{% assign items = site.data.service.university | sort: 'key' | reverse -%}
{%- for item in items -%}
{%- capture curr %}{{ item.end | date: "%Y" }}{% endcapture -%}
{%- capture from %}{{ item.beg | date: "%Y" }}{% endcapture -%}
{%- if curr == '1969' or item.end == 'Now' %}{% capture curr %}{{ item.end }}{% endcapture %}{% endif -%}
{%- if from == '1969' %}{% capture from %}{{ item.beg }}{% endcapture %}{% endif -%}
{%- capture beg %}{{ item.beg | date: "%b %Y" }}{% endcapture -%}
{%- capture end %}{{ item.end | date: "%b %Y" }}{% endcapture -%}
{%- if beg == 'Dec 1969' %}{% capture beg %}{{ from }}{% endcapture %}{% endif -%}
{%- if end == 'Dec 1969' or item.end == 'Now' %}{% capture end %}{{ curr }}{% endcapture %}{% endif -%}
{% if curr != prev -%}
<tr class="spacer"><td colspan="2"></td></tr>
{%- assign prev = curr -%}
{%- endif %}
<tr>
<th>
{% if item.beg %}{{ from }} – {% endif -%}
{%- if item.end %}{{ curr }}{% endif %}
</th>
<td>
{{ item.ref }},
<span class="text-muted">
{% if item.url -%}
<a href="{{ item.url }}" class="text-muted"><b>{{ item.org }}</b></a>,
{%- else -%}
{{ item.org }},
{%- endif %}
{% if item.loc %}{{ item.loc }}, {% endif %}
{% if item.beg %}{{ beg }} – {% endif -%}
{% if item.end %}{{ end }}{% endif %}.
</span>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<h3>Service to Profession</h3>
<table class="table-hover table-dates compact">
<tbody>
{% assign prev = 'none' -%}
{% assign items = site.data.service.professional | sort: 'key' | reverse -%}
{%- for item in items -%}
{%- capture curr %}{{ item.end | date: "%Y" }}{% endcapture -%}
{%- capture from %}{{ item.beg | date: "%Y" }}{% endcapture -%}
{%- if curr == '1969' or item.end == 'Now' %}{% capture curr %}{{ item.end }}{% endcapture %}{% endif -%}
{%- if from == '1969' %}{% capture from %}{{ item.beg }}{% endcapture %}{% endif -%}
{% if curr != prev -%}
<tr class="spacer"><td colspan="2"></td></tr>
{%- assign prev = curr -%}
{%- endif %}
<tr>
<th>
{% if item.beg %}{% unless curr == from %}{{ from }} – {% endunless %}{% endif -%}
{%- if item.end %}{{ curr }}{% endif %}
</th>
<td>
{%- capture curr %}{{ item.end | date: "%b %Y" }}{% endcapture -%}
{%- capture from %}{{ item.beg | date: "%b %Y" }}{% endcapture -%}
{%- if curr == 'Dec 1969' %}{% capture curr %}{{ item.end }}{% endcapture %}{% endif -%}
{%- if from == 'Dec 1969' %}{% capture from %}{{ item.beg }}{% endcapture %}{% endif -%}
{{ item.ref }},
<span class="text-muted">
{% if item.url -%}
<a href="{{ item.url }}" class="text-muted"><b>{{ item.org }}</b></a>,
{%- else -%}
{{ item.org }},
{%- endif %}
{% if item.loc %}{{ item.loc }}, {% endif %}
{% if item.beg %}{% unless curr == from %}{{ from }} – {% endunless %}{% endif -%}
{% if item.end != 'Now' %}{{ curr }}{% else %}{{ item.end }}{% endif %}.
</span>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<h3>Service to Community</h3>
<table class="table-hover table-dates compact">
<tbody>
{% assign prev = 'none' -%}
{% assign items = site.data.service.community | sort: 'key' | reverse -%}
{%- for item in items -%}
{%- capture curr %}{{ item.end | date: "%Y" }}{% endcapture -%}
{%- capture from %}{{ item.beg | date: "%Y" }}{% endcapture -%}
{%- if curr == '1969' or item.end == 'Now' %}{% capture curr %}{{ item.end }}{% endcapture %}{% endif -%}
{%- if from == '1969' %}{% capture from %}{{ item.beg }}{% endcapture %}{% endif -%}
{% if curr != prev -%}
<tr class="spacer"><td colspan="2"></td></tr>
{%- assign prev = curr -%}
{%- endif %}
<tr>
<th>
{% if item.beg %}{% unless curr == from %}{{ from }} – {% endunless %}{% endif -%}
{%- if item.end %}{{ curr }}{% endif %}
</th>
<td>
{%- capture curr %}{{ item.end | date: "%b %Y" }}{% endcapture -%}
{%- capture from %}{{ item.beg | date: "%b %Y" }}{% endcapture -%}
{%- if curr == 'Dec 1969' %}{% capture curr %}{{ item.end }}{% endcapture %}{% endif -%}
{%- if from == 'Dec 1969' %}{% capture from %}{{ item.beg }}{% endcapture %}{% endif -%}
{{ item.ref }},
<span class="text-muted">
{% if item.url -%}
<a href="{{ item.url }}" class="text-muted"><b>{{ item.org }}</b></a>,
{%- else -%}
{{ item.org }},
{%- endif %}
{% if item.loc %}{{ item.loc }}, {% endif %}
{% if item.beg %}{% unless curr == from %}{{ from }} – {% endunless %}{% endif -%}
{% if item.end != 'Now' %}{{ curr }}{% else %}{{ item.end }}{% endif %}.
</span>
</td>
</tr>
{% endfor %}
</tbody>
</table>