kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
2.0 KiB
62 lines
2.0 KiB
12 years ago
|
<%#-- 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.
|
||
|
|
||
|
++#%>
|
||
|
|
||
12 years ago
|
<%#
|
||
|
Used from app/views/projects/settings/_timelines.html.erb
|
||
|
%>
|
||
12 years ago
|
<h3><%= Scenario.model_name.human %></h3>
|
||
12 years ago
|
|
||
|
<div class='contextual timelines-for_previous_heading'>
|
||
|
<%= link_to(l("timelines.new_scenario"),
|
||
12 years ago
|
new_project_scenario_path(@project),
|
||
12 years ago
|
:title => l("timelines.new_scenario"),
|
||
|
:class => 'icon icon-add') %>
|
||
|
</div>
|
||
|
|
||
|
<table class='list'>
|
||
|
<thead>
|
||
|
<tr>
|
||
12 years ago
|
<th colspan="2"><%= Scenario.human_attribute_name(:name) %></th>
|
||
|
<th><%= Scenario.human_attribute_name(:created_at) %></th>
|
||
|
<th><%= Scenario.human_attribute_name(:updated_at) %></th>
|
||
12 years ago
|
<th> <!-- Actions --></th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
12 years ago
|
<% @project.scenarios.each do |scenario| %>
|
||
12 years ago
|
<tr class="<%= cycle('odd', 'even', :name => "scenario_table") %>">
|
||
|
<td class="timelines-scenario-name">
|
||
|
<%=h scenario.name %>
|
||
|
</td>
|
||
|
<td class="timelines-scenario-description">
|
||
|
<%= l('timelines.used_in_x_planning_elements', :count => scenario.alternate_dates.count) %>
|
||
|
</td>
|
||
|
<td class="timelines-scenario-created_at">
|
||
|
<%= time_tag(scenario.created_at) %>
|
||
|
</td>
|
||
|
<td class="timelines-scenario-updated_at">
|
||
|
<%= time_tag(scenario.updated_at) %>
|
||
|
</td>
|
||
|
<td class="timelines-scenario-actions">
|
||
|
<%= link_to l(:button_edit),
|
||
12 years ago
|
edit_project_scenario_path(@project, scenario),
|
||
12 years ago
|
:class => 'icon icon-edit' %>
|
||
|
<%= link_to l(:button_delete),
|
||
12 years ago
|
confirm_destroy_project_scenario_path(@project, scenario),
|
||
12 years ago
|
:class => 'icon icon-del' %>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</tbody>
|
||
|
</table>
|