System configuration for OpenStack Infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
3.8KB

  1. // Copyright (c) 2013-2015 OpenStack Foundation
  2. // //
  3. // // Licensed under the Apache License, Version 2.0 (the "License"); you may
  4. // // not use this file except in compliance with the License. You may obtain
  5. // // a copy of the License at
  6. // //
  7. // // http://www.apache.org/licenses/LICENSE-2.0
  8. // //
  9. // // Unless required by applicable law or agreed to in writing, software
  10. // // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  11. // // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  12. // // License for the specific language governing permissions and limitations
  13. // // under the License.
  14. 'use strict';
  15. function header(activeTabName) {
  16. var tabsName = [];
  17. var tabsLink = [];
  18. tabsName[0] = 'Status'; tabsLink[0] = '<%= @status_base_url %>';
  19. tabsName[1] = 'Zuul'; tabsLink[1] = '<%= @status_base_url %>/zuul/';
  20. tabsName[2] = 'Rechecks'; tabsLink[2] = '<%= @status_base_url %>/elastic-recheck/';
  21. tabsName[3] = 'Reviews'; tabsLink[3] = '<%= @status_base_url %>/reviews/';
  22. tabsName[4] = 'OpenStack-Health'; tabsLink[4] = '<%= @status_base_url %>/openstack-health/';
  23. document.write(
  24. '<div id="header" class="container">' +
  25. '<div class="span-5">' +
  26. ' <h1 id="logo"><a href="<%= @status_base_url %>"><%= @status_title %></a></h1>' +
  27. '</div>\n' +
  28. '<div class="span-19 last blueLine">' +
  29. '<div id="navigation" class="span-19">' +
  30. '<ul id="Menu1">\n');
  31. tabsName.forEach(function(value, index) {
  32. document.write('<li><a id="menu-' + tabsName[index] + '" href="' + tabsLink[index] + '"');
  33. if (tabsName[index] == activeTabName) {
  34. document.write(' class="current"');
  35. }
  36. document.write('>' + tabsName[index] + '</a></li>\n');
  37. });
  38. document.write(
  39. '</ul>' +
  40. '</div>' +
  41. '</div>' +
  42. '</div>');
  43. }
  44. function footer() {
  45. document.write(
  46. '<div class="container">' +
  47. '<hr>' +
  48. '<div id="footer">' +
  49. '<div class="span-4">' +
  50. '<h3>OpenStack</h3>' +
  51. '<ul>' +
  52. ' <li><a href="https://www.openstack.org/projects/">Projects</a></li>' +
  53. ' <li><a href="https://www.openstack.org/openstack-security/">OpenStack Security</a></li>' +
  54. ' <li><a href="https://www.openstack.org/projects/openstack-faq/">Common Questions</a></li>' +
  55. ' <li><a href="https://www.openstack.org/blog/">Blog</a></li>' +
  56. ' <li><a href="https://www.openstack.org/news/">News</a></li>' +
  57. '</ul>' +
  58. '</div>\n' +
  59. '<div class="span-4">' +
  60. '<h3>Community</h3>' +
  61. '<ul>' +
  62. ' <li><a href="https://www.openstack.org/community/">User Groups</a></li>' +
  63. ' <li><a href="https://www.openstack.org/events/">Events</a></li>' +
  64. ' <li><a href="https://www.openstack.org/jobs/">Jobs</a></li>' +
  65. ' <li><a href="https://www.openstack.org/foundation/companies/">Companies</a></li>' +
  66. ' <li><a href="https://docs.openstack.org/infra/manual/developers.html">Contribute</a></li>' +
  67. '</ul>' +
  68. '</div>\n' +
  69. '<div class="span-4">' +
  70. '<h3>Documentation</h3>' +
  71. '<ul>' +
  72. ' <li><a href="https://docs.openstack.org/">OpenStack Manuals</a></li>' +
  73. ' <li><a href="https://www.openstack.org/software/start/">Getting Started</a></li>' +
  74. ' <li><a href="https://developer.openstack.org">API Documentation</a></li>' +
  75. ' <li><a href="https://wiki.openstack.org/">Wiki</a></li>' +
  76. '</ul>' +
  77. '</div>\n' +
  78. '<div class="span-4 last">' +
  79. '<h3>Branding &amp; Legal</h3>' +
  80. '<ul>' +
  81. ' <li><a href="https://www.openstack.org/brand/">Logos &amp; Guidelines</a></li>' +
  82. ' <li><a href="https://www.openstack.org/brand/openstack-trademark-policy/">Trademark Policy</a></li>' +
  83. ' <li><a href="https://www.openstack.org/privacy/">Privacy Policy</a></li>' +
  84. ' <li><a href="https://wiki.openstack.org/CLA">OpenStack CLA</a></li>' +
  85. '</ul>' +
  86. '</div>' +
  87. '</div>' +
  88. '</div>');
  89. }