.content
  .header
    %h1
      %span.type Reporter
      %strong Newsroom
    %a#summation.option{:href => '#'} Σ
  .body
    #chart{ :style => "width: 100%; height: 400px; margin-bottom: 40px;" }

= content_for :back do
  .content
    .header
      %h1
        %span.type Editing
        %strong Overview
    .body
      %form#entry

= content_for :sidebar do
  %nav#sitemap.sitemap
    .header
      %nav#sitemap.sitemap
        .header
          %h3.current= link_to('Locus of Control', '#/')
        .body.tree{ 'data-bind' => 'partial: loci#view[menu]'}

= content_for :head do
  = javascript_include_tag 'c2/common'
  = javascript_include_tag 'c2/vertebrae'
  = javascript_include_tag 'c2/reporter_lib'
  = javascript_include_tag 'c2/reporter_templates'
  = javascript_include_tag 'c2/reporter_vertebrae'
  
  :javascript
    $(function(){
      Reporter.init({ loci: #{ @reports.to_json } });
    });