anchor.diff:  <% tabs_id ||= "resource_list_by_class" -%>
   <% narrow_view ||= false -%>
   <% authorization_already_done ||= false -%>
  +<% unless authorization_already_done
  +       resource_hash.each_value do |res|
  +           unless res[:items].empty?
  +               total_count = res[:items].size
  +               res[:items] = res[:items].select &:can_view?
  +               res[:hidden_count] = total_count - res[:items].size
  +           end
  +       end
  +   end
  +%>
  +<% limit ||= nil
  +   if limit
  +       resource_hash.each_key do |key|
  +      if limit && resource_hash[key][:items].size > limit
  +        resource_hash[key][:extra_count] = resource_hash[key][:items].size - limit
  +        resource_hash[key][:items] = resource_hash[key][:items][0...limit]
  +      end
  +    end
  +   end
  +%>
   
   <script type="text/javascript">
  -  tabber_ids.push("<%= tabs_id -%>");  
  +  tabber_ids.push("<%= tabs_id -%>");
   </script>
   
   <% total_count = 0 %>
  
positive.code:         <div id="<%= resource_type.downcase.pluralize -%>" class="tabbertab"> 
            <% unless resources.empty? && extra_count < 1 %>
              <h3><%= "#{visible_resource_type} (#{resources.length+extra_count}#{"+"+hidden_count.to_s if hidden_count > 0})" -%></h3>
              <%= render :partial => "assets/resource_list", :locals => { :collection => resources, :narrow_view => narrow_view, :authorization_for_showing_already_done => authorization_already_done } -%>
            <% else %>
              <h3><%= "#{visible_resource_type} (0+#{hidden_count})" -%></h3>
            <% end %>
            <% unless extra_count < 1 %>
              <div class="list_items_container">
                <div class="hidden_list_item" style="color:#000">
                  <%= link_to "View all "+(extra_count + resources.size).to_s+" items", filter_url(resource_type, item) %>
                </div>
                <br style="clear:both"/>
              </div>
  
negative.code:     <% end -%>
    </div>
  <% else -%>
      <% if User.current_user.nil? %>
          <span class="none_text">You are not authorized to view the related items. Please log in first.</span>
      <% else %>
          <span class="none_text">No items.</span>
      <% end %>
  
  <% end -%>
  
  