<commit_before>- if policy(content_plan).create?
  = link_to "edit", [:edit, content_plan], class: 'btn pull-right'
= link_to "history", [:versions, content_plan], class: 'btn pull-right history-btn'

= breadcrumb ["Content Plans", content_plans_path], content_plan.name

.row
  .span12
    h2
      = content_plan.name
    dl.metadata
      dt Size:
      dd 
        = content_plan.size
      dt User Needs:
      dd
        = user_needs_links content_plan.need_ids
      dt Tags:
      dd
        = content_plan_tag_filters content_plan.tag_list
      dt Status:
      dd
        = content_plan.status
      dt Due:
      dd
        = content_plan.due_date

  .content-plan-details
    .inner
      = govspeak content_plan.details

      - if content_plan.notes.present?
        h4 Notes
        = govspeak content_plan.notes

      h4
        | Content
        = link_to "Add content", new_content_path(content_plan_id: content_plan.id), class: "btn btn-mini contents-btn"
      table.table
        thead
          th.title Title
          th.size Size
          th.status Status
          th.platform Platform
        tbody
          - content_plan.contents.each do |content|
              tr
                td
                  = link_to content.title, content
                td
                  = content.size
                td
                  = content.status
                td
                  = link_to content.platform, content.url, rel: "external", target: "_blank"


  .tasks-comments
    .inner
      h4
        | Tasks
        = link_to "Add task", new_content_plan_task_path(content_plan), class: "btn btn-mini tasks-btn"
<commit_msg>Display ref no on contents list on a plan<commit_after>- if policy(content_plan).create?
  = link_to "edit", [:edit, content_plan], class: 'btn pull-right'
= link_to "history", [:versions, content_plan], class: 'btn pull-right history-btn'

= breadcrumb ["Content Plans", content_plans_path], content_plan.name

.row
  .span12
    h2
      = content_plan.name
    dl.metadata
      dt Size:
      dd 
        = content_plan.size
      dt User Needs:
      dd
        = user_needs_links content_plan.need_ids
      dt Tags:
      dd
        = content_plan_tag_filters content_plan.tag_list
      dt Status:
      dd
        = content_plan.status
      dt Due:
      dd
        = content_plan.due_date

  .content-plan-details
    .inner
      = govspeak content_plan.details

      - if content_plan.notes.present?
        h4 Notes
        = govspeak content_plan.notes

      h4
        | Content
        = link_to "Add content", new_content_path(content_plan_id: content_plan.id), class: "btn btn-mini contents-btn"
      table.table
        thead
          th.title Title
          th.size Size
          th.status Status
          th.platform Platform
        tbody
          - content_plan.contents.each do |content|
              tr
                td
                  = link_to content, content
                td
                  = content.size
                td
                  = content.status
                td
                  = link_to content.platform, content.url, rel: "external", target: "_blank"


  .tasks-comments
    .inner
      h4
        | Tasks
        = link_to "Add task", new_content_plan_task_path(content_plan), class: "btn btn-mini tasks-btn"

{'fraction_non_alphanumeric': 0.08058717795086878, 'fraction_numerical': 0.0035949670461354103, 'mean_word_length': 1.7058346839546192, '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': '7471628', 'n_tokens_mistral': 1029, 'n_tokens_neox': 974, 'n_words': 238}