anchor.diff:      <% end -%>
     </div>
   <% else -%>
  -  <span class="none_text">No items.</span>
  -<% end -%>+    <% 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 -%>
  +
  
positive.code: <% tabs_id ||= "resource_list_by_class" -%>
  <% narrow_view ||= false -%>
  <% authorization_already_done ||= false -%>
  
  <script type="text/javascript">
    tabber_ids.push("<%= tabs_id -%>");  
  </script>
  
  <% total_count = 0 %>
  
negative.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 => true } -%>
            <% 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">
                  <%= item ||= nil
                      if item
                          link_to "View all "+(extra_count + resources.size).to_s+" items", filter_url(resource_type, item)
                      else
                          link_to "View all items", eval("#{resource_type.pluralize.underscore}_path")
                      end
                          %>
                </div>
                <br style="clear:both"/>
              </div>
  