From 30d63eff85dfc0dd19c3d09c91125ab1e43706d4 Mon Sep 17 00:00:00 2001 From: "Alex M. Sielicki" Date: Wed, 21 Oct 2015 21:51:51 +0000 Subject: [PATCH] Adding missing image in CCA. Closes #517. --- .../images/ui-bg_glass_75_e6e6e6_1x400.png | Bin 0 -> 262 bytes web-server/plugins/slycat-cca/slycat-cca.py | 6 ++++++ 2 files changed, 6 insertions(+) create mode 100644 web-server/plugins/slycat-cca/images/ui-bg_glass_75_e6e6e6_1x400.png diff --git a/web-server/plugins/slycat-cca/images/ui-bg_glass_75_e6e6e6_1x400.png b/web-server/plugins/slycat-cca/images/ui-bg_glass_75_e6e6e6_1x400.png new file mode 100644 index 0000000000000000000000000000000000000000..b0abea704c506de70ef33a29d71e91e0916bbedb GIT binary patch literal 262 zcmeAS@N?(olHy`uVBq!ia0vp^j6gI&0LWmFTHNUZq?nSt-Ch3w7g=q17Rci)@Q5r1 z(jH*!b~4)z#PD=+46!(!TrvH)L6@80)r*_cdCvDr%)6ghVL16=s@mbz7H!uRdGeDa z?kzLg)16i!f8fKx84s0>4nC}Q!>*kaclUgTB88e Oz~JfX=d#Wzp$P!CyiT70 literal 0 HcmV?d00001 diff --git a/web-server/plugins/slycat-cca/slycat-cca.py b/web-server/plugins/slycat-cca/slycat-cca.py index 35e70d4bf..a1a85ac5a 100644 --- a/web-server/plugins/slycat-cca/slycat-cca.py +++ b/web-server/plugins/slycat-cca/slycat-cca.py @@ -140,6 +140,12 @@ def page_html(database, model): os.path.join(os.path.dirname(__file__), "js/ui.js"), ]) context.register_page_resource("cca", "images", os.path.join(os.path.dirname(__file__), "images")) + # Register images and other resources + images = [ + 'ui-bg_glass_75_e6e6e6_1x400.png', + ] + for image in images: + context.register_page_resource("cca", image, os.path.join(os.path.dirname(__file__), "images", image)) # Register custom wizards for creating CCA models. context.register_wizard("new-cca", "New CCA Model", require={"action":"create", "context":"project"})