<%#-- copyright OpenProject is a project management system. Copyright (C) 2012-2013 the OpenProject Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. See doc/COPYRIGHT.rdoc for more details. ++#%> <%# Used from app/views/projects/settings/_timelines.html.erb %>

<%= Scenario.model_name.human %>

<%= link_to(l("timelines.new_scenario"), new_project_scenario_path(@project), :title => l("timelines.new_scenario"), :class => 'icon icon-add') %>
<% @project.scenarios.each do |scenario| %> "> <% end %>
<%= Scenario.human_attribute_name(:name) %> <%= Scenario.human_attribute_name(:created_at) %> <%= Scenario.human_attribute_name(:updated_at) %>  
<%=h scenario.name %> <%= l('timelines.used_in_x_planning_elements', :count => scenario.alternate_dates.count) %> <%= timelines_time_tag(scenario.created_at) %> <%= timelines_time_tag(scenario.updated_at) %> <%= link_to l(:button_edit), edit_project_scenario_path(@project, scenario), :class => 'icon icon-edit' %> <%= link_to l(:button_delete), confirm_destroy_project_scenario_path(@project, scenario), :class => 'icon icon-del' %>