-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathretired-projects.html
99 lines (87 loc) · 3.45 KB
/
retired-projects.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
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
---
title: Retired Projects
subnav: retired-projects
layout: default
---
<link rel="stylesheet" href="{{ site.baseurl }}css/projects.css"></link>
<div class="intro">{{ site.data.data.projects.intro }}</div>
<ul class="toc" id="tags-toc"></ul>
<div class="projects">
{% for project in site.data.data.projects.project_cards %}
{% if project.status %}
<!-- FIXME: do we ever not have project status associated? -->
{% if project.status.tag != "retired" %}
{% continue %}
{% endif %}
{% endif %}
<div class="project">
<a class="anchor" name="{{ project.anchor }}"></a>
<div class="title-bar">
<h3><a href="#{{ project.anchor }}"> {{ project.name | size_upcase }} </a></h3>
<div class="link-list">
<div class="press-link">
{% capture press_projects %}{{ site.data.data.press.presses | map: 'project' | map: 'anchor' }}{% endcapture %}
{% if press_projects contains project.anchor %}
<a href="/press?filter={{ project.anchor }}">(press)</a>
{% endif %}
</div>
<div class="pubs-link">
{% capture pub_projects %}{{ site.data.data.publications.publications | map: 'project' | map: 'anchor' }}{% endcapture %}
{% if pub_projects contains project.anchor %}
<a href="/publications?filter={{ project.anchor }}">(publications)</a>
{% endif %}
</div>
<div class="web-link">
{% if project.site %}
<a href="{{ project.site }}">(website)</a>
{% endif %}
</div>
</div>
{% if project.status %}
<span class="status tooltip-wrapper"> {{ project.status.name }}
<div class="tooltip"> {{ project.status.description }} </div>
</span>
{% endif %}
</div>
{% if project.tags %}
<div class="tags">
{{ project.tags | map: 'name' | array_to_sentence_string }}
</div>
{% endif %}
{% if project.image %}
<img class="image" src="{{ project.image }}"></img>
{% endif %}
<div class="description"><p>
{{ project.description }}
</p></div>
<ul>
{% if project.products %}
<li>
<span class="header">Products: </span>
<span class="products">{{ project.products }}</span>
</li>
{% endif %}
{% if project.people %}
<br />
<li><div class="people">
<span class="header">People: </span>
{% assign personLinks = '' | split:':' %}
{% for person in project.people %}
{% if person == nil %}
{% capture personLink %}<span style="color: red;">NAME MISSING</span>{% endcapture %}
{% else %}
{% assign defaultLink = "people#" | append: person.anchor %}
{% capture personLink %}{% if person.link or person.anchor %}<a class={% if
person.internal %}"internal"{% else %}"external"{% endif %} href="{{ person.link | default: defaultLink}}">{% endif %}{{ person.name }}{% if person.link %}</a>{% endif %}{% endcapture %}
{% endif %}
{% assign personLinks = personLinks | push: personLink %}
{% endfor %}
{{ personLinks | array_to_sentence_string }}
</div></li>
{% endif %}
</ul>
</div>
{% endfor %}
</div>
<div id="action-flash" class="fade-out"></div>
<script src="{{ site.baseurl }}js/retired_project_tags.js"></script>