共有&nbsp;<span id="attachment_count"><%= @tip_all_attachments %></span>&nbsp;个资源
<% if @tip_all_private_attachments != 0 %>
    <span id="attachment_count_public" class="fontGrey2 ml10" style="font-weight: normal;">公共资源：<%= @tip_all_public_attachments %>个</span>
    <% if @project  %>
        <% if !User.current.member_of?(@project) && params[:tag_name] %>
            <span id="attachment_count_private" class="fontGrey2 ml10" style="font-weight: normal;">私有资源：0个</span>
        <% else %>
            <span id="attachment_count_private" class="fontGrey2 ml10" style="font-weight: normal;">私有资源：<%= @tip_all_private_attachments %>个</span>
        <% end %>
    <% elsif @course %>
        <% if !User.current.member_of_course?(@course) && params[:tag_name] %>
            <span id="attachment_count_private" class="fontGrey2 ml10" style="font-weight: normal;">私有资源：0个</span>
        <% else %>
            <span id="attachment_count_private" class="fontGrey2 ml10" style="font-weight: normal;">私有资源：<%= @tip_all_private_attachments %>个</span>
        <% end %>
    <% end %>

<% end %>
