% content_for :title, "Scenarios" -%>
Scenarios are named groups of Agents. Scenarios allow you to organize your agents, and to import and export sets of Agents to share.
<%= sortable_column 'name', 'asc' %> | Agents | <%= sortable_column 'public' %> | |
---|---|---|---|
<% if scenario.icon.blank? %> <%= scenario_label(scenario, icon('gear'))%> <% else %> <%= scenario_label(scenario, icon(scenario.icon))%> <% end %> <%= 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', '#', data: { toggle: 'modal', target: "#confirm-scenario-deletion-#{scenario.id}"}, class: "btn btn-default" %>
<%= render 'scenarios/confirm_deletion_modal', scenario: scenario %>
|