Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

header-notification.html 2.9 KB

You have to be logged in to leave a comment. Sign In
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
58
59
60
61
62
63
64
65
66
67
68
69
  1. <!-- START TRANSLATIONS NOTICES -->
  2. {% if currentLanguage != 'en' %}
  3. {% assign translation_notification_type = "true" %}
  4. <!-- Site policy translations notice -->
  5. {% if page.relativePath contains '/site-policy/' %}
  6. {% assign translation_notification = site.data.reusables.policies.translation %}
  7. <!-- Completed translations notice -->
  8. {% elsif languages[currentLanguage].wip != true %}
  9. {% assign translation_notification = site.data.ui.header.notices.localization_complete %}
  10. <!-- In-progress translations notice -->
  11. {% elsif languages[currentLanguage].wip %}
  12. {% assign translation_notification = site.data.ui.header.notices.localization_in_progress %}
  13. {% endif %}
  14. {% else %}
  15. <!-- User language redirect notice -->
  16. {% if languages[userLanguage].wip == false and userLanguage != 'en' %}
  17. {% assign user_language_redirect_notification_type = true %}
  18. {% endif %}
  19. {% endif %}
  20. <!-- END TRANSLATIONS NOTICES -->
  21. <!-- START RELEASE NOTICES -->
  22. <!-- Custom GitHub AE notice -->
  23. {% if currentVersion == "github-ae@latest" %}
  24. {% assign release_notification_type = "true" %}
  25. {% assign release_notification = site.data.ui.header.notices.ghae_silent_launch %}
  26. <!-- Release candidate notice -->
  27. {% elsif currentVersion == site.data.variables.release_candidate.version %}
  28. {% assign release_notification_type = "true" %}
  29. {% assign release_notification = allVersions[currentVersion].versionTitle | append: site.data.ui.header.notices.release_candidate %}
  30. {% endif %}
  31. <!-- END RELEASE NOTICES -->
  32. <!-- ONEOFF EARLY ACCESS NOTICE -->
  33. {% if page.hidden and page.relativePath contains "early-access/" %}
  34. {% assign early_access_notification_type = true %}
  35. {% assign early_access_notification = site.data.ui.header.notices.early_access %}
  36. {% endif %}
  37. <!-- END ONEOFF EARLY ACCESS NOTICE -->
  38. {% if translation_notification_type %}
  39. <div class="header-notifications text-center f5 color-bg-info color-text-primary py-4 px-6 translation_notice{% if release_notification_type %} border-bottom color-border-tertiary{% endif %}">
  40. {{ translation_notification }}
  41. </div>
  42. {% endif %}
  43. {% if user_language_redirect_notification_type %}
  44. <div class="header-notifications text-center f5 color-bg-info color-text-primary py-4 px-6 translation_notice">
  45. This article is also available in your language of choice. Click <a href="/{{userLanguage}}{{currentPathWithoutLanguage}}">here</a>
  46. </div>
  47. {% endif %}
  48. {% if release_notification_type %}
  49. <div class="header-notifications text-center f5 color-bg-info color-text-primary py-4 px-6 release_notice{% if early_access_notification_type %} border-bottom color-border-tertiary{% endif %}">
  50. {{ release_notification }}
  51. </div>
  52. {% endif %}
  53. {% if early_access_notification_type %}
  54. <div class="header-notifications text-center f5 color-bg-danger color-text-primary py-4 px-6 early_access">
  55. {{ early_access_notification }}
  56. </div>
  57. {% endif %}
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...