-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathproject-block.html
63 lines (63 loc) · 2.58 KB
/
project-block.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
{% for project in projects %}
<div class="col-md-6">
<div class="project">
<div class="header" data-title="{{ project.name }}">
{% if project.logo %}
<img class="project-logo {% if project.invert_logo_colors %}project-logo-inverted{% endif %}" src="{{ project.logo }}" alt="{{ project.name }}"/>
{% endif %}
{% if project.logo == null or project.force_name_display %}
<h3>{{ project.name }}</h3>
{% endif %}
<div class="references">
{% if project.web %}
<a href="{{ project.web }}" target="_blank"><i class="fa fa-globe"></i></a>
{% endif %}
{% if project.github %}
<a href="{{ project.github }}" target="_blank"><i class="fa fa-github"></i></a>
{% endif %}
{% if project.origin %}
<a href="{{ project.origin }}" target="_blank"><i class="fa fa-eye"></i></a>
{% endif %}
{% if project.stars %}
<a href="{{ project.github }}" target="_blank"><i class="fa fa-star"></i> {{ project.stars }}</a>
{% endif %}
</div>
</div>
<div class="clearfix"></div>
<div class="content">
{{ project.description }}
</div>
<div class="hidden modal-content-text">
{{ project }}
</div>
<div class="contributors">
{% assign contributors = project.contributors | size %}
{% if contributors > 0 %}
<ul>
{% for contributor in project.contributors %}
{% assign contr = site.data.team-members.members | where: "member", contributor| first %}
{% if contr.photo %}
<li title="{{ contr.name }}"><img src="{{ contr.photo }}" alt="{{ contr.name}}" ></li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
</div>
<div class="project_status">
{% if project.process %}
<img src="/resources/img/project_status_ongoing.png" >
{% else %}
<img src="/resources/img/project_status_done.png" >
{% endif %}
<div class="project-meta">
{% if project.impact %}
<p>Impact: {{ project.impact }}</p>
{% endif %}
{% if project.start_year && project.end_year %}
<p>{{ project.start_year }} - {{ project.end_year }}</p>
{% endif %}
</div>
</div>
</div>
</div>
{% endfor %}