<commit_before><ul class="statuses">
	<% for status in Status.find( :all ) -%>
		<li id="<%= "story_#{story.id}_status_#{status.id}" %>" title="<%= status.name %>" class="<%= "#{status.color}#{status == story.status ? " selected" : ""}" %>" onclick="<%= remote_function( :url => update_status_story_path( :project_id => @project, :id => story, :story => { :status_id => status.id } ), :method => :put ) %>">&nbsp;&nbsp;&nbsp;</li>
	<% end -%>
</ul>

<%= image_tag "move.gif", :class => 'draggable' %>
<%= link_to_remote image_tag( 'show.png' ), :url => story_path(@project, story), :method => :get, 
	:before => "if( !toggle_hide_show_with_smart_loading( 'story_#{story.id}_view', [ 'story_#{story.id}_edit', 'story_#{story.id}_time' ] ) ) { return false; }" %>
<%= link_to_remote image_tag( 'edit.png' ), :url => edit_story_path(@project, story), :method => :get, 
	:before => "if( !toggle_hide_show_with_smart_loading( 'story_#{story.id}_edit', [ 'story_#{story.id}_view', 'story_#{story.id}_time' ] ) ) { return false; }" %>
<%= link_to_remote image_tag( 'destroy.png' ), :url => story_path(@project, story), :method => :delete, :confirm => 'Are you sure?' %>
<%= link_to_remote image_tag( 'time.png' ), :url => time_story_path(@project, story), :method => :get, 
	:before => "if( !toggle_hide_show_with_smart_loading( 'story_#{story.id}_time', [ 'story_#{story.id}_view', 'story_#{story.id}_edit' ], true ) ) { return false; }" %>

<b>Points:</b> <span id="story_<%= story.id %>_points" class="inplaceeditor-field"><%= story.points ? h( story.points ) : "&infin;" %></span>
 - <%= "S#{story.id}" %> - <%=h story.summary %>

<span id="story_<%= story.id %>_header">	
	<% if story.responsible_party.nil? -%>
		<%= render :partial=>'stories/take', :locals=>{:story=>story} %>
	<% else -%>
		<%= render :partial=>'stories/release', :locals=>{:story=>story} %>
	<% end -%>
</span>

<%= in_place_editor "story_#{story.id}_points", :url => update_points_story_path( @project, story ), :param_name => 'story[points]',
                                                :ajax_options => { :method => :put }, :eval_scripts => true,
                                                :ok_button => false, :size => 3 %><commit_msg>Updated stories/edit.rjs to select first field on show the form. Updated notice/error to only display for 5 seconds (not 10)<commit_after><ul class="statuses">
	<% for status in Status.find( :all ) -%>
		<li id="<%= "story_#{story.id}_status_#{status.id}" %>" title="<%= status.name %>" class="<%= "#{status.color}#{status == story.status ? " selected" : ""}" %>" onclick="<%= remote_function( :url => update_status_story_path( :project_id => @project, :id => story, :story => { :status_id => status.id } ), :method => :put ) %>">&nbsp;&nbsp;&nbsp;</li>
	<% end -%>
</ul>

<%= image_tag "move.gif", :class => 'draggable' %>
<%= link_to_remote image_tag( 'show.png' ), :url => story_path(@project, story), :method => :get, 
	:before => "if( !toggle_hide_show_with_smart_loading( 'story_#{story.id}_view', [ 'story_#{story.id}_edit', 'story_#{story.id}_time' ] ) ) { return false; }" %>
<%= link_to_remote image_tag( 'edit.png' ), :url => edit_story_path(@project, story), :method => :get, 
	:before => "if( !toggle_hide_show_with_smart_loading( 'story_#{story.id}_edit', [ 'story_#{story.id}_view', 'story_#{story.id}_time' ], true ) ) { return false; }" %>
<%= link_to_remote image_tag( 'destroy.png' ), :url => story_path(@project, story), :method => :delete, :confirm => 'Are you sure?' %>
<%= link_to_remote image_tag( 'time.png' ), :url => time_story_path(@project, story), :method => :get, 
	:before => "if( !toggle_hide_show_with_smart_loading( 'story_#{story.id}_time', [ 'story_#{story.id}_view', 'story_#{story.id}_edit' ], true ) ) { return false; }" %>

<b>Points:</b> <span id="story_<%= story.id %>_points" class="inplaceeditor-field"><%= story.points ? h( story.points ) : "&infin;" %></span>
 - <%= "S#{story.id}" %> - <%=h story.summary %>

<span id="story_<%= story.id %>_header">	
	<% if story.responsible_party.nil? -%>
		<%= render :partial=>'stories/take', :locals=>{:story=>story} %>
	<% else -%>
		<%= render :partial=>'stories/release', :locals=>{:story=>story} %>
	<% end -%>
</span>

<%= in_place_editor "story_#{story.id}_points", :url => update_points_story_path( @project, story ), :param_name => 'story[points]',
                                                :ajax_options => { :method => :put }, :eval_scripts => true,
                                                :ok_button => false, :size => 3 %>
{'fraction_non_alphanumeric': 0.23357503845308725, 'fraction_numerical': 0.001098659635245001, 'mean_word_length': 4.464585834333733, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 131, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4648083', 'n_tokens_mistral': 1671, 'n_tokens_neox': 1607, 'n_words': 306}