1 {% extends "basic/layout.html" %} 2 3 {% set theme_css_files = [] %} 4 {% if theme_bootstrap_version == "3" %} 5 {% set bootstrap_version, bootstrap_additional_css, navbar_version = "3.3.6", "theme", "" %} 6 {% set bs_span_prefix = "col-md-" %} 7 {% else %} 8 {% set bootstrap_version, bootstrap_additional_css, navbar_version = "2.3.2", "responsive", "-2" %} 9 {% set bs_span_prefix = "span" %} 10 {% endif %} 11 12 {% set theme_css_files = theme_css_files + [ 13 '_static/bootstrap-' + bootstrap_version + '/css/bootstrap.min.css', 14 '_static/bootstrap-sphinx.css', 15 '_static/esnet/esnet.css' 16 ] 17 %} 18 19 {% if not bootswatch_css_custom %} 20 {% set bootswatch_css_custom = [] %} 21 {% endif %} 22 {% set css_files = css_files + theme_css_files + bootswatch_css_custom %} 23 24 {% set script_files = script_files + [ 25 '_static/js/jquery-1.11.0.min.js', 26 '_static/js/jquery-fix.js', 27 '_static/bootstrap-' + bootstrap_version + '/js/bootstrap.min.js', 28 '_static/bootstrap-sphinx.js' 29 ] 30 %} 31 32 {%- set render_sidebar = (not embedded) and (not theme_nosidebar|tobool) and sidebars %} 33 {# set render_sidebar = True %} 34 {%- set sidebars = ['localtoc.html', 'sourcelink.html', 'searchbox.html'] #} 35 {%- set bs_content_width = render_sidebar and "9" or "9"%} 36 37 {%- block doctype -%} 38 <!DOCTYPE html> 39 {%- endblock %} 40 41 {# Sidebar: Rework into our Bootstrap nav section. #} 42 {% macro navBar() %} 43 {% include "navbar" + navbar_version + ".html" %} 44 {% endmacro %} 45 46 {% if theme_bootstrap_version == "3" %} 47 {%- macro bsidebar() %} 48 {%- if render_sidebar %} 49 <div class="{{ bs_span_prefix }}3"> 50 <div id="sidebar" class="bs-sidenav" role="complementary"> 51 {%- for sidebartemplate in sidebars %} 52 {%- include sidebartemplate %} 53 {%- endfor %} 54 </div> 55 </div> 56 {%- else %} 57 <div class="{{ bs_span_prefix }}1"></div> 58 {%- endif %} 59 {%- endmacro %} 60 {% else %} 61 {%- macro bsidebar() %} 62 {%- if render_sidebar %} 63 <div class="{{ bs_span_prefix }}3"> 64 <div id="sidebar" class="bs-sidenav well" data-spy="affix"> 65 {%- for sidebartemplate in sidebars %} 66 {%- include sidebartemplate %} 67 {%- endfor %} 68 </div> 69 </div> 70 {%- endif %} 71 {%- endmacro %} 72 {% endif %} 73 74 {%- block extrahead %} 75 <meta charset='utf-8'> 76 <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'> 77 <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'> 78 <meta name="apple-mobile-web-app-capable" content="yes"> 79 {% endblock %} 80 81 {# Silence the sidebar's, relbar's #} 82 {% block header %}{% endblock %} 83 {% block relbar1 %}{% endblock %} 84 {% block relbar2 %}{% endblock %} 85 {% block sidebarsourcelink %}{% endblock %} 86 87 {%- block content %} 88 {{ navBar() }} 89 <div class="container"> 90 <div class="row"> 91 {%- block sidebar1 %}{{ bsidebar() }}{% endblock %} 92 <div class="{{ bs_span_prefix }}{{ bs_content_width }}"> 93 {% block body %}{% endblock %} 94 </div> 95 {% block sidebar2 %} {# possible location for sidebar #} {% endblock %} 96 </div> 97 </div> 98 {%- endblock %} 99 100 {%- block footer %} 101 <footer class="footer"> 102 <div class="container"> 103 <div class="row"> 104 <div class="col-md-1"> 105 <a href="http://www.es.net/"><img src="_static/ESnet_Final_Logos_All_Blue_Circle_Stamp_RGB.png" alt="[ESnet]"></a> 106 </div> 107 <div class="col-md-11"> 108 <p class="pull-right"> 109 <a href="#">Back to top</a> 110 {% if theme_source_link_position == "footer" %} 111 <br/> 112 {% include "sourcelink.html" %} 113 {% endif %} 114 </p> 115 <p> 116 {%- if show_copyright %} 117 {%- if hasdoc('copyright') %} 118 {% trans path=pathto('copyright'), copyright=copyright|e %}© <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}<br/> 119 {%- else %} 120 {% trans copyright=copyright|e %}© Copyright {{ copyright }}.{% endtrans %}<br/> 121 {%- endif %} 122 {%- endif %} 123 {%- if last_updated %} 124 {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}<br/> 125 {%- endif %} 126 {%- if show_sphinx %} 127 {% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}<br/> 128 {%- endif %} 129 </p> 130 </div> 131 </div> 132 </div> 133 </footer> 134 {%- endblock %} 135