|
28 | 28 | {% elsif site.life_cycle == "stable" %} |
29 | 29 |
|
30 | 30 | {% comment %} |
31 | | -We do not do anything special unless this is a Carpentries Lab lesson |
| 31 | +We do not do anything special for lessons in stable |
| 32 | +{% endcomment %} |
| 33 | + |
| 34 | + |
| 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 |
| 41 | +{% endcomment %} |
| 42 | + |
| 43 | +{% elsif site.life_cycle == "transition-step-1" %} |
| 44 | +{% include check_transition_variables.html need_transition_date = 'false' %} |
| 45 | + |
| 46 | +<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 | +</div> |
| 51 | + |
| 52 | +{% elsif site.life_cycle == "transition-step-2" %} |
| 53 | +{% include check_transition_variables.html need_transition_date = 'true' %} |
| 54 | + |
| 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>. |
| 69 | +</div> |
| 70 | + |
| 71 | +{% endif %} |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | +{% comment %} |
| 76 | +For Carpentries Lab lessons we add a banner about the review status |
32 | 77 | {% endcomment %} |
33 | 78 |
|
34 | 79 | {% if site.carpentry == "lab" %} |
|
43 | 88 | </div> |
44 | 89 | </div> |
45 | 90 | {% endif %} |
46 | | -{% endif %} |
|
0 commit comments