Skip to content

Commit

Permalink
[webui] More tooltips (open requests and packages) for incident overview
Browse files Browse the repository at this point in the history
  • Loading branch information
saschpe committed Jan 24, 2012
1 parent 90e54fe commit a159bad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/webui/app/views/shared/_incidents.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
<td>
<%# Exclude package "patchinfo" %>
<% if packages.length > 1 %>
<%= link_to(packages.length - 1, {:action => 'packages', :project => incident.value('name')}, {:style => 'color: green;'}) %>
<% title = packages.map{|p| "#{p.value('name').split('.')[0]} "}.join %>
<%= link_to(packages.length - 1, {:action => 'packages', :project => incident.value('name')}, {:style => 'color: green;', :title => title}) %>
<% else %>
<%= link_to('0', {:action => 'packages', :project => incident.value('name')}, {:style => 'color: red;'}) %>
<% end %>
Expand All @@ -90,7 +91,8 @@
</td>
<td>
<% if requests && requests.length > 0 %>
<%= link_to("#{requests.length} open", {:action => 'requests', :project => incident.value('name')}, {:style => 'color: red;'}) %>
<% title = requests.map{|r| "#{r.value('id')} "}.join %>
<%= link_to("#{requests.length} open", {:action => 'requests', :project => incident.value('name')}, {:style => 'color: red;', :title => title}) %>
<% else %>
-
<% end %>
Expand Down

0 comments on commit a159bad

Please sign in to comment.