app/datatables/questionnaire_datatable.rb in hackathon_manager-0.8.2 vs app/datatables/questionnaire_datatable.rb in hackathon_manager-0.9.0

- old
+ new

@@ -1,7 +1,7 @@ class QuestionnaireDatatable < AjaxDatatablesRails::Base - def_delegators :@view, :link_to, :manage_questionnaire_path, :manage_school_path, :current_user, :acc_status_class, :display_datetime + def_delegators :@view, :link_to, :manage_questionnaire_path, :manage_school_path, :current_user, :acc_status_class, :display_datetime, :bold def view_columns @view_columns ||= { id: { source: 'Questionnaire.id', cond: :eq }, first_name: { source: 'Questionnaire.first_name' }, @@ -27,11 +27,11 @@ { bulk: current_user.admin_limited_access ? '' : "<input type=\"checkbox\" data-bulk-row-edit=\"#{record.id}\">".html_safe, link: link_to('<i class="fa fa-search"></i>'.html_safe, manage_questionnaire_path(record)), note: record.minor? ? '<div class="center"><i class="fa fa-exclamation-triangle icon-space-r"></i> Minor</div>'.html_safe : '', id: record.id, - first_name: record.first_name, - last_name: record.last_name, + first_name: bold(record.first_name), + last_name: bold(record.last_name), email: record.email, phone: record.phone, gender: record.gender, date_of_birth: record.date_of_birth_formatted, acc_status: "<span class=\"text-#{acc_status_class(record.acc_status)}\">#{record.acc_status.titleize}</span>".html_safe,