Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Hide header in dashboard

Change-Id: I53b4b4050c935a5cd938328908d57add1c1f56fb
  • Loading branch information...
commit 711cf40805fdc3bf9b22f9f63a3aa86d52daf7f2 1 parent f5faf7c
@leoli leoli authored
View
6 static_files/css/styles.css
@@ -9,13 +9,17 @@ h2 {
font-weight: 100;
}
+div.headerToggle {
+ text-align: right;
+}
+
div.content_box:hover {
background: #004370;
}
div.content_box {
padding: 2px;
- margin: 0 10px 10px 0;
+ margin: 10px 10px 10px 0;
float: left;
width: 320px;
height: 320px;
View
2  static_files/js/config.js
@@ -42,6 +42,4 @@ function Config() {
this.DefaultRefreshSecs = function() {
return this.DEFAULT_REFRESH_SECS;
}
-
- this.REST = "http://sauron.rbcon.com/";
}
View
7 static_files/js/main.js
@@ -16,8 +16,10 @@ $(function() {
$('#refresh_in_x_secs').text(default_refresh_secs);
$('#enable_auto_cycle').show();
$('#disable_auto_cycle').hide();
+ $('div.header').hide();
renderPage();
+ timer_id = startCyclingView(default_refresh_secs);
// Click this button to refetch data from Jenkins
$('#refresh_now, #jenkins_root_url').on('click', function() {
@@ -33,9 +35,7 @@ $(function() {
if ($(this).attr('id') == 'enable_auto_cycle') {
- timer_id = setInterval(function() {
- renderPage(jenkins_root_url);
- }, default_refresh_secs * 1000);
+ timer_id = startCyclingView(default_refresh_secs);
$('#disable_auto_cycle').show();
} else if ($(this).attr('id') == 'disable_auto_cycle') {
@@ -61,5 +61,6 @@ $(function() {
}
return false;
});
+
});
View
6 static_files/js/render.js
@@ -50,3 +50,9 @@ function renderBugsPage() {
renderSeverityCountGraph();
renderDefectTrendGraph();
}
+
+function startCyclingView(default_refresh_secs) {
+ return setInterval(function() {
+ renderPage();
+ }, default_refresh_secs * 1000);
+}
Please sign in to comment.
Something went wrong with that request. Please try again.