<div metal:define-macro="actions">
<div tal:define="isAnon python:here.portal_membership.isAnonymousUser();
                 AuthClass python:isAnon and 'GuestActions' or 'MemberActions';
                 member here/portal_membership/getAuthenticatedMember;
				 uname python: isAnon and 'Guest' or member.getUserName();
                 a_tool here/portal_actions;
                 wf_tool here/portal_workflow;
				 actions python:a_tool.listFilteredActionsFor(here);
				 user_actions actions/user;
				 folder_actions actions/folder;
				 object_actions python:( actions['object']
                                       + actions['workflow'] );
				 global_actions actions/global;
                ">
<table class="ActionBox" width="100%">
 <tbody tal:condition="object_actions">
 <tr class=""
     tal:attributes="class AuthClass">
  <td class="ActionTitle"
      tal:define="getIcon python:hasattr(here, 'getIcon') and here.getIcon();
	              icon python:getIcon or getattr(here, 'icon', '');
				  typ python:getattr(here, 'Type', '');
				  objID python:here.getId()">
     <img src=""
	      tal:condition="icon" align="left" alt="Type"
		  tal:attributes="src string:${here/portal_url}/${icon};
                          alt typ" />
     <span tal:replace="structure python: here.truncID(objID, size=15)"
     >ObjectID</span>
  </td>
 </tr>
 <tr class="" tal:attributes="class AuthClass">
  <td tal:define="review_state python:wf_tool.getInfoFor( here
                                                        , 'review_state', '')">
    <span tal:condition="review_state"
    >Status:  <span tal:replace="review_state">Private</span><br></span>
    <span tal:repeat="action object_actions"
    ><a href=""
        tal:attributes="href action/url"
        tal:content="action/name">Action</a><br></span>
  </td>
 </tr>
</tbody>
<tr class=""
     tal:attributes="class AuthClass"
	 tal:condition="folder_actions">
  <td> 
    <span tal:repeat="action folder_actions"
    ><a href="" tal:attributes="href action/url"
        tal:content="action/name">Action</a><br></span>
  </td>
 </tr>
 <tr class=""
     tal:attributes="class AuthClass"
	 tal:condition="global_actions">
  <td>
   <span tal:repeat="action global_actions"
   ><a href="" tal:attributes="href action/url"
       tal:content="action/name">Action</a><br></span>
  </td>
 </tr>
</table>
</div>
</div>