<style type="text/css">
	.click {
		background: green
	}
	.unclick {
		background: blue
	}
	#tag {
		background-color: #dbe4ee;
		border-radius: 5px 5px 5px 5px;
		color: #3a587d !important;
		padding: 0px 4px;
		margin: 3px;
		display: inline-block;
		font-size: 11px;
		text-decoration: none;
		cursor: pointer;
	}
</style>
<!-- 1代表是user类型   2代表是project类型  3代表是issue类型   4代表需求-->
<% @tags = obj.reload.tag_list %>

<% if non_list_all and (@tags.size > 0) %>
<!-- 这里是显示的非主页的tag 所以当tag数量较多时 不必全部显示 用“更多”代替  -->
  <% if @tags.size > Setting.show_tags_length.to_i then %>
    <% i = 0 %>
    <% until i>Setting.show_tags_length.to_i do %>
    <div id="tag" class="click unclick">
    	<%= link_to @tags[i], :controller => "tags",:action => "index",:q => @tags[i],:object_flag => object_flag,:obj_id => obj.id %>
    </div>
    	<% i += 1%>
    <% end %>
 	<%= link_to l(:label_more_tags),:action => "show",:id => obj.id %>

   <% else %>

     <% @tags.each do |tag| %>
      <div id="tag" class="click unclick">
	  <%= link_to tag,:controller => "tags",:action => "index",:q=>tag,:object_flag => object_flag,:obj_id => obj.id 
	  %>   
      </div>
    <% end %>
   <% end %>

<% else %>
<!-- 用来显示三大对象的主页中的tag  故是全部显示  -->
 <% if @tags.size > 0  %>
     <% @tags.each do |tag| %>
      <div id="tag" class="click unclick">
	  <%= link_to tag,:controller => "tags",:action => "index",:q=>tag ,:object_flag => object_flag,:obj_id => obj.id %>   
      </div>
    <% end %>
  <% end %>
  
<% end %>