This repository has been archived by the owner on Feb 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
portfolio_grid.html
105 lines (102 loc) · 6.63 KB
/
portfolio_grid.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
100
101
102
103
104
105
<!-- Portfolio Grid Section -->
<section id="portfolio" class="bg-light-gray">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="section-heading">{{site.data[site.language].events}}</h2>
<h3 class="section-subheading text-muted">What to expect?</h3>
<p>Please click on the event titles to see more details, like learning objective(s), prerequisites, etc.</p>
<h3 class="section-subheading text-muted">Time and location</h3>
<p><strong>Wednesdays, 16:00 to 18:00</strong>, unless otherwise stated. All our events are held in the <strong><a href="https://www.openstreetmap.org/way/27870998">Grunwald-Haus</a></strong>: north-west of TIB's TechNat building, ground floor, right besides the entrance. You may knock on the window ;-)</p>
</div>
</div>
<hr>
<div class="col-lg-12">
<!--current events-->
<ul class='events'>
{% assign isEvent = 0 %}
{% for post in site.posts reversed %}
{% capture nowyear %}{{'now' | date: '%Y'}}{% endcapture %}
{% capture postyear %}{{post.date | date: '%Y'}}{% endcapture %}
{% capture nowday %}{{'now' | date: '%j'}}{% endcapture %}
{% capture postday %}{{post.date | date: '%j'}}{% endcapture %}
{% assign postday = postday | plus: 0 %}
{% assign nowday = nowday | minus: 2 %}
{% if postyear > nowyear or postday >= nowday and postyear >= nowyear %}
{% assign isEvent = 1 %}
<li>
<span class="date">{{ post.date | date: "%-d. %B %Y"}}</span> — <a class='eventTitle' href="{{ post.link }}">{{ post.title }}</a>
<div class='eventSub'>{{ post.text }}</div>
</li>
{% endif %}
{% endfor %}
{% if isEvent == 0 %}
<a class='eventTitle' href="{{ site.github.issues_url }}">{{site.data[site.language].eventPlaceholder}}</a>
{% else %}
{% endif %}
</ul>
<hr>
<div class="row">
<div class="col-lg-12 text-center">
<h3 class="section-subheading text-muted">Languages of the events // Sprache der Veranstaltungen</h3>
<p>Both English and German speakers are present at our meetings. Event suggestions in both languages are welcome, see below! // Bei uns wird sowohl Englisch, als auch Deutsch gesprochen. Themenvorschläge sind in beiden Sprachen willkommen, siehe unten!</p>
<div class="row">
<div class="col-lg-12 text-center">
<a href="{{ site.github.issues_url }}" class="btn btn-xl eventSuggest">{{site.data[site.language].suggestEvent}}</a>
<a href="http://mozillascience.github.io/studyGroupHandbook/event-types.html#workalong" class="btn btn-xl eventSuggest">{{site.data[site.language].leadership}}</a>
</div>
</div>
<!--past events-->
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<div class="panel panel-default">
<div class="panel-heading text-center" role="tab" id="headingOne">
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="false" aria-controls="collapseOne" class='btn btn-xl'>
{{site.data[site.language].pastEvents}}
</a>
</div>
<div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">
<ul class='events'>
{% assign isEvent = 0 %}
{% for post in site.posts reversed %}
{% capture nowyear %}{{'now' | date: '%Y'}}{% endcapture %}
{% capture postyear %}{{post.date | date: '%Y'}}{% endcapture %}
{% capture nowday %}{{'now' | date: '%j'}}{% endcapture %}
{% capture postday %}{{post.date | date: '%j'}}{% endcapture %}
{% assign postday = postday | plus: 0 %}
{% assign nowday = nowday | minus: 2 %}
{% if postyear < nowyear or postday < nowday and postyear == nowyear %}
<li>
<span class="date">{{ post.date | date: "%-d. %B %Y"}}</span> — <a class='eventTitle' href="{{ post.link }}">{{ post.title }}</a>
<div class='eventSub'>{{ post.text }}</div>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
</div>
{% if site.calendar_on %}
<div class="col-lg-6">
{% else %}
<div class="col-lg-12">
{% endif %}
<h3 class="section-heading eventInstructions">{{site.data[site.language].notification}}</h3>
<h3 class="section-subheading text-muted eventSubinstructions">{{site.data[site.language].watching | replace: '%GITHUB_REPO_URL%', site.github.repository_url }}</h3>
<figure>
<img src="img/watch-repo.gif"></img>
<figcaption>{{site.data[site.language].watchingCaption | replace: '%GITHUB_REPO_URL%', site.github.repository_url}}</figcaption>
</figure>
</div>
{% if site.calendar_on %}
<div class="col-lg-6">
<h3 class="section-heading eventInstructions">{{site.data[site.language].calendar}}</h3>
<h3 class="section-subheading text-muted eventSubinstructions">{{site.data[site.language].calendarSubheading | replace: '%CALENDAR_EMBED_URL%', site.calendar_embed_url}}</h3>
<h3 class="section-subheading text-muted eventSubinstructions">{{site.data[site.language].googleCalendar | replace: '%CALENDAR_EMBED_URL%', site.calendar_embed_url}}</h3>
<h3 class="section-subheading text-muted eventSubinstructions">{{site.data[site.language].iCal | replace: '%CALENDAR_ICAL_URL%', site.calendar_ical_url}}</h3>
</div>
{% endif %}
</div>
</section>