Skip to content

Commit

Permalink
[webui] Issue tooltips for incident overview
Browse files Browse the repository at this point in the history
  • Loading branch information
saschpe committed Jan 24, 2012
1 parent b4be437 commit a101239
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/webui/app/views/shared/_incidents.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@
</td>
<td class="nowrap">
<% if issues[:missing] && issues[:missing].length > 0 %>
<span style="color: red;"><%= issues[:missing].length %> missing</span>
<% title = issues[:missing].keys.sort.map{|k| "#{k} "}.join %>
<%= link_to("#{issues[:missing].length} missing", "#", {:style => 'color: red;', :title => title}) %>
<% elsif issues[:patchinfo] && issues[:patchinfo].length > 0 %>
<span style="color: green;"><%= issues[:patchinfo].length %> fixed</span>
<% title = issues[:patchinfo].keys.sort.map{|k| "#{k} "}.join %>
<%= link_to("#{issues[:patchinfo].length} fixed", "#", {:style => 'color: green;', :title => title}) %>
<% else %>
-
<% end %>
Expand All @@ -58,9 +60,11 @@
<% end %>
<td class="nowrap">
<% if issues[:optional] && issues[:optional].length > 0 %>
<span style="color: olive;"><%= issues[:optional].length %> optional</span>
<% title = issues[:optional].keys.sort.map{|k| "#{k} "}.join %>
<%= link_to("#{issues[:optional].length} optional", "#", {:style => 'color: olive;', :title => title}) %>
<% elsif issues[:changes] && issues[:changes].length > 0 %>
<span style="color: green;"><%= issues[:changes].length %> fixed</span>
<% title = issues[:changes].keys.sort.map{|k| "#{k} "}.join %>
<%= link_to("#{issues[:changes].length} fixed", "#", {:style => 'color: green;', :title => title}) %>
<% else %>
-
<% end %>
Expand Down

0 comments on commit a101239

Please sign in to comment.