?>
</a><?php 
} else {
    ?>
<a href="mailto:<?php 
    echo $projectUser->getEmail();
    ?>
"><span class="glyphicon glyphicon-envelope" style="margin-left:5px;margin-right:4px;" aria-hidden="true"></span><?php 
    echo $projectUser->getEmail();
    ?>
</a><?php 
}
?>
)<br/>
	<?php 
echo $project->outputDates();
?>
<br/>
	<?php 
echo $project->outputDuration();
?>
	<?php 
echo $project->outputLocation();
?>
</small></p>
</h3>
<?php 
if ($project->recentPost() && $user->getId() == $project->getUserId()) {
    ?>
	<div class="alert alert-success storage-request-notice">
		<p>Now you've made a storage request don't forget:</p>
         $auto = true;
         $logDetails = "Request created";
         $project->setState('Pending Approval');
         $initial = true;
     } else {
         $auto = false;
         $logDetails = "Request updated";
         $initial = false;
     }
     $project->setUpdatedDate(date('Y-m-d'));
     $project->setUserId($user->getId());
     $project->store();
     $project->submitLog($logDetails, $user->getId());
     // post to Google Groups
     $projectUser = new User($project->getUserId());
     $message = '<strong>' . $project->getName() . "</strong><br>\n" . "https://london.hackspace.org.uk/storage/" . $project->getId() . "<br>\n" . "by <a href=\"https://london.hackspace.org.uk/members/member.php?id=" . $project->getUserId() . "\">" . htmlspecialchars($projectUser->getFullName()) . "</a><br>\n" . $project->outputDates() . "<br>\n" . $project->outputDuration() . ' ' . $project->outputLocation() . "<br>\n<br>\n" . nl2br(stripslashes($project->getDescription())) . "<br>\n<br>\n";
     if ($auto && !$project->isShortTerm()) {
         $message .= "<strong>***If no one replies to this topic the request will be automatically approved within " . $project->automaticApprovalDuration() . " days.***</strong>";
     }
     $project->submitMailingList($message, $initial);
     // is this a short term request? If so automatically approve it
     if ($project->isShortTerm()) {
         $project->setState('Approved');
         $project->store();
         // log the update
         $logmsg = 'Short term storage detected, status automatically changed to ' . $project->getState();
         $project->submitLog($logmsg, false);
         $project->submitMailingList($logmsg);
     }
     fURL::redirect("/storage/{$project->getId()}");
 } catch (fValidationException $e) {