forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header-notification.html
57 lines (47 loc) · 2.31 KB
/
header-notification.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!-- START TRANSLATIONS NOTICES -->
{% if currentLanguage != 'en' %}
{% assign translation_notification_type = "true" %}
<!-- Site policy translations notice -->
{% if page.relativePath contains '/site-policy/' %}
{% assign translation_notification = site.data.reusables.policies.translation %}
<!-- Completed translations notice -->
{% elsif languages[currentLanguage].wip != true %}
{% assign translation_notification = site.data.ui.header.notices.localization_complete %}
<!-- In-progress translations notice -->
{% elsif languages[currentLanguage].wip %}
{% assign translation_notification = site.data.ui.header.notices.localization_in_progress %}
{% endif %}
{% endif %}
<!-- END TRANSLATIONS NOTICES -->
<!-- START RELEASE NOTICES -->
<!-- Custom GitHub AE notice -->
{% if currentVersion == "github-ae@latest" %}
{% assign release_notification_type = "true" %}
{% assign release_notification = site.data.ui.header.notices.ghae_silent_launch %}
<!-- Release candidate notice -->
{% elsif currentVersion == site.data.variables.release_candidate.version %}
{% assign release_notification_type = "true" %}
{% assign release_notification = allVersions[currentVersion].versionTitle | append: site.data.ui.header.notices.release_candidate %}
{% endif %}
<!-- END RELEASE NOTICES -->
<!-- ONEOFF EARLY ACCESS NOTICE -->
{% if page.hidden and page.relativePath contains "early-access/" %}
{% assign early_access_notification_type = true %}
{% assign early_access_notification = site.data.ui.header.notices.early_access %}
{% endif %}
<!-- END ONEOFF EARLY ACCESS NOTICE -->
{% if translation_notification_type %}
<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 %}">
{{ translation_notification }}
</div>
{% endif %}
{% if release_notification_type %}
<div class="header-notifications text-center f5 bg-blue-1 text-gray-dark py-4 px-6 release_notice{% if early_access_notification_type %} border-bottom border-black-fade{% endif %}">
{{ release_notification }}
</div>
{% endif %}
{% if early_access_notification_type %}
<div class="header-notifications text-center f5 bg-red-1 text-gray-dark py-4 px-6 early_access">
{{ early_access_notification }}
</div>
{% endif %}