article.status-history header h2 Donor Transplant Operations table thead th th.col-width-date Op Date th Kidney Side th Type of Nephrectomy on donor th Last Seen On th Followup tbody - donor_operations.each do |operation| tr td= link_to t("btn.edit"), edit_patient_transplants_donor_operation_path(patient, operation) td= link_to patient_transplants_donor_operation_path(patient, operation) do = l operation.performed_on td= operation.kidney_side.try(:text) td= operation.nephrectomy_type.try(:text) - if operation.followup td= l operation.followup.last_seen_on td.actions.text-left = link_to t("btn.view"), patient_transplants_donor_operation_followup_path(patient, operation) = link_to t("btn.update"), edit_patient_transplants_donor_operation_followup_path(patient, operation) - else td td - url = new_patient_transplants_donor_operation_followup_path(patient, operation) = link_to "Enter details", url