<?php 
    } elseif ($jotag->getStatus() == TagPeer::ST_EXPIRED) {
        ?>
<em><font color="red"><?php 
        echo __("this Jotag has expired");
        ?>
</font></em><?php 
    }
    ?>
							</span>
							<span class="actions">
								<?php 
    if ($jotag->getTagAuths(TagAuthPeer::buildPendingCriteria())) {
        ?>
									<?php 
        echo link_to(__('%count% pending requests', array('%count%' => count($jotag->getTagAuths(TagAuthPeer::buildPendingCriteria())))), '@manage_auth_request?jotag=' . $jotag->getJotag());
        ?>
 |
								<?php 
    }
    ?>
								<?php 
    if (!$jotag->getIsPrimary()) {
        ?>
								<?php 
        echo link_to(__('receipt'), '@receipts?jotag=' . $jotag->getJotag());
        ?>
 |
								<?php 
    }
    ?>
 /**
  * Handles manage requests action
  *
  * @param sfWebRequest $request Web request object
  */
 public function executeManageRequests($request)
 {
     $jotag = TagPeer::getFromField(TagPeer::JOTAG, $request->getParameter('jotag'));
     $this->jotag = $jotag;
     $this->forward404Unless($this->jotag && TagPeer::isValid($this->jotag) && $this->jotag->getUser()->getId() == $this->getUser()->getSubscriberId());
     // && ($jotag->getTagPrivacy()->getPrivacyType() == TagPrivacyPeer::PRIVACY_AUTH));
     $this->pending = $jotag->getTagAuthsJoinUser(TagAuthPeer::buildPendingCriteria());
     $this->authorized = $jotag->getTagAuthsJoinUser(TagAuthPeer::buildAuthorizedCriteria());
     $this->denied = $jotag->getTagAuthsJoinUser(TagAuthPeer::buildDeniedCriteria());
 }