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.

common.js.erb 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // Copyright 2013 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. function header(activeTabName) {
  15. tabsName = new Array();
  16. tabsLink = new Array();
  17. tabsName[0] = 'Status'; tabsLink[0] = '<%= @status_base_url %>';
  18. tabsName[1] = 'Zuul'; tabsLink[1] = '<%= @status_base_url %>/zuul/';
  19. tabsName[2] = 'Rechecks'; tabsLink[2] = '<%= @status_base_url %>/elastic-recheck/';
  20. tabsName[3] = 'Release'; tabsLink[3] = '<%= @status_base_url %>/release/';
  21. tabsName[4] = 'Reviews'; tabsLink[4] = '<%= @status_base_url %>/reviews/';
  22. tabsName[5] = 'Bugday'; tabsLink[5] = '<%= @status_base_url %>/bugday/';
  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. for (var i = 0; i < tabsName.length; i++) {
  32. document.write('<li><a id="menu-'+tabsName[i]+'" href="'+tabsLink[i]+'"')
  33. if (tabsName[i] == activeTabName) {
  34. document.write(' class="current"');
  35. }
  36. document.write('>'+tabsName[i]+'</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="http://www.openstack.org/projects/">Projects</a></li>'+
  53. ' <li><a href="http://www.openstack.org/openstack-security/">OpenStack Security</a></li>'+
  54. ' <li><a href="http://www.openstack.org/projects/openstack-faq/">Common Questions</a></li>'+
  55. ' <li><a href="http://www.openstack.org/blog/">Blog</a></li>'+
  56. '</ul>'+
  57. '</div>\n'+
  58. '<div class="span-4">'+
  59. '<h3>Community</h3>'+
  60. '<ul>'+
  61. ' <li><a href="http://www.openstack.org/community/">User Groups</a></li>'+
  62. ' <li><a href="http://www.openstack.org/events/">Events</a></li>'+
  63. ' <li><a href="http://www.openstack.org/jobs/">Jobs</a></li>'+
  64. ' <li><a href="http://www.openstack.org/companies/">Companies</a></li>'+
  65. ' <li><a href="http://wiki.openstack.org/HowToContribute">Contribute</a></li>'+
  66. '</ul>'+
  67. '</div>\n'+
  68. '<div class="span-4">'+
  69. '<h3>Documentation</h3>'+
  70. '<ul>'+
  71. ' <li><a href="http://docs.openstack.org/">OpenStack Manuals</a></li>'+
  72. ' <li><a href="http://docs.openstack.org/diablo/openstack-compute/starter/content/">Getting Started</a></li>'+
  73. ' <li><a href="http://wiki.openstack.org/">Wiki</a></li>'+
  74. '</ul>'+
  75. '</div>\n'+
  76. '<div class="span-4 last">'+
  77. '<h3>Branding &amp; Legal</h3>'+
  78. '<ul>'+
  79. ' <li><a href="http://www.openstack.org/brand/">Logos &amp; Guidelines</a></li>'+
  80. ' <li><a href="http://www.openstack.org/brand/openstack-trademark-policy/">Trademark Policy</a></li>'+
  81. ' <li><a href="http://www.openstack.org/privacy/">Privacy Policy</a></li>'+
  82. ' <li><a href="http://wiki.openstack.org/CLA">OpenStack CLA</a></li>'+
  83. '</ul>'+
  84. '</div>'+
  85. '</div>'+
  86. '</div>')
  87. }