<commit_before><% @title = t('.title', :state_name => @tracking_list.current_state_humanized) -%>
<% dowload_link = String.new

   if @tracking_list.tracked_items.count > 0
    download_link = link_to(t('.download_for_excel'),
    repository_tracking_list_url(:id => @tracking_list,
    :repository_id => @tracking_list.repository, :format => :xls))
   end -%>


<fieldset class="tracking_list">
  <% if @download_modal -%>
    <div id="xl-download-link" style="display: none;">
      <h3 style="text-align: center"><%= download_link -%>
        |
        <%= link_to(t('.finish'), '/') -%></h3>
    </div>
  <% end -%>
  <h3><%=  @title -%>
    <% unless download_link.blank? -%>
      <% if @download_modal -%>
        <%= link_to_redbox(t('.download_for_excel'), 'xl-download-link', :id => 'RB-xl-download-start') -%>
	<%= javascript_tag("jQuery(document).ready(function(){
			    jQuery('#RB-xl-download-start').click();
			    });") -%>
      <% else -%>
        (<%= download_link -%>)
      <% end -%>
    <% end -%>
    
    <% if @tracking_list.tracking_events.size > 0 -%>
    ( <%= link_to(t('.history'), tracking_events_url( :historical_item_type => @tracking_list.class.name, :historical_item_id => @tracking_list.id )) -%> )
    <% end -%>
  </h3>

  <p>
    <%= t('.displaying', :start => @start_record, :end => @end_record, :total => @tracked_items.total_entries) -%>
  </p>
  
  <% if @tracking_list.tracked_items.size > 0 -%>
    <table class="order">
      <tr>
	<th abbr="Actions for Tracked Item"><%= t '.tracked_item_actions' %></th>
	<th abbr="Tracked Item Series No"><%= t '.tracked_item_series_no' -%></th>
	<th abbr="Tracked Item Box No"><%= t '.tracked_item_box_no' -%></th>
	<th abbr="Tracked Item Item No"><%= t '.tracked_item_item_no' -%></th>
	<th abbr="Tracked Item"><%= t '.tracked_item_description'	-%></th>
	<th abbr="Tracked Item Status"><%= t '.tracked_item_status' -%></th>
	<th abbr="Tracked Item Shelf Code"><%= t '.tracked_item_shelf_code' -%></th>
      </tr>

      <%= render :partial => 'tracked_items/tracked_item_trackable_item_pair',
                         :collection => @tracked_item_trackable_item_pairs,
                         :locals => { :tracking_list => @tracking_list } -%>

      <tr><td colspan="7" style="text-align: right"><%= will_paginate @tracked_items -%></td></tr>

      <tr class="order-buttons">
	<td><%= t '.tracking_list_controls_preface' -%></td>
	
	<td colspan="5">
	  <% if @tracking_list.tracked_items.count > 0 -%>
	    <%= render :partial => 'event_button', :collection => @possible_events, :locals => { :tracking_list => @tracking_list } %>
	  <% end -%>
	</td>

      </tr>
    </table>

    <% else -%>
      <p><%= t '.not_items_in_tracking_list' %></p>
    <% end -%>

    <% if @tracking_list.current_state.name == :new -%>
      <div id="trackable_item_search_form">
	<%= render :partial => 'trackable_item_search_form', :locals => { :target => @tracking_list } -%>
      </div>
    <% end -%>

</fieldset>
<commit_msg>Improving column layout in tracking list action row.<commit_after><% @title = t('.title', :state_name => @tracking_list.current_state_humanized) -%>
<% dowload_link = String.new

   if @tracking_list.tracked_items.count > 0
    download_link = link_to(t('.download_for_excel'),
    repository_tracking_list_url(:id => @tracking_list,
    :repository_id => @tracking_list.repository, :format => :xls))
   end -%>


<fieldset class="tracking_list">
  <% if @download_modal -%>
    <div id="xl-download-link" style="display: none;">
      <h3 style="text-align: center"><%= download_link -%>
        |
        <%= link_to(t('.finish'), '/') -%></h3>
    </div>
  <% end -%>
  <h3><%=  @title -%>
    <% unless download_link.blank? -%>
      <% if @download_modal -%>
        <%= link_to_redbox(t('.download_for_excel'), 'xl-download-link', :id => 'RB-xl-download-start') -%>
	<%= javascript_tag("jQuery(document).ready(function(){
			    jQuery('#RB-xl-download-start').click();
			    });") -%>
      <% else -%>
        (<%= download_link -%>)
      <% end -%>
    <% end -%>
    
    <% if @tracking_list.tracking_events.size > 0 -%>
    ( <%= link_to(t('.history'), tracking_events_url( :historical_item_type => @tracking_list.class.name, :historical_item_id => @tracking_list.id )) -%> )
    <% end -%>
  </h3>

  <p>
    <%= t('.displaying', :start => @start_record, :end => @end_record, :total => @tracked_items.total_entries) -%>
  </p>
  
  <% if @tracking_list.tracked_items.size > 0 -%>
    <table class="order">
      <tr>
	<th abbr="Actions for Tracked Item"><%= t '.tracked_item_actions' %></th>
	<th abbr="Tracked Item Series No"><%= t '.tracked_item_series_no' -%></th>
	<th abbr="Tracked Item Box No"><%= t '.tracked_item_box_no' -%></th>
	<th abbr="Tracked Item Item No"><%= t '.tracked_item_item_no' -%></th>
	<th abbr="Tracked Item"><%= t '.tracked_item_description'	-%></th>
	<th abbr="Tracked Item Status"><%= t '.tracked_item_status' -%></th>
	<th abbr="Tracked Item Shelf Code"><%= t '.tracked_item_shelf_code' -%></th>
      </tr>

      <%= render :partial => 'tracked_items/tracked_item_trackable_item_pair',
                         :collection => @tracked_item_trackable_item_pairs,
                         :locals => { :tracking_list => @tracking_list } -%>

      <tr><td colspan="7" style="text-align: right"><%= will_paginate @tracked_items -%></td></tr>

      <tr class="order-buttons">
	<td colspan="2"><%= t '.tracking_list_controls_preface' -%></td>
	
	<td colspan="5">
	  <% if @tracking_list.tracked_items.count > 0 -%>
	    <%= render :partial => 'event_button', :collection => @possible_events, :locals => { :tracking_list => @tracking_list } %>
	  <% end -%>
	</td>

      </tr>
    </table>

    <% else -%>
      <p><%= t '.not_items_in_tracking_list' %></p>
    <% end -%>

    <% if @tracking_list.current_state.name == :new -%>
      <div id="trackable_item_search_form">
	<%= render :partial => 'trackable_item_search_form', :locals => { :target => @tracking_list } -%>
      </div>
    <% end -%>

</fieldset>

{'fraction_non_alphanumeric': 0.2113767518549052, 'fraction_numerical': 0.0034624896949711458, 'mean_word_length': 3.314366998577525, 'pattern_counts': {'":': 0, '<': 165, '<?xml version=': 0, '>': 215, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '352048', 'n_tokens_mistral': 2386, 'n_tokens_neox': 2193, 'n_words': 386}