|
33 | 33 |
|
34 | 34 |
|
35 | 35 | {% comment %} |
36 | | -Below we cover the 3 phases of lesson transition towards the Carpentries Workbench: |
37 | | -- transition-step-1 (`transition_url` variable needed): we indicate that there |
38 | | -is a new version of the lesson that is available for testing, and that it will be deprecated in the future. |
39 | | -- transition-step-2 (`transition_url` and `transition_date` variables needed): we indicate that a new version of the lesson is avaiable with a deprecation date. |
40 | | -- transition-step-3 (`transition_url` variable needed): the lesson is fully deprecated, and a redirect is set up to the new URL |
| 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. |
41 | 44 | {% endcomment %} |
42 | 45 |
|
43 | 46 | {% elsif site.life_cycle == "transition-step-1" %} |
44 | | -{% include check_transition_variables.html need_transition_date = 'false' %} |
| 47 | +{% include check_transition_variables.html need_transition_date = 'true' %} |
45 | 48 |
|
46 | 49 | <div class="alert alert-warning life-cycle"> |
47 | | - A newer version of this lesson is being tested on The Carpentries Workbench: |
48 | | - <a href="{{ site.transition_url }}">{{ site.transition_url }}</a>. |
49 | | - The Jekyll version of this lesson will become deprecated in the near future. |
| 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> |
50 | 58 | </div> |
51 | 59 |
|
52 | 60 | {% elsif site.life_cycle == "transition-step-2" %} |
53 | 61 | {% include check_transition_variables.html need_transition_date = 'true' %} |
54 | 62 |
|
55 | | -<div class="alert alert-danger life-cycle"> |
56 | | - A newer version of this lesson is available from: |
57 | | - <a href="{{ site.transition_url }}">{{ site.transition_url }}</a>. |
58 | | - The Jekyll version of this lesson will become deprecated on |
59 | | - {{ site.transition_date }}. |
60 | | -</div> |
61 | | - |
62 | | -{% elsif site.life_cycle == "transition-step-3" %} |
63 | | -{% include check_transition_variables.html need_transition_date = 'false' %} |
64 | | - |
65 | | -<div class="alert alert-danger life-cycle"> |
66 | | - You are veiwing a deprecated version of this lesson. An updated version is |
67 | | - available from: |
68 | | - <a href="{{ site.transition_url }}">{{ site.transition_url }}</a>. |
| 63 | +<div class="alert alert-danger alert-dismissible life-cycle" 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> |
69 | 72 | </div> |
70 | 73 |
|
71 | 74 | {% endif %} |
|
0 commit comments