File indexing completed on 2025-01-18 10:18:35
0001
0002 {% if site.life_cycle == "pre-alpha" %}
0003
0004 <div class="panel panel-default life-cycle">
0005 <div id="life-cycle" class="panel-body pre-alpha">
0006 This lesson is still being designed and assembled (Pre-Alpha version)
0007 </div>
0008 </div>
0009
0010
0011 {% elsif site.life_cycle == "alpha" %}
0012
0013 <div class="panel panel-default life-cycle">
0014 <div id="life-cycle" class="panel-body alpha">
0015 This lesson is in the early stages of development (Alpha version)
0016 </div>
0017 </div>
0018
0019
0020 {% elsif site.life_cycle == "beta" %}
0021
0022 <div class="panel panel-default life-cycle">
0023 <div id="life-cycle" class="panel-body beta">
0024 This lesson is being piloted (Beta version)
0025 </div>
0026 </div>
0027
0028 {% elsif site.life_cycle == "stable" %}
0029
0030 {% comment %}
0031 We do not do anything special for lessons in stable
0032 {% endcomment %}
0033
0034
0035 {% comment %}
0036 Below we cover the 2 phases of lesson transition towards the Carpentries Workbench:
0037 Variables needed:
0038 - transition_date_prebeta: the date of the prebeta stage
0039 - transition_date_beta: the date of the beta stage
0040 - transition_date_prerelease: the date of the prerelease stage
0041
0042 - transition-step-1: We notify that there is a snapshot of the lesson available for testing, and that it will supersede this version.
0043 - 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.
0044 {% endcomment %}
0045
0046 {% elsif site.life_cycle == "transition-step-1" %}
0047 {% include check_transition_variables.html need_transition_date = 'true' %}
0048
0049 <div id="life-cycle" class="alert alert-warning life-cycle panel-body">
0050 A snapshot of this lesson from {{ site.transition_date_prebeta }} is being tested on
0051 <a href='https://carpentries.github.io/workbench'>The Carpentries Workbench</a>:
0052 <a href="https://preview.carpentries.org/{{ repo_name }}">https://preview.carpentries.org/{{ repo_name }}</a>.
0053 <br>
0054 <b>The Workbench version of this lesson will become default on {{ site.transition_date_prerelease }}</b>.
0055 <button type="button" style="border: true; position: absolute; top: 10px; right: 27px; color: #383838;" class="close" data-dismiss="alert" aria-label="Close">
0056 <span aria-hidden="true" style='font-size:34pt'>×</span>
0057 </button>
0058 </div>
0059
0060 {% elsif site.life_cycle == "transition-step-2" %}
0061 {% include check_transition_variables.html need_transition_date = 'true' %}
0062
0063 <div id="life-cycle" class="alert alert-danger alert-dismissible life-cycle panel-body" role="alert">
0064 This lesson is a <b>snapshot from {{ site.transition_date_beta }}</b>.
0065 A newer version is being tested on <a href='https://carpentries.github.io/workbench'>The Carpentries Workbench</a>:
0066 <a href="https://preview.carpentries.org/{{ repo_name }}">https://preview.carpentries.org/{{ repo_name }}</a>.
0067 <br>
0068 <b>The Workbench version of this lesson will become default on {{ site.transition_date_prerelease }}</b>.
0069 <button type="button" style="border: true; position: absolute; top: 10px; right: 27px; color: #383838;" class="close" data-dismiss="alert" aria-label="Close">
0070 <span aria-hidden="true" style='font-size:34pt'>×</span>
0071 </button>
0072 </div>
0073
0074 {% endif %}
0075
0076
0077
0078 {% comment %}
0079 For Carpentries Lab lessons we add a banner about the review status
0080 {% endcomment %}
0081
0082 {% if site.carpentry == "lab" %}
0083 {% if site.doi contains "zenodo" %}{% assign listing=" on Zenodo" %}
0084 {% elsif site.doi contains "jose" %}{% assign listing=" in JOSE" %}
0085 {% else %}{% assign listing="none" %}
0086 {% endif %}
0087
0088 <div class="panel panel-default life-cycle">
0089 <div id="life-cycle" class="panel-body published">
0090 This lesson has passed peer-review! {% if site.doi != "" %}<a href="{{ site.doi }}">See the publication{{ listing }}.</a>{% endif %}
0091 </div>
0092 </div>
0093 {% endif %}