anchor.diff:                  <%= options_for_select @dates, params[:filter_date] %>
               </select>
   
  -            <% if @projects.size > 1 %>
  +            <% if current_user.projects.any? %>
               <select name="filter_project" id="filter_project" onchange="time_line_filters.submit();">
                 <option value="0" class="select_default"><%= _("[Any Project]") %></option>
  -              <% @clients = Customer.where("company_id = ?", current_user.company_id).order("name") %>
  -              <% @clients.each do |c| %>
  -              <% @client_projects = current_user.projects.where("completed_at IS NULL AND customer_id = ?", c.id).reorder('name') %>
  -              <% if @client_projects.size > 0 %>
  -              <optgroup class="select_heading" label="<%= h(c.name) %>">
  -                <% @client_projects.each do |p| %>
  -                  <option value="<%=p.id%>" class="select_item"<%= " selected" if p.id.to_s == params[:filter_project] %>><%= p.name %></option>
  +              <% projects = current_user.projects.includes(:customer).reorder("customers.name, projects.name") %>
  +              <% client_projects = grouped_client_projects_options(projects)%>
  +              <% client_projects.each do |c| %>
  +              <optgroup class="select_heading" label="<%= c.first %>">
  +                <% c.last.each do |p| %>
  +                  <option value="<%=p.last%>" class="select_item"<%= " selected" if p.last.to_s == params[:filter_project] %>><%= p.first %></option>
                   <% end %>
                 </optgroup>
  -              <% end %>
   
                 <% end %>
   
  
positive.code:                             [_("Created"), EventLog::TASK_CREATED.to_s],
                              [_("Comment"), EventLog::TASK_COMMENT.to_s],
                              [_("Modified"), EventLog::TASK_MODIFIED.to_s]]
            
                   @status << [_("Forum Posts"), EventLog::FORUM_NEW_POST.to_s] if current_user.company.show_forum?
                   @status << [_("Wiki Additions"), EventLog::WIKI_CREATED.to_s] if current_user.company.show_wiki?
                   @status << [_("Wiki Changes"), EventLog::WIKI_MODIFIED.to_s] if current_user.company.show_wiki?
  
negative.code:           </tr>
              <% end %>
              <% if log.is_a? WorkLog %>
                <%= render :partial => 'activities/log_row', :locals => { :log => log } %>
              <% else %>
                <% if  log.target_type == 'WorkLog' %>
                  <%= render :partial => 'activities/log_row', :locals => { :log => @worklogs[log.target_id] } %>
                <% else %>
                  <%= render :partial => 'activities/other_row', :locals => {:log => log } %>
                <% end %>
  