Showing <%= tickets.length %> of <%= @ticket_count %>.<br/>
<% form_tag :action => 'mass_update', :method => :post do %>
<ul>
  <% tickets.each do |ticket| -%>
    <li class="ticket_list <%= cycle('even', 'odd') %>">
      <span style="display: inline-block; width: 3em; text-align: right;"><%= ticket.number %></span>
      <%= check_box_tag "ticket_#{ticket.id}" %>
      <%= link_to(ticket.title, url_for(:controller => 'tickets', :project_id => project.id, :id => ticket.number, :action => 'show')) %>
      <% body = Project.find_by_lighthouse_id(project.id).tickets.find_by_number(ticket.number).lighthouse.versions.first.body %>
      <% unless ticket.tags.blank? -%>
        <b style="color: #000000">&nbsp;&mdash;&nbsp;</b>
	<span style="color: #c8c8c8">
	  <%= ticket.tags.join(', ') %>
	</span>
	<% end -%>
      <b style="color: #000000">&nbsp;&mdash;&nbsp;</b>
      <span style="color: #b8b8b8"><%= h(body.to_s[0..128]) %><%= (body.blank? || body.length < 128) ? "" : "..." %></span>
    </li>
<% end -%>
</ul>
<% end %>

Showing <%= tickets.length %> of <%= @ticket_count %>.<br/>
<% form_tag :action => 'mass_update', :method => :post do %>
<ul>
  <% tickets.each do |ticket| -%>
    <li class="ticket_list <%= cycle('even', 'odd') %>">
      <span style="display: inline-block; width: 3em; text-align: right;"><%= ticket.number %></span>
      <%= check_box_tag "ticket_#{ticket.id}" %>
      <%= link_to(ticket.title, url_for(:controller => 'tickets', :project_id => project.id, :id => ticket.number, :action => 'show')) %>
      <% body = current_user.projects.find_by_lighthouse_id(project.id).tickets.find_by_number(ticket.number).lighthouse.versions.first.body %>
      <% unless ticket.tags.blank? -%>
        <b style="color: #000000">&nbsp;&mdash;&nbsp;</b>
	<span style="color: #c8c8c8">
	  <%= ticket.tags.join(', ') %>
	</span>
	<% end -%>
      <b style="color: #000000">&nbsp;&mdash;&nbsp;</b>
      <span style="color: #b8b8b8"><%= h(body.to_s[0..128]) %><%= (body.blank? || body.length < 128) ? "" : "..." %></span>
    </li>
<% end -%>
</ul>
<% end %>

Use the current user to scope the tickets being searched.
Use the current user to scope the tickets being searched.
