From f4b0cd13e6b456c034f8a8f830ef5b290b3a7d2c Mon Sep 17 00:00:00 2001 From: "jihee.kim" <jihee.kim@anl.gov> Date: Wed, 17 Mar 2021 15:18:28 -0500 Subject: [PATCH] Added detector_views.md and changed make_images back --- bin/make_images | 2 +- reports/__init__.py | 0 reports/templates/detector_views.md | 7 +++++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 reports/__init__.py create mode 100644 reports/templates/detector_views.md diff --git a/bin/make_images b/bin/make_images index cb25efd..29a4a40 100755 --- a/bin/make_images +++ b/bin/make_images @@ -14,6 +14,6 @@ base_url = "https://eicweb.phy.anl.gov/api/v4/projects/390/jobs/artifacts/master #images = ["images/view2a.png","images/view2b.png", "images/view1.png"] 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)) diff --git a/reports/__init__.py b/reports/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/reports/templates/detector_views.md b/reports/templates/detector_views.md new file mode 100644 index 0000000..de9f5bc --- /dev/null +++ b/reports/templates/detector_views.md @@ -0,0 +1,7 @@ +#ReferenceDetector + + +{% for image_path in images %} +<img src="{{ base_url }}/{{ image_path }}?job=report" width="400px" /> +<br \> +{% endfor %} -- GitLab