Project

General

Profile

Feature #24790 » add-tooltip-on-trackers-summary.diff

patch - Go MAEDA, 2017-01-10 02:06

View differences:

app/views/trackers/fields.html.erb (working copy)
26 26
      </tr>
27 27
      <% Tracker::CORE_FIELDS.each do |field| %>
28 28
      <tr class="<%= cycle("odd", "even") %>">
29
        <% field_name = l("field_#{field}".sub(/_id$/, '')) %>
29 30
        <td class="name">
30 31
          <%= link_to_function('', "toggleCheckboxesBySelector('input.core-field-#{field}')",
31 32
                               :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}",
32 33
                               :class => 'icon-only icon-checked') %>
33
          <%= l("field_#{field}".sub(/_id$/, '')) %>
34
          <%= field_name %>
34 35
        </td>
35 36
        <% @trackers.each do |tracker| %>
36
        <td>
37
        <td title="<%= "#{tracker.name}: #{field_name}" %>">
37 38
          <%= check_box_tag "trackers[#{tracker.id}][core_fields][]", field, tracker.core_fields.include?(field),
38 39
                            :class => "tracker-#{tracker.id} core-field-#{field}", :id => nil %>
39 40
        </td>
......
56 57
            <%= field.name %>
57 58
          </td>
58 59
          <% @trackers.each do |tracker| %>
59
          <td>
60
          <td title="<%= "#{tracker.name}: #{field.name}" %>">
60 61
            <%= check_box_tag "trackers[#{tracker.id}][custom_field_ids][]", field.id, tracker.custom_fields.include?(field),
61 62
                              :class => "tracker-#{tracker.id} custom-field-#{field.id}", :id => nil %>
62 63
          </td>
(2-2/2)