Permalink
Browse files

Expose reload rrds option

  • Loading branch information...
1 parent 88c4e65 commit 643aba4e5e99b96c1f37edacad7a3b59a221e8fe @newobj committed Feb 18, 2010
Showing with 4 additions and 0 deletions.
  1. +1 −0 app/controllers/explore_controller.rb
  2. +2 −0 app/views/explore/index.haml
  3. +1 −0 vendor/plugins/haml/init.rb
View
1 app/controllers/explore_controller.rb
@@ -31,6 +31,7 @@ def json
def reload_rrds
RRD.load_all_rrds
+ redirect_to '/'
end
def index
View
2 app/views/explore/index.haml
@@ -11,6 +11,8 @@
[
= link_to 'refresh graph', 'javascript:explore.refreshGraph();'
|
+ = link_to 'reload rrds', :action => :reload_rrds
+ |
<a title="Add Query to Dashboard" class="thickbox dashboard" href="#">add query to dashboard</a>
<!-- | <a title="Add Alarm on Query" class="thickbox alarm" href="#">add alarm on query</a> -->
]
View
1 vendor/plugins/haml/init.rb
@@ -4,4 +4,5 @@
require 'haml' # From gem
end
+# Load Haml and Sass
Haml.init_rails(binding)

0 comments on commit 643aba4

Please sign in to comment.