% if trackers.any? {|t| t.description.present? } %>
<%= l(:label_trackers_description) %>
<% trackers.each do |tracker| %>
<% if tracker.description.present? %>
- <%= content_tag 'a', tracker.name, :onclick => "selectTracker('#{tracker.id}'); return false;", :href => '#', :title => l(:text_select_apply_tracker) %>
- <%= tracker.description %>
<% end %>
<% end %>
<% end %>
<%= javascript_tag do %>
function selectTracker(id) {
var target = $('#issue_tracker_id');
target.attr("selected", false);
target.find('option[value="' + id + '"]').prop('selected', true);
target.trigger('change');
hideModal('#trackers_description h3');
}
<% end %>