generated from carpentries/workshop-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlife_cycle.html
93 lines (70 loc) · 3.6 KB
/
life_cycle.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
{% if site.life_cycle == "pre-alpha" %}
<div class="panel panel-default life-cycle">
<div id="life-cycle" class="panel-body pre-alpha">
This lesson is still being designed and assembled (Pre-Alpha version)
</div>
</div>
{% elsif site.life_cycle == "alpha" %}
<div class="panel panel-default life-cycle">
<div id="life-cycle" class="panel-body alpha">
This lesson is in the early stages of development (Alpha version)
</div>
</div>
{% elsif site.life_cycle == "beta" %}
<div class="panel panel-default life-cycle">
<div id="life-cycle" class="panel-body beta">
This lesson is being piloted (Beta version)
</div>
</div>
{% elsif site.life_cycle == "stable" %}
{% comment %}
We do not do anything special for lessons in stable
{% endcomment %}
{% comment %}
Below we cover the 2 phases of lesson transition towards the Carpentries Workbench:
Variables needed:
- transition_date_prebeta: the date of the prebeta stage
- transition_date_beta: the date of the beta stage
- transition_date_prerelease: the date of the prerelease stage
- transition-step-1: We notify that there is a snapshot of the lesson available for testing, and that it will supersede this version.
- transition-step-2 We indicate that this version of the lesson is a snapshot and a new version of the lesson is avaiable and will supersede this version at a given date.
{% endcomment %}
{% elsif site.life_cycle == "transition-step-1" %}
{% include check_transition_variables.html need_transition_date = 'true' %}
<div class="alert alert-warning life-cycle">
A snapshot of this lesson from {{ site.transition_date_prebeta }} is being tested on
<a href='https://carpentries.github.io/workbench'>The Carpentries Workbench</a>:
<a href="https://preview.carpentries.org/{{ repo_name }}">https://preview.carpentries.org/{{ repo_name }}</a>.
<br>
<b>The Workbench version of this lesson will become default on {{ site.transition_date_prerelease }}</b>.
<button type="button" style="border: true; position: absolute; top: 10px; right: 27px; color: #383838;" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true" style='font-size:34pt'>×</span>
</button>
</div>
{% elsif site.life_cycle == "transition-step-2" %}
{% include check_transition_variables.html need_transition_date = 'true' %}
<div class="alert alert-danger alert-dismissible life-cycle" role="alert">
This lesson is a <b>snapshot from {{ site.transition_date_beta }}</b>.
A newer version is being tested on <a href='https://carpentries.github.io/workbench'>The Carpentries Workbench</a>:
<a href="https://preview.carpentries.org/{{ repo_name }}">https://preview.carpentries.org/{{ repo_name }}</a>.
<br>
<b>The Workbench version of this lesson will become default on {{ site.transition_date_prerelease }}</b>.
<button type="button" style="border: true; position: absolute; top: 10px; right: 27px; color: #383838;" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true" style='font-size:34pt'>×</span>
</button>
</div>
{% endif %}
{% comment %}
For Carpentries Lab lessons we add a banner about the review status
{% endcomment %}
{% if site.carpentry == "lab" %}
{% if site.doi contains "zenodo" %}{% assign listing=" on Zenodo" %}
{% elsif site.doi contains "jose" %}{% assign listing=" in JOSE" %}
{% else %}{% assign listing="none" %}
{% endif %}
<div class="panel panel-default life-cycle">
<div id="life-cycle" class="panel-body published">
This lesson has passed peer-review! {% if site.doi != "" %}<a href="{{ site.doi }}">See the publication{{ listing }}.</a>{% endif %}
</div>
</div>
{% endif %}