Commit 9139b616 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

modified: bin/make_images

	renamed:    doc/main.html -> reports/templates/detector_main.html
	new file:   reports/templates/layout.html
	new file:   reports/templates/views.html
parent 4fda2c39
Pipeline #7381 passed with stages
in 8 minutes and 40 seconds
...@@ -17,3 +17,6 @@ images = glob.glob("images/*.png") ...@@ -17,3 +17,6 @@ images = glob.glob("images/*.png")
template = env.get_template('detector_views.md') template = env.get_template('detector_views.md')
print(template.render(base_url=base_url, images=images)) print(template.render(base_url=base_url, images=images))
views = env.get_template('views.html')
print(template.render(base_url=base_url, images=images))
<!DOCTYPE html>
<html>
<head>
<title>Topside Detector</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" media="screen">
<style type="text/css">
.container {
max-width: 500px;
padding-top: 100px;
}
h2 {color: red;}
</style>
</head>
<body>
<h1>TOPSiDE</h1>
<div class="container">
{% block content %}{% endblock %}
<br>
<h2>Details</h2>
</div>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
</body>
</html>
{% extends "layout.html" %}
{% block content %}
<h2>Detector Views</h2>
<br>
<table>
{%- for row in images|batch(3, '&nbsp;') %}
<tr>
{%- for column in row %}
<td>
<img src="{{base_url}}/{{column}}?job=report" width="300px" />
<br \>
</td>
{%- endfor %}
</tr>
{%- endfor %}
</table>
{% endblock %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment