_show.html.erb 572 B

123456789101112131415
  1. <p>
  2. Data for this Agent is available at these URLs:
  3. </p>
  4. <ul>
  5. <% url = lambda { |format| web_requests_url(:agent_id => @agent.id, :user_id => current_user.id, :secret => @agent.options['secret'], :format => format) } %>
  6. <li><%= link_to url.call(:html), url.call(:html), :target => :blank %></li>
  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. </ul>
  10. <p>
  11. ... or any other extension you wish, as the extension does not change the content or mime type.
  12. </p>