Make the refresh rates of the application and radiator views configurable.
ok aja@ (MAINTAINER)
This commit is contained in:
parent
8150c04c12
commit
a91ad4d6e8
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.21 2013/03/25 07:55:10 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.22 2013/04/18 07:41:44 jasper Exp $
|
||||
|
||||
COMMENT= overview of your Puppet ecosystem
|
||||
|
||||
DISTNAME= puppet-dashboard-1.2.23
|
||||
REVISION= 0
|
||||
CATEGORIES= www sysutils
|
||||
|
||||
HOMEPAGE= https://puppetlabs.com/puppet/related-projects/dashboard/
|
||||
|
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-app_views_layouts_application_html_haml,v 1.1 2013/04/18 07:41:44 jasper Exp $
|
||||
|
||||
Make the refresh rates of the application and radiator views configurable.
|
||||
|
||||
--- app/views/layouts/application.html.haml.orig Thu Mar 21 19:24:05 2013
|
||||
+++ app/views/layouts/application.html.haml Thu Apr 18 09:26:44 2013
|
||||
@@ -6,7 +6,7 @@
|
||||
%link{ :href => image_path("favicon.ico"), :rel => "shortcut icon" }
|
||||
%meta{ :content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type" }
|
||||
- if session[:autorefresh]
|
||||
- %meta{ :content => "5; URL=#{request.url}", "http-equiv" => "refresh" }
|
||||
+ %meta{ :content => "#{SETTINGS.application_refresh_rate}; URL=#{request.url}", "http-equiv" => "refresh" }
|
||||
|
||||
= javascript_include_tag 'jquery.min'
|
||||
:javascript
|
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-app_views_layouts_radiator_html_haml,v 1.1 2013/04/18 07:41:44 jasper Exp $
|
||||
|
||||
Make the refresh rates of the application and radiator views configurable.
|
||||
|
||||
--- app/views/layouts/radiator.html.haml.orig Thu Apr 18 08:58:13 2013
|
||||
+++ app/views/layouts/radiator.html.haml Thu Apr 18 08:58:16 2013
|
||||
@@ -3,7 +3,7 @@
|
||||
%head
|
||||
- page_title = yield(:page_title)
|
||||
%title= [ page_title, 'Puppet Node Manager'].compact.join(' - ')
|
||||
- %meta{"http-equiv" => "refresh", :content => "60"}
|
||||
+ %meta{"http-equiv" => "refresh", :content => "#{SETTINGS.radiator_refresh_rate}"}
|
||||
= stylesheet_link_tag 'reset', 'mixins', 'radiator'
|
||||
= javascript_include_tag 'jquery-1.7.2', 'radiator'
|
||||
|
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-config_settings_yml_example,v 1.1 2013/04/18 07:41:44 jasper Exp $
|
||||
|
||||
Make the refresh rates of the application and radiator views configurable.
|
||||
|
||||
--- config/settings.yml.example.orig Thu Apr 18 08:57:52 2013
|
||||
+++ config/settings.yml.example Thu Apr 18 08:57:56 2013
|
||||
@@ -86,4 +86,8 @@ classes_per_page: 50
|
||||
groups_per_page: 50
|
||||
reports_per_page: 20
|
||||
|
||||
+# Refresh rate in seconds for the radiator and application views
|
||||
+radiator_refresh_rate: 60
|
||||
+application_refresh_rate: 5
|
||||
+
|
||||
#===[ fin ]=============================================================
|
Loading…
Reference in New Issue
Block a user