12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title>EGamma Dashboard</title>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=2">
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
- <script type="text/x-mathjax-config">
- MathJax.Hub.Config({
- config: ["MMLorHTML.js"],
- jax: ["input/TeX", "output/HTML-CSS", "output/NativeMML"],
- extensions: ["MathMenu.js", "MathZoom.js"]
- });
- </script>
- <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_HTML-full"> </script>
- </head>
- <body>
- <div class="container-fluid">
- {% for r, plot_row in enumerate(plots) %}
- <div class="row">
- {% for c, plot in enumerate(plot_row) %}
- <div class="col-md-4">
- <div class="well">
- {% if plot.title %}
- <h3 class="text-center">{{ plot.title }}</h3>
- {% endif %}
- <a href="{{ outdir+plot.name+".png" }}"><img src="{{ outdir+plot.name+".png" }}" style="width:100%"></a>
- <div class="caption">
- <p class="text-center"> {{ plot.name }} </p>
- <div class="panel-group" id="accordion">
- {% for id, (i,j) in enumerate(plot.docs.keys()) %}
- <div class="panel-heading">
- <h4 class="panel-title">
- <button data-toggle="collapse" data-parent="#accordion" class="btn btn-info" href="#collapse{{r}}-{{c}}-{{id}}">
- Plot at ({{i+1}}, {{j+1}})</button>
- </h4>
- </div>
- <div id="collapse{{r}}-{{c}}-{{id}}" class="panel-collapse collapse">
- <div class="panel-body">
- {% for doc, argdict in zip(plot.docs[(i,j)], plot.argdicts[(i,j)]) %}
- <p class="text-left">{{ doc|safe }}</p>
- <hr>
- <p class="text-left"><strong>Plot Arguments</strong></p>
- <table class="table table-hover">
- <tbody>
- {% for key, val in argdict.items() %}
- <tr>
- <td>{{ key }}</td> <td>{{ val }}</td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- {% endfor %}
- </div>
- </div>
- {% endfor %}
- </div>
- </div>
- </div>
- </div>
- {% endfor %}
- </div>
- {% endfor %}
- </div>
- </body>
- </html>
|