<% if related_tags %>
<ul style="list-style-type: none">
	<% i = 0 %>
	<% for rt in related_tags %>
    <% i += 1 %>
	<li>	
		<%= link_to image_tag("/images/sidebar/add.png"),:action => "index",
		                      :current_selected_tags => selected_tags,:tag => rt,:do_what => "1",
		                              :obj_id => obj_id,:object_flag => obj_flag %>
		<span id="tag">
		<%= rt %> 
		</span>
		<% break if i >= 10 %>
		<!-- 这里用例计数某类对象的所有该tag总数 -->
	 <%= render :partial => 'sidebar_tags',:locals => {:show_flag => obj_flag,:sg => rt }%>
	</li>
	<% end %>
</ul>
<% end %>
