app/decorators/record_collection_decorator.rb
# Returns the complete list of records in the collection for HTML rendering,
# in a standard format, assuming only the first timing of the list needs to be
# displayed:
#
#     <timing> (<meeting1>, <meeting2>, ...)
#
# Note that if the collection contains different kind of individual records (for
# different pool, event, gender and category combinations), *no distinction* will
# be made and all records will be treated as different achievements of the same
# result. (Thus, the single initial timing, followed by a list of athletes.)
#
# Each enlisted meeting date is a link to the meeting in which the timing has
# been achieved.
#
Returns the complete list of records in the collection for HTML rendering,
in a standard format, assuming only the first timing of the list needs to be
displayed.



Note that if the collection contains different kind of individual records (for
different pool, event, gender and category combinations), *no distinction* will
be made and all records will be treated as different achievements of the same
result. (Thus, the single initial timing, followed by a list of athletes.)

Each enlisted meeting date is a link to the meeting in which the timing has
been achieved.
Returns the complete list of records in the collection for HTML rendering in a standard format assuming only the first timing of the list needs to be displayed . Note that if the collection contains different kind of individual records ( for different pool event gender and category combinations ) * no distinction * will be made and all records will be treated as different achievements of the same result . ( Thus the single initial timing followed by a list of athletes . ) Each enlisted meeting date is a link to the meeting in which the timing has been achieved .
def to_short_meeting_html_list
    rec_timing = nil
    rec_meetings = []
    each do |key, record|
      rec_timing ||= record.get_timing
      meeting = record.meeting_individual_result.meeting if record.meeting_individual_result
      rec_meetings << h.link_to_if(
          meeting,
          record.meeting_individual_result.meeting.get_scheduled_date,
          meeting_show_full_path( id: meeting.id, swimmer_id: record.swimmer_id ),
          { 'data-toggle' => 'tooltip', title: I18n.t('meeting.show_swimmer_results_tooltip') + "\r\n(#{ meeting.get_full_name })" }
      )
    end
    count > 0 ? "#{rec_timing} (#{ rec_meetings.join(', ') })".html_safe : "".html_safe
  end
def to_short_meeting_html_list rec_timing = nil rec_meetings = [ ] each do | key , record | rec_timing ||= record . get_timing meeting = record . meeting_individual_result . meeting if record . meeting_individual_result rec_meetings << h . link_to_if ( meeting , record . meeting_individual_result . meeting . get_scheduled_date , meeting_show_full_path ( id : meeting . id , swimmer_id : record . swimmer_id ) , { 'data-toggle' => 'tooltip' , title : I18n . t ( 'meeting.show_swimmer_results_tooltip' ) + "\r\n(#{ meeting.get_full_name })" } ) end count > 0 ? "#{rec_timing} (#{ rec_meetings.join(', ') })" . html_safe : "" . html_safe end
Returns the complete list of records in the collection for HTML rendering,
in a standard format, assuming only the first timing of the list needs to be
displayed:
Returns the complete list of records in the collection for HTML rendering in a standard format assuming only the first timing of the list needs to be displayed :
# Decorate each swimmer name with a link to the meeting #show_full action: