undefined_agents.html.erb 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <div class="container">
  2. <div class='row'>
  3. <div class='col-md-12'>
  4. <div class="page-header">
  5. <h3>
  6. <div class="alert alert-danger" role="alert">
  7. Error: Agent(s) are 'missing in action'
  8. </div>
  9. </h3>
  10. </div>
  11. <blockquote>
  12. <p>
  13. You have one or more Agents registered in the database for which no corresponding definition is available in the source code:
  14. </p>
  15. <ul>
  16. <% @undefined_agent_types.each do |type| %>
  17. <li><%= agent_type_to_human(type) %></li>
  18. <% end %>
  19. </ul>
  20. <br/>
  21. <p>
  22. This issue probably occurred for one or more of the following reasons:
  23. </p>
  24. <ul>
  25. <li>If the respective Agent is distributed as part of the Huginn application codebase, it may have been removed or moved to an Agent gem. Please see <a href="https://github.com/huginn/huginn/wiki/Dealing-with-Deleted-Agent-Types" target="_blank">this wiki page for more information</a>.</li>
  26. <li>If the respective Agent is distributed as a Ruby gem, it might have been removed from the <code>ADDITIONAL_GEMS</code> environment setting.</li>
  27. </ul>
  28. <br/>
  29. <p>
  30. You can fix this issue by:
  31. </p>
  32. <ul>
  33. <li>deleting the respective Agent(s) from the database using the button below.</li>
  34. <li>adding the respective Agent(s) to the the <code>ADDITIONAL_GEMS</code> environment setting. Please see <a href="https://github.com/huginn/huginn_agent" target="_blank">https://github.com/huginn/huginn_agent</a> for documentation on how to properly set it.</li>
  35. <li>adding the respective Agent(s) code to the Huginn application codebase (in case it was deleted accidentally).</li>
  36. </ul>
  37. <br/>
  38. <div class="btn-group">
  39. <%= link_to icon_tag('glyphicon-trash') + ' Delete Missing Agents', undefined_agents_path, class: "btn btn-danger", method: :DELETE, data: { confirm: 'Are you sure all missing Agents should be deleted from the database?'} %>
  40. </div>
  41. </blockquote>
  42. </div>
  43. </div>
  44. </div>