Scenarios are named groups of Agents. Scenarios allow you to organize your agents, and to import and export sets of Agents to share.
<% @scenarios.each do |scenario| %> <% end %>
<%= sortable_column 'name', 'asc' %> Agents <%= sortable_column 'public' %>
<%= scenario_label(scenario, content_tag(:i, '', class: 'glyphicon glyphicon-font')) %> <%= link_to(scenario.name, scenario) %> <%= link_to pluralize(scenario.agents.count, "agent"), scenario %> <%= scenario.public? ? "yes" : "no" %>
<%= link_to 'Show', scenario, class: "btn btn-default" %> <%= link_to 'Edit', edit_scenario_path(scenario), class: "btn btn-default" %> <%= link_to 'Share', share_scenario_path(scenario), class: "btn btn-default" %> <%= link_to 'Delete', scenario_path(scenario), method: :delete, data: { confirm: "This will remove the '#{scenario.name}' Scenerio from all Agents and delete it. Are you sure?" }, class: "btn btn-default" %>
<%= paginate @scenarios, :theme => 'twitter-bootstrap-3' %>
<%= link_to icon_tag('glyphicon-plus') + ' New Scenario'.html_safe, new_scenario_path, class: "btn btn-default" %> <%= link_to icon_tag('glyphicon-cloud-upload') + ' Import Scenario'.html_safe, new_scenario_imports_path, class: "btn btn-default" %>