<%  
  def rcontext = _ctx.getRequestContext();
  rcontext.getJavascriptManager().addOnLoadJavascript("eXo.ecm.UIListView.setHeight()");
%>
<div class="SideBarContent">
  <div class="BarContent">
  	<div class="BarContentL">
  		<div class="BarContentR">
  			<div class="BarContentM">
			    <div class="Title"><%=_ctx.appRes("UITagExplorer.title.PrivateTags")%></div>
			  	<div class="TagExplorer" 
			  			 title="<%=_ctx.appRes("UITagExplorer.title.EditPrivateTags")%>"
			  			 onclick="<%=uicomponent.event("EditTags", "Private")%>"><span></span></div>
			  	<div class="ClearLeft"><span></span></div>
			  </div>
  		</div>
		</div>
	</div>
  <div class="SideContent">
		<div class="$uicomponent.id"> 
		  <div class="TagmapHolder">
		    <div class ="TagmapContent"> 
		      <%
				    def tagStyle = uicomponent.getTagStyle() ;  
		        for(tag in uicomponent.getPrivateTagLink()){
		          String tagLink = uicomponent.event('ViewTag',tag.getPath()) ;
		          int tagCount = 0 ;
		          String style = "" ;
		          if(tag.hasProperty("exo:total")) {
		            tagCount = (int)tag.getProperty("exo:total").getValue().getLong() ;
		            style = "Style = '" + uicomponent.getTagHtmlStyle(tagStyle, tagCount)+ "'" ;
		          }
		          println "<a href=\"$tagLink\" $style>$tag.name</a>" ;
		        }
		      %>
		    </div>  
		  </div>  
		</div>
  </div>
  
</div>

<div class="SideBarContent">
<div class="BarContent">
	<div class="BarContentL">
		<div class="BarContentR">
			<div class="BarContentM">
		    <div class="Title"><%=_ctx.appRes("UITagExplorer.title.PublicTags")%></div>
		  	<div class="TagExplorer" 
		  			 title="<%=_ctx.appRes("UITagExplorer.title.EditPublicTags")%>"
		  			 onclick="<%=uicomponent.event("EditTags", "Public")%>" ><span></span></div>
		  	<div class="ClearLeft"><span></span></div>
		  </div>
		</div>
	</div>
</div>

<div class="SideContent">
	<div class="$uicomponent.id"> 
	  <div class="TagmapHolder">
	    <div class ="TagmapContent"> 
	      <%
//			    def tagStyle = uicomponent.getTagStyle() ;  
	        for(tag in uicomponent.getPublicTagLink()){
	          String tagLink = uicomponent.event('ViewTag',tag.getPath()) ;
	          int tagCount = 0;
	          String style = "" ;
	          if(tag.hasProperty("exo:total")) {
	            tagCount = (int)tag.getProperty("exo:total").getValue().getLong() ;
	            style = "Style = '" + uicomponent.getTagHtmlStyle(tagStyle, tagCount)+ "'" ;
	          }
	          println "<a href=\"$tagLink\" $style>$tag.name</a>" ;
	        }
	      %>
	    </div>  
	  </div>  
	</div>
</div>

</div>
