File: base.html

package info (click to toggle)
dask.distributed 2021.01.0%2Bds.1-2.1%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,668 kB
  • sloc: python: 54,131; javascript: 1,549; makefile: 207; sh: 100
file content (62 lines) | stat: -rw-r--r-- 1,904 bytes parent folder | download
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
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8"/>
    <title>Dask Diagnostic UI</title>
    <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
    <link rel="stylesheet" href="statics/css/base.css"/>
    <link rel="shortcut icon" href="statics/images/favicon.ico"/>
    {% block resources %}
    {% block css_resources %}
    {{ bokeh_css | indent(8) if bokeh_css }}
    {% endblock %}
    {% block js_resources%}
    {{ bokeh_js | indent(8) if bokeh_js }}
    {% endblock %}
    {% block extra_resources %}
    {% endblock %}
    {% endblock %}
  </head>
  <body>
    <div class="navbar" id="myTopnav">
      <ul>
        <li id="dask-logo">
          <a href="https://dask.org/">
            <img src="statics/images/dask-logo.svg"></img>
          </a>
        </li>
        {% for page in pages %}
        <li>
          <a href="{{ page }}">{{ page|title }}</a>
        </li>
        {% endfor %}
        <li id="navbar-toggle-icon">
          <a href="javascript:void(0);" onclick="myFunction()">
            <img src="statics/images/fa-bars.svg"></img>
          </a>
        </li>
      </ul>
    </div>
    <div class="content">
      {% block content %}
      {% endblock %}
    </div>
    <script>
      /* Add the "active" class to the current navbar li element */
      var active = document.querySelectorAll("a[href='" + location.pathname + "']");
      if (active.length > 0) {
        active[0].closest('li').classList.add('active')
      }

      /* Toggle between adding and removing the "responsive" class to navbar when the user clicks on the icon */
      function myFunction() {
        var x = document.getElementById("myTopnav");
        if (x.className === "navbar") {
          x.className += " responsive";
        } else {
          x.className = "navbar";
        }
      }
    </script>
  </body>
</html>