<commit_before>.row
  .col-md-12
    %input{ type: "hidden", value: @patient.id, id: "patient_id" }
    %strong
      %h4
        = @patient.name
        %small
          #{@patient.age.years} años
          = gender_tag(@patient)

.row
  .col-md-1.col-xs-4
    %span.semi-strong.text-muted
      No. Cédula
  .col-md-3.col-xs-4
    %span.semi-strong
      = @patient.identity_card_number
.row
  .col-md-1.col-xs-4
    %span.semi-strong.text-muted
      Historia
  .col-md-3.col-xs-4
    %span.semi-strong
      = @patient.medical_history
.row
  .col-md-1.col-xs-4
    %span.semi-strong.text-muted
      Fecha
  .col-md-3.col-xs-4
    %span.semi-strong
      = @consultation.created_at.strftime('%b %d, %Y')

.row
  .col-md-12.text-right
    = link_to 'Nuevo documento', new_patient_consultation_document_path(@patient, @consultation), class: "btn btn-success"

%table.table.table-striped
  %thead
    %tr
      %th.col-md-8 Documento
      %th.col-md-4
  %tbody
  - @documents.each do |document|
    %tr
      %td
        %big
          = document.description
        %br
        - document.attachments.each do |attachment|
          - if attachment.image?
            = image_tag attachment.content_url, class: 'document-preview'
          - else
            = link_to attachment.content.original_filename, attachment.content_url, target: "_blank"
          %br
          %br
      %td.text-right
        = link_to "Editar", edit_patient_consultation_document_path(@patient, @consultation, document), class: 'btn btn-primary btn-sm'

.row
  .col-md-12.text-center
    = paginate @documents

= link_to "Consulta", edit_patient_consultation_path(@patient, @consultation), class: "btn btn-default"
<commit_msg>Add consultations navigation button (#67)<commit_after>.row
  .col-md-12
    %input{ type: "hidden", value: @patient.id, id: "patient_id" }
    %strong
      %h4
        = @patient.name
        %small
          #{@patient.age.years} años
          = gender_tag(@patient)

.row
  .col-md-1.col-xs-4
    %span.semi-strong.text-muted
      No. Cédula
  .col-md-3.col-xs-4
    %span.semi-strong
      = @patient.identity_card_number
.row
  .col-md-1.col-xs-4
    %span.semi-strong.text-muted
      Historia
  .col-md-3.col-xs-4
    %span.semi-strong
      = @patient.medical_history
.row
  .col-md-1.col-xs-4
    %span.semi-strong.text-muted
      Fecha
  .col-md-3.col-xs-4
    %span.semi-strong
      = @consultation.created_at.strftime('%b %d, %Y')

.row
  .col-md-12.text-right
    = link_to 'Nuevo documento', new_patient_consultation_document_path(@patient, @consultation), class: "btn btn-success"

%table.table.table-striped
  %thead
    %tr
      %th.col-md-8 Documento
      %th.col-md-4
  %tbody
  - @documents.each do |document|
    %tr
      %td
        %big
          = document.description
        %br
        - document.attachments.each do |attachment|
          - if attachment.image?
            = image_tag attachment.content_url, class: 'document-preview'
          - else
            = link_to attachment.content.original_filename, attachment.content_url, target: "_blank"
          %br
          %br
      %td.text-right
        = link_to "Editar", edit_patient_consultation_document_path(@patient, @consultation, document), class: 'btn btn-primary btn-sm'

.row
  .col-md-12.text-center
    = paginate @documents

= link_to "Consulta", edit_patient_consultation_path(@patient, @consultation), class: "btn btn-default"
= link_to "Consultas", patient_consultations_path(@patient), class: "btn btn-default"

{'fraction_non_alphanumeric': 0.13618346545866364, 'fraction_numerical': 0.01245753114382786, 'mean_word_length': 2.3808612440191386, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5604369', 'n_tokens_mistral': 1302, 'n_tokens_neox': 1285, 'n_words': 216}