<commit_before><% content_for :title, "#{@story} | #{@project} Stories" %>
<% content_for :h1, "Story ##{@story.id}" %>
<% content_for :actions do %>
<li><%= link_to 'Edit', [:edit, @project, @story.iteration, @story] %></li>
<% end %>
<% content_for :breadcrumbs do %>
  <%= story_breadcrumbs @story %>
  <li class="story"><%= h @story %></li>
<% end %>

<div class="story">
  <div class="content">
    <div class="header">
      <h3><%= h @story %></h3>
      <% if @story.estimate? %>
      <p class="estimate">Story Points: <%= @story.estimate %></p>
      <% end %>
    </div>
    <%= story_format @story.content %>
  </div>
</div>

<% unless @story.team_members.empty? %>
  <div id="users">
    <h2>Story Team</h2>
    <ul>
      <%= render @story.team_members %>
    </ul>

    <% if (@story.iteration && 
           @story.iteration.active? && 
           !@story.users.include?(@current_user)) %>
      <% form_for StoryTeamMember.new(:story => @story) do |f| %>
        <p class="submit">
        <%= f.hidden_field :story_id %>
        <%= f.submit 'Work on this story' %>
        </p>
      <% end %>
    <% end %>

  </div>
<% end %>

<div id="acceptance_criteria">
  <h2>Acceptance Criteria</h2>
  <% form_for [@project, @story, AcceptanceCriterion.new], :html => { :class => "add" } do |f| %>
    <p>
      <%= f.label :criterion, 'New Criterion' %>
      <%= f.text_field :criterion, :class => 'auto_focus' %>
      <%= f.submit 'Add' %>
    </p>
  <% end %>

  <div class="content"><commit_msg>view logic fix for stories/show - story team div wasn't showing if there were no team members<commit_after><% content_for :title, "#{@story} | #{@project} Stories" %>
<% content_for :h1, "Story ##{@story.id}" %>
<% content_for :actions do %>
<li><%= link_to 'Edit', [:edit, @project, @story.iteration, @story] %></li>
<% end %>
<% content_for :breadcrumbs do %>
  <%= story_breadcrumbs @story %>
  <li class="story"><%= h @story %></li>
<% end %>

<div class="story">
  <div class="content">
    <div class="header">
      <h3><%= h @story %></h3>
      <% if @story.estimate? %>
      <p class="estimate">Story Points: <%= @story.estimate %></p>
      <% end %>
    </div>
    <%= story_format @story.content %>
  </div>
</div>

<% if @story.iteration && @story.iteration.active? %>
  <div id="users">
    <h2>Story Team</h2>
    <% unless @story.team_members.empty? %>
      <ul>
      <%= render @story.team_members %>
      </ul>
    <% end %>

    <% unless @story.users.include?(@current_user) %>
      <% form_for StoryTeamMember.new(:story => @story) do |f| %>
        <p class="submit">
        <%= f.hidden_field :story_id %>
        <%= f.submit 'Work on this story' %>
        </p>
      <% end %>
    <% end %>
  </div>
<% end %>

<div id="acceptance_criteria">
  <h2>Acceptance Criteria</h2>
  <% form_for [@project, @story, AcceptanceCriterion.new], :html => { :class => "add" } do |f| %>
    <p>
      <%= f.label :criterion, 'New Criterion' %>
      <%= f.text_field :criterion, :class => 'auto_focus' %>
      <%= f.submit 'Add' %>
    </p>
  <% end %>

  <div class="content">
{'fraction_non_alphanumeric': 0.22601416613007083, 'fraction_numerical': 0.004507405022537025, 'mean_word_length': 2.9479034307496823, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 0, '>': 125, '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': '339251', 'n_tokens_mistral': 1235, 'n_tokens_neox': 1116, 'n_words': 250}