|
28 | 28 | {% elsif site.life_cycle == "stable" %} |
29 | 29 |
|
30 | 30 | {% comment %} |
31 | | -We don't do anything special for now |
| 31 | +We do not do anything special for lessons in stable |
32 | 32 | {% endcomment %} |
33 | 33 |
|
| 34 | + |
| 35 | +{% comment %} |
| 36 | +Below we cover the 2 phases of lesson transition towards the Carpentries Workbench: |
| 37 | +Variables needed: |
| 38 | + - transition_date_prebeta: the date of the prebeta stage |
| 39 | + - transition_date_beta: the date of the beta stage |
| 40 | + - transition_date_prerelease: the date of the prerelease stage |
| 41 | + |
| 42 | +- transition-step-1: We notify that there is a snapshot of the lesson available for testing, and that it will supersede this version. |
| 43 | +- 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. |
| 44 | +{% endcomment %} |
| 45 | + |
| 46 | +{% elsif site.life_cycle == "transition-step-1" %} |
| 47 | +{% include check_transition_variables.html need_transition_date = 'true' %} |
| 48 | + |
| 49 | +<div id="life-cycle" class="alert alert-warning life-cycle panel-body"> |
| 50 | + A snapshot of this lesson from {{ site.transition_date_prebeta }} is being tested on |
| 51 | + <a href='https://carpentries.github.io/workbench'>The Carpentries Workbench</a>: |
| 52 | + <a href="https://preview.carpentries.org/{{ repo_name }}">https://preview.carpentries.org/{{ repo_name }}</a>. |
| 53 | + <br> |
| 54 | + <b>The Workbench version of this lesson will become default on {{ site.transition_date_prerelease }}</b>. |
| 55 | + <button type="button" style="border: true; position: absolute; top: 10px; right: 27px; color: #383838;" class="close" data-dismiss="alert" aria-label="Close"> |
| 56 | + <span aria-hidden="true" style='font-size:34pt'>×</span> |
| 57 | + </button> |
| 58 | +</div> |
| 59 | + |
| 60 | +{% elsif site.life_cycle == "transition-step-2" %} |
| 61 | +{% include check_transition_variables.html need_transition_date = 'true' %} |
| 62 | + |
| 63 | +<div id="life-cycle" class="alert alert-danger alert-dismissible life-cycle panel-body" role="alert"> |
| 64 | + This lesson is a <b>snapshot from {{ site.transition_date_beta }}</b>. |
| 65 | + A newer version is being tested on <a href='https://carpentries.github.io/workbench'>The Carpentries Workbench</a>: |
| 66 | + <a href="https://preview.carpentries.org/{{ repo_name }}">https://preview.carpentries.org/{{ repo_name }}</a>. |
| 67 | + <br> |
| 68 | + <b>The Workbench version of this lesson will become default on {{ site.transition_date_prerelease }}</b>. |
| 69 | + <button type="button" style="border: true; position: absolute; top: 10px; right: 27px; color: #383838;" class="close" data-dismiss="alert" aria-label="Close"> |
| 70 | + <span aria-hidden="true" style='font-size:34pt'>×</span> |
| 71 | + </button> |
| 72 | +</div> |
| 73 | + |
| 74 | +{% endif %} |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | +{% comment %} |
| 79 | +For Carpentries Lab lessons we add a banner about the review status |
| 80 | +{% endcomment %} |
| 81 | + |
| 82 | +{% if site.carpentry == "lab" %} |
| 83 | +{% if site.doi contains "zenodo" %}{% assign listing=" on Zenodo" %} |
| 84 | +{% elsif site.doi contains "jose" %}{% assign listing=" in JOSE" %} |
| 85 | +{% else %}{% assign listing="none" %} |
| 86 | +{% endif %} |
| 87 | + |
| 88 | +<div class="panel panel-default life-cycle"> |
| 89 | + <div id="life-cycle" class="panel-body published"> |
| 90 | + This lesson has passed peer-review! {% if site.doi != "" %}<a href="{{ site.doi }}">See the publication{{ listing }}.</a>{% endif %} |
| 91 | + </div> |
| 92 | +</div> |
34 | 93 | {% endif %} |
0 commit comments