_show.html.erb 437 B

123456789101112
  1. <p>
  2. Data for this Agent is available at these URLs:
  3. </p>
  4. <ul>
  5. <% @agent.options['secrets'].each do |secret| %>
  6. <% url = lambda { |format| web_requests_url(:agent_id => @agent.id, :user_id => current_user.id, :secret => secret, :format => format) } %>
  7. <li><%= link_to url.call(:json), url.call(:json), :target => :blank %></li>
  8. <li><%= link_to url.call(:xml), url.call(:xml), :target => :blank %></li>
  9. <% end %>
  10. </ul>