<commit_before><% @title = "Publication: #{@publication.full_title}" %>
<h1><%= @title %></h1>
<%= link_to image_tag('icons/edit.png', :alt => '') + "Edit Publication", edit_publication_path(@publication), :class => 'button' if current_user.all_publications.include?(@publication) and ['draft', 'not approved'].include?(@publication.status) %>
<%= link_to image_tag('icons/mydocuments.png', :alt => '') + "View All Publications", publications_path, :class => 'button' %>
<%#= link_to "#{image_tag('icons/eye.png', :alt => '')} View All Publications".html_safe, publications_path, :class => 'button' %>

<div style="clear:both"></div><br />
<table style="border-collapse:collapse;border:0px;margin:0px;padding:0px">
  <tr style="border:0px;margin:0px;padding:0px"><td style="border:0px;margin:0px;padding:0px"><b>Status:</b></td><td style="border:0px;margin:0px;"><%= display_status(@publication.status) %></td><td style="border:0px;margin:0px;"><%= @publication.human_status %></td></tr>
</table>

<%#= link_to 'Edit', edit_publication_path(@publication) %>
<%#= link_to 'Back', publications_path %>
<div style="clear:both"></div>

<% if (current_user.pp_committee? and ['proposed'].include?(@publication.status)) or (current_user.steering_committee? and ['approved'].include?(@publication.status)) %>
  <% @user = current_user %>
  <% @user_publication_review = @user.user_publication_reviews.find_by_publication_id(@publication.id) %>
  <% @user_publication_review = @user.user_publication_reviews.new(:publication_id => @publication.id) if @user_publication_review.blank? %>
  <div id="publication_review_box_user_<%= @user.id %>"><%= render :partial => 'user_publication_reviews/show_simple' %></div>
  <div style="clear:both"></div>  
<% end %>

<% if current_user.committee_member? or current_user.secretary? %>
<%= link_to_function "Show/Hide P&P Committee Reviews", "$('#sc_reviews').hide(); $('#pp_reviews').toggle( 'blind', {}, 500 );", :class => 'button' %>
<%= link_to_function "Show/Hide Steering Committee Reviews", "$('#pp_reviews').hide(); $('#sc_reviews').toggle( 'blind', {}, 500 );", :class => 'button' %>
<div style="clear:both"></div>
<fieldset id="pp_reviews" style="display:none">
  <legend>P&amp;P Committee Reviews</legend>
  <table class="blank padded">
    <tbody>
      <% User.current.pp_committee_members.order('last_name, first_name').each do |user| %>
        <% @user = user %>
        <% @user_publication_review = @user.user_publication_reviews.find_by_publication_id(@publication.id) %>
        <% @user_publication_review = @user.user_publication_reviews.new(:publication_id => @publication.id) if @user_publication_review.blank? %>
        <%= render :partial => 'user_publication_reviews/show_small' %>
      <% end %>
    </tbody>
  </table>
</fieldset>
<fieldset id="sc_reviews" style="display:none">
  <legend>Steering Committee Reviews</legend><commit_msg>Remove the need for reviewers to click "Create Review" before being able to edit/submit a new review.<commit_after><% @title = "Publication: #{@publication.full_title}" %>
<h1><%= @title %></h1>
<%= link_to image_tag('icons/edit.png', :alt => '') + "Edit Publication", edit_publication_path(@publication), :class => 'button' if current_user.all_publications.include?(@publication) and ['draft', 'not approved'].include?(@publication.status) %>
<%= link_to image_tag('icons/mydocuments.png', :alt => '') + "View All Publications", publications_path, :class => 'button' %>
<%#= link_to "#{image_tag('icons/eye.png', :alt => '')} View All Publications".html_safe, publications_path, :class => 'button' %>

<div style="clear:both"></div><br />
<table style="border-collapse:collapse;border:0px;margin:0px;padding:0px">
  <tr style="border:0px;margin:0px;padding:0px"><td style="border:0px;margin:0px;padding:0px"><b>Status:</b></td><td style="border:0px;margin:0px;"><%= display_status(@publication.status) %></td><td style="border:0px;margin:0px;"><%= @publication.human_status %></td></tr>
</table>

<%#= link_to 'Edit', edit_publication_path(@publication) %>
<%#= link_to 'Back', publications_path %>
<div style="clear:both"></div>

<% if (current_user.pp_committee? and ['proposed'].include?(@publication.status)) or (current_user.steering_committee? and ['approved'].include?(@publication.status)) %>
  <% @user = current_user %>
  <% @user_publication_review = @user.user_publication_reviews.find_by_publication_id(@publication.id) %>
  <% @user_publication_review = @user.user_publication_reviews.new(:publication_id => @publication.id) if @user_publication_review.blank? %>
  <div id="publication_review_box_user_<%= @user.id %>">
    <% if @user_publication_review.new_record? %>
      <%= render :partial => 'user_publication_reviews/form_simple' %>
    <% else %>
      <%= render :partial => 'user_publication_reviews/show_simple' %>
    <% end %>
  </div>
  <div style="clear:both"></div>  
<% end %>

<% if current_user.committee_member? or current_user.secretary? %>
<%= link_to_function "Show/Hide P&P Committee Reviews", "$('#sc_reviews').hide(); $('#pp_reviews').toggle( 'blind', {}, 500 );", :class => 'button' %>
<%= link_to_function "Show/Hide Steering Committee Reviews", "$('#pp_reviews').hide(); $('#sc_reviews').toggle( 'blind', {}, 500 );", :class => 'button' %>
<div style="clear:both"></div>
<fieldset id="pp_reviews" style="display:none">
  <legend>P&amp;P Committee Reviews</legend>
  <table class="blank padded">
    <tbody>
      <% User.current.pp_committee_members.order('last_name, first_name').each do |user| %>
        <% @user = user %>
        <% @user_publication_review = @user.user_publication_reviews.find_by_publication_id(@publication.id) %>
        <% @user_publication_review = @user.user_publication_reviews.new(:publication_id => @publication.id) if @user_publication_review.blank? %>
        <%= render :partial => 'user_publication_reviews/show_small' %>
      <% end %>
    </tbody>
  </table>
</fieldset>
<fieldset id="sc_reviews" style="display:none">
  <legend>Steering Committee Reviews</legend>
{'fraction_non_alphanumeric': 0.20079391333112803, 'fraction_numerical': 0.006946741647370162, 'mean_word_length': 6.587202007528231, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 0, '>': 154, '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': '4635226', 'n_tokens_mistral': 2142, 'n_tokens_neox': 1993, 'n_words': 326}