huginn/app/views/agents/index.html.erb
2017-01-30 21:07:37 -05:00

22 lines
923 B
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<% content_for :title, "Agents" -%>
<div class='container'>
<div class='row'>
<div class='col-md-12'>
<div class="page-header">
<h2><%= session[:original_admin_user_id].present? ? "#{current_user.username}s Agents" : 'Your Agents' %></h2>
</div>
<%= render 'agents/table' %>
<br/>
<div class="btn-group">
<%= link_to icon_tag('glyphicon-plus') + ' New Agent', new_agent_path, class: "btn btn-default" %>
<%= link_to icon_tag('glyphicon-refresh') + ' Run event propagation', propagate_agents_path, method: 'post', class: "btn btn-default" %>
<%= link_to icon_tag('glyphicon-random') + ' View diagram', diagram_path, class: "btn btn-default" %>
<%= link_to icon_tag('glyphicon-adjust') + toggle_disabled_text, toggle_visibility_agents_path, method: :put, class: "btn btn-default visibility-enabler" %>
</div>
</div>
</div>
</div>