Skip to content

Commit

Permalink
Merge pull request #1817 from adrianschroeter/webuimonitor
Browse files Browse the repository at this point in the history
Webui monitor fixes
  • Loading branch information
Moisés Déniz Alemán committed May 20, 2016
2 parents cc4b4e2 + fdfd046 commit 75ab993
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/api/app/views/webui/monitor/_building.html.erb
Expand Up @@ -12,13 +12,13 @@

<h3>Legend</h3>
<div>
<div style="float: left; margin-right: 10px"><%= distance_of_time_in_words(@time_now, @dead_line) -%></div>
<div style="float: left; margin-left: 10px; margin-right: 10px"><%= distance_of_time_in_words(@time_now, @dead_line) -%></div>
<% @max_color.downto(0) do |n| -%>
<% color = "rgb(255,#{n},0)" %>
<div style="background-color: <%= color %>; margin: 0px; width: 3px ; height: 1em; float: left;">&nbsp;</div>
<% end -%>
<div style="float: left; margin-left: 10px"><%= distance_of_time_in_words(@time_now, @dead_line-(@max_color*@interval_steps*60)) -%></div>
<div class="clear"/>
<div class="clear"></div>
</div>
<% else %>
<div class="info">
Expand All @@ -27,7 +27,7 @@
<% if (@project_filter) %>
No package of the "<%= @project_filter %>" project is building. Maybe remove the filter?:)
<% else %>
None of the <%= max_clients %> hosts is working atm!
All <%= max_clients %> hosts are idle!
<% end %>
<% else %>
Nothing to do here!
Expand Down
2 changes: 1 addition & 1 deletion src/api/app/views/webui/monitor/old.html.erb
@@ -1,5 +1,5 @@
<% @pagetitle = 'Build Status Monitor' %>
<% @crumb_list = %w(Monitor) %>
<% @crumb_list = [link_to('Monitor', :controller => 'monitor', :action => :index), "Detailed"] %>
<% @metarobots = 'nofollow' %>
<%= render :partial => 'building' %>
Expand Down

0 comments on commit 75ab993

Please sign in to comment.