2012-04-20 05:53:46 +00:00
|
|
|
<div>
|
|
|
|
|
<% if( requests.length > 0 ) { %>
|
2012-04-21 04:56:40 +00:00
|
|
|
<div>
|
|
|
|
|
<h4>Search Requests <% if( sessionId === ownerId ) { %>(click one to give control to the requester)<% } %></h4>
|
|
|
|
|
</div>
|
|
|
|
|
<% _.each( requests, function ( request, idx ) { %>
|
|
|
|
|
<div>(Client ID: <%= request.correlationId %>) -
|
|
|
|
|
<% if( sessionId === ownerId ) { %>
|
|
|
|
|
<a class="req-allow" href="<%= idx %>"><%= request.searchTerm %></a>
|
|
|
|
|
<% } else { %>
|
|
|
|
|
<%= request.searchTerm %>
|
|
|
|
|
<% } %>
|
|
|
|
|
</div>
|
|
|
|
|
<% }) %>
|
2012-04-20 05:53:46 +00:00
|
|
|
<% } else { %>
|
2012-04-21 04:56:40 +00:00
|
|
|
<div><em>No other searches have been requested at this time.</em></div>
|
2012-04-20 05:53:46 +00:00
|
|
|
<% } %>
|
|
|
|
|
</div>
|