<commit_before>.row
  .col-xs-12
    .page-header.page-header-nav
      = link_to "‹ back to overview", admin_form_answers_path, class: "btn btn-link btn-lg"
      .pull-right
        / TODO Prev/next case links
        = link_to "‹ Prev case", "#"
        = link_to "Next case ›", "#"

.row
  .col-md-4
    .show-sidebar
      .well.section-applicant-details
        h1 = @form_answer.company_name
        p
          - if @form_answer.urn.present?
            = @form_answer.urn
            ' &nbsp; &nbsp;
          / TODO SIC
          = sic_code(@form_answer)
        p = @form_answer.award_type
        p.p-lg
          / TODO Address
          ' 65 Kings Cross Road,
          br
          ' London, WC1X 9LW, UK

        p.application-progress class=@form_answer.progress_class
          strong
            ' Status:
          = @form_answer.progress_text

        - if Rails.env.development?
          .pull-left.if-no-js-hide
            = link_to "Switch View", "#", class: "js-switch-admin-view"

        .text-right
          / TODO Edit page
          = link_to "Edit details", [:edit, :admin, @form_answer]

        br
        = link_to review_admin_form_answer_path(@form_answer), class: "btn btn-default btn-block", target: "_blank"
          span.icon-view
          ' View application as admin

      .well
        h2
          ' Documents
        .document-list
          - unless @form_answer.form_answer_attachments.any?
            p.p-empty No documents have been attached to this case.
          ul.list-unstyled.list-actions
            - if @form_answer.form_answer_attachments.any?
              = render(@form_answer.form_answer_attachments)
          br
        = form_for [:admin, @form_answer, @form_answer.form_answer_attachments.build], html: { multipart: true} do |form|
          span.btn.btn-default.btn-attachment
            span.attachment-text
              span.glyphicon.glyphicon-paperclip
              ' Attach Document
            = form.file_field :file
          = form.submit 'Attach Document', class: 'if-js-hide'

      / TODO Users
      .well
        h2
          ' User Accounts
          small.pull-right Logged in: 28/09/15 - 08:03
        ul.list-unstyled.list-actions
          li
            = link_to "#", class: "ellipsis"
              span.icon-role A
              ' <NAME> (<EMAIL>)
          li
            = link_to "#", class: "ellipsis"
              span.icon-role C
              ' <NAME> (<EMAIL>)
          li
            = link_to "#", class: "ellipsis"
              span.icon-role L
              ' <NAME> (<EMAIL>)
          li
            = link_to "#", class: "ellipsis"
              span.icon-role 1
              ' <NAME> (<EMAIL>)

      / TODO Assessors
      .well
        h2
          ' Assessors
        p.p-empty No assessors have been assigned to this case.

  .col-md-8
    .col-sidebar
      .sidebar-header
        = link_to toggle_admin_form_answer_flags_path(@form_answer), class: "link-flag", remote: true
          span.icon-text Flag:
          = application_flags(@form_answer)

        = link_to "#", class: "link-comment"
          = application_comments(@form_answer)
          span.icon-text Hide comments:
        .clear

      .comments-container
        = render(collection: @form_answer.comments, partial: 'comment')

        .comment-footer
          = link_to 'Enter a Comment', new_admin_form_answer_comment_path(@form_answer), id: 'build_new_comment', class: "btn btn-default btn-block"

    .col-content
      .application-progress class=@form_answer.progress_class
        = @form_answer.progress_text
        - if Rails.env.development?
          span.pull-right.if-no-js-hide
            = link_to "Switch View", "#", class: "btn btn-xs btn-default js-switch-admin-view"
      .applicant-view
        .iframeholder data-src= review_admin_form_answer_path(@form_answer)
          = link_to "#", class: 'if-no-js-hide js-expand-iframe'
            span.collapsed-show Expand
            span.expanded-show Close
        = link_to "Review application", review_admin_form_answer_path(@form_answer), class: "if-js-hide"
      .submitted-view.hidden
        = render partial: "submitted_view"

    .clear
<commit_msg>Tweak switch application view button<commit_after>.row
  .col-xs-12
    .page-header.page-header-nav
      = link_to "‹ back to overview", admin_form_answers_path, class: "btn btn-link btn-lg"
      .pull-right
        / TODO Prev/next case links
        = link_to "‹ Prev case", "#"
        = link_to "Next case ›", "#"

.row
  .col-md-4
    .show-sidebar
      .well.section-applicant-details
        h1 = @form_answer.company_name
        p
          - if @form_answer.urn.present?
            = @form_answer.urn
            ' &nbsp; &nbsp;
          / TODO SIC
          = sic_code(@form_answer)
        p = @form_answer.award_type
        p.p-lg
          / TODO Address
          ' 65 Kings Cross Road,
          br
          ' London, WC1X 9LW, UK

        p.application-progress class=@form_answer.progress_class
          strong
            ' Status:
          = @form_answer.progress_text

        .text-right
          / TODO Edit page
          = link_to "Edit details", [:edit, :admin, @form_answer]

        br
        = link_to review_admin_form_answer_path(@form_answer), class: "btn btn-default btn-block", target: "_blank"
          span.icon-view
          ' View application as admin

        br
        - if Rails.env.development?
          = link_to "Switch application view", "#", class: "btn btn-default btn-block js-switch-admin-view"

      .well
        h2
          ' Documents
        .document-list
          - unless @form_answer.form_answer_attachments.any?
            p.p-empty No documents have been attached to this case.
          ul.list-unstyled.list-actions
            - if @form_answer.form_answer_attachments.any?
              = render(@form_answer.form_answer_attachments)
          br
        = form_for [:admin, @form_answer, @form_answer.form_answer_attachments.build], html: { multipart: true} do |form|
          span.btn.btn-default.btn-attachment
            span.attachment-text
              span.glyphicon.glyphicon-paperclip
              ' Attach Document
            = form.file_field :file
          = form.submit 'Attach Document', class: 'if-js-hide'

      / TODO Users
      .well
        h2
          ' User Accounts
          small.pull-right Logged in: 28/09/15 - 08:03
        ul.list-unstyled.list-actions
          li
            = link_to "#", class: "ellipsis"
              span.icon-role A
              ' <NAME> (<EMAIL>)
          li
            = link_to "#", class: "ellipsis"
              span.icon-role C
              ' <NAME> (<EMAIL>)
          li
            = link_to "#", class: "ellipsis"
              span.icon-role L
              ' <NAME> (<EMAIL>)
          li
            = link_to "#", class: "ellipsis"
              span.icon-role 1
              ' <NAME> (<EMAIL>)

      / TODO Assessors
      .well
        h2
          ' Assessors
        p.p-empty No assessors have been assigned to this case.

  .col-md-8
    .col-sidebar
      .sidebar-header
        = link_to toggle_admin_form_answer_flags_path(@form_answer), class: "link-flag", remote: true
          span.icon-text Flag:
          = application_flags(@form_answer)

        = link_to "#", class: "link-comment"
          = application_comments(@form_answer)
          span.icon-text Hide comments:
        .clear

      .comments-container
        = render(collection: @form_answer.comments, partial: 'comment')

        .comment-footer
          = link_to 'Enter a Comment', new_admin_form_answer_comment_path(@form_answer), id: 'build_new_comment', class: "btn btn-default btn-block"

    .col-content
      .application-progress class=@form_answer.progress_class
        = @form_answer.progress_text
        - if Rails.env.development?
          span.pull-right.if-no-js-hide
            = link_to "Switch View", "#", class: "btn btn-xs btn-default js-switch-admin-view"
      .applicant-view
        .iframeholder data-src= review_admin_form_answer_path(@form_answer)
          = link_to "#", class: 'if-no-js-hide js-expand-iframe'
            span.collapsed-show Expand
            span.expanded-show Close
        = link_to "Review application", review_admin_form_answer_path(@form_answer), class: "if-js-hide"
      .submitted-view.hidden
        = render partial: "submitted_view"

    .clear

{'fraction_non_alphanumeric': 0.10792977494992341, 'fraction_numerical': 0.005420054200542005, 'mean_word_length': 1.7711394058112961, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '1550078', 'n_tokens_mistral': 2633, 'n_tokens_neox': 2550, 'n_words': 540}