<% unless tag_list.nil?%>
    <% tag_list.each do |k,v|%>
        <% if tag_name && tag_name == k%>
            <a href="javascript:void(0);" class="files_tag_select"><%= k%>×<%= v%></a>
        <% else%>
            <a href="javascript:void(0);" class="files_tag_icon" onclick="search_tag_attachment('<%= search_tag_attachment_course_files_path(course)%>','<%= k%>','<%= @q%>','<%= course.id%>');"><%= k%>×<%= v%></a>
        <% end%>
    <% end%>
<% end%>