<commit_before><% @title = "Spot.us - Member Dashboard" %>
<%= render :partial => "layouts/common_questions" %>
<div id="myspot_dashboard">
   <h3>My Spot</h3>
   <%= render :partial => "myspot/nav", :locals => {:selected_tab => "dashboard"} %>
   <%= render :partial => "myspot/dashboard_nav", :locals => {:selected_tab => "posts"} %>
   <div id="dashboard_content">
     <% if @posts.blank? %>
       <p>
         You haven't made any blog posts yet.  Visit the
         <%= link_to 'My Pitches', myspot_pitches_path %>
         page to make one.
       </p>
     <% else %>
       <table>
         <tr>
           <th>Pitch</th>
           <th>Title</th>
           <th>Actions</th>
         </tr>
            <% @posts.each do |post| %>
              <tr>
                <td class="pitch">
                  <%= link_to image_tag(post.pitch.featured_image.url(:thumb)), pitch_url(post.pitch) %>
                  <%= link_to post.pitch.headline, pitch_url(post.pitch) %>
                </td>
                <td><%= link_to post.title, pitch_post_url(post.pitch, post) %></td>
                <td>
                  <%= link_to 'Edit', edit_pitch_post_url(post.pitch, post) %>
                  <%= link_to 'Delete', pitch_post_url(post.pitch, post), :method => :delete, :confirm => "Are you sure you want to delete this blog post?" %>
                </td>
              </tr>
           <% end %>
         </table>
      <% end %>
   </div>
</div><commit_msg>adding pagination for blogposts inside myspot<commit_after><% @title = "Spot.us - Member Dashboard" %>
<%= render :partial => "layouts/common_questions" %>
<div id="myspot_dashboard">
   <h3>My Spot</h3>
   <%= render :partial => "myspot/nav", :locals => {:selected_tab => "dashboard"} %>
   <%= render :partial => "myspot/dashboard_nav", :locals => {:selected_tab => "posts"} %>
   <div id="dashboard_content">
     <% if @posts.blank? %>
       <p>
         You haven't made any blog posts yet.  Visit the
         <%= link_to 'My Pitches', myspot_pitches_path %>
         page to make one.
       </p>
     <% else %>
       <table>
         <tr>
           <th>Pitch</th>
           <th>Title</th>
           <th>Actions</th>
         </tr>
            <% @posts.each do |post| %>
              <tr>
                <td class="pitch">
                  <%= link_to image_tag(post.pitch.featured_image.url(:thumb)), pitch_url(post.pitch) %>
                  <%= link_to post.pitch.headline, pitch_url(post.pitch) %>
                </td>
                <td><%= link_to post.title, pitch_post_url(post.pitch, post) %></td>
                <td>
                  <%= link_to 'Edit', edit_pitch_post_url(post.pitch, post) %>
                  <%= link_to 'Delete', pitch_post_url(post.pitch, post), :method => :delete, :confirm => "Are you sure you want to delete this blog post?" %>
                </td>
              </tr>
           <% end %>
			 <tr>
				<td colspan='3'><%=will_paginate @posts%></td>
			</tr>
         </table>
      <% end %>
   </div>
</div>
{'fraction_non_alphanumeric': 0.1742998352553542, 'fraction_numerical': 0.0016474464579901153, 'mean_word_length': 1.8804554079696394, 'pattern_counts': {'":': 0, '<': 90, '<?xml version=': 0, '>': 108, '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': '1671948', 'n_tokens_mistral': 1065, 'n_tokens_neox': 960, 'n_words': 213}