Displaying 1 result from an estimated 1 matches for "swf_is_present".
2009 Jul 24
2
[PATCH server] Add fallback message when flexchart is missing
...| 7 +++++++
2 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/src/app/helpers/graph_helper.rb b/src/app/helpers/graph_helper.rb
index bb1f05b..c57ddda 100644
--- a/src/app/helpers/graph_helper.rb
+++ b/src/app/helpers/graph_helper.rb
@@ -1,5 +1,14 @@
module GraphHelper
+ def swf_is_present
+ File.exists?(Rails.root.join('public','swfs','flexchart.swf'))
+ end
+
+ def swf_bits_download_url
+ "http://ovirt.org/flexchart/flexchart.swf"
+ end
+
+
# generate some json for the snapshot graph
def snapshot_graph_json(target,...