|
| 1 | +<!-- START TRANSLATIONS NOTICES --> |
| 2 | +<!-- Site policy translations notice --> |
| 3 | +{% if currentLanguage != 'en' and page.relativePath contains '/site-policy/' %} |
| 4 | + {% assign translation_notification_type = "true" %} |
| 5 | + {% assign translation_notification = site.data.reusables.policies.translation %} |
| 6 | + |
| 7 | +<!-- Completed translations notice --> |
| 8 | +{% elsif currentLanguage != 'en' && !languages[currentLanguage].wip %} |
| 9 | + {% assign translation_notification_type = "true" %} |
| 10 | + {% assign translation_notification = site.data.ui.header.notices.localization_complete %} |
| 11 | + |
| 12 | +<!-- In-progress translations notice --> |
| 13 | +{% elsif currentLanguage != 'en' && languages[currentLanguage].wip %} |
| 14 | + {% assign translation_notification_type = "true" %} |
| 15 | + {% assign translation_notification = site.data.ui.header.notices.localization_in_progress %} |
| 16 | +{% endif %} |
| 17 | +<!-- END TRANSLATIONS NOTICES --> |
| 18 | + |
| 19 | +<!-- START RELEASE NOTICES --> |
| 20 | +<!-- Custom GitHub AE notice --> |
1 | 21 | {% if currentVersion == "github-ae@latest" %} |
2 | | - <div class="header-notifications text-center f5 bg-blue-1 text-gray-dark py-4 px-6 limited_release {% if header_notification %}border-bottom{% endif %}"> |
3 | | - {% data ui.header.notices.ghae_silent_launch %} |
| 22 | + {% assign release_notification_type = "true" %} |
| 23 | + {% assign release_notification = site.data.ui.header.notices.ghae_silent_launch %} |
| 24 | +{% endif %} |
| 25 | +<!-- END RELEASE NOTICES --> |
| 26 | + |
| 27 | +{% if translation_notification_type %} |
| 28 | + <div class="header-notifications text-center f5 bg-blue-1 text-gray-dark py-4 px-6 translation_notice{% if release_notification_type %} border-bottom border-black-fade{% endif %}"> |
| 29 | + {{ translation_notification }} |
4 | 30 | </div> |
5 | 31 | {% endif %} |
6 | 32 |
|
7 | | -{% if header_notification %} |
8 | | - <div class="header-notifications text-center f5 bg-blue-1 text-gray-dark py-4 px-6 {{ header_notification_type }}"> |
9 | | - {{ header_notification }} |
| 33 | +{% if release_notification_type %} |
| 34 | + <div class="header-notifications text-center f5 bg-blue-1 text-gray-dark py-4 px-6 release_notice"> |
| 35 | + {{ release_notification }} |
10 | 36 | </div> |
11 | 37 | {% endif %} |
0 commit comments