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.
157 lines
5.9 KiB
157 lines
5.9 KiB
11 years ago
|
<%#-- copyright
|
||
|
OpenProject Backlogs Plugin
|
||
|
|
||
11 years ago
|
Copyright (C)2013-2014 the OpenProject Foundation (OPF)
|
||
11 years ago
|
Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda
|
||
|
Copyright (C)2010-2011 friflaj
|
||
|
Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns
|
||
|
Copyright (C)2009-2010 Mark Maglana
|
||
|
Copyright (C)2009 Joe Heck, Nate Lowrie
|
||
|
|
||
|
This program is free software; you can redistribute it and/or modify it under
|
||
|
the terms of the GNU General Public License version 3.
|
||
|
|
||
|
OpenProject Backlogs is a derivative work based on ChiliProject Backlogs.
|
||
|
The copyright follows:
|
||
|
Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj
|
||
|
Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany
|
||
|
|
||
|
This program is free software; you can redistribute it and/or
|
||
|
modify it under the terms of the GNU General Public License
|
||
|
as published by the Free Software Foundation; either version 2
|
||
|
of the License, or (at your option) any later version.
|
||
|
|
||
|
This program is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
GNU General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU General Public License
|
||
|
along with this program; if not, write to the Free Software
|
||
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||
|
|
||
|
See doc/COPYRIGHT.rdoc for more details.
|
||
|
|
||
|
++#%>
|
||
|
|
||
14 years ago
|
<% content_for :header_tags do %>
|
||
9 years ago
|
<%= render :partial => 'shared/backlogs_header' %>
|
||
12 years ago
|
<%= stylesheet_link_tag 'backlogs/taskboard.css' %>
|
||
15 years ago
|
<% end %>
|
||
8 years ago
|
<% html_title @sprint.name %>
|
||
9 years ago
|
<%= toolbar title: @sprint.name do %>
|
||
9 years ago
|
<li class="toolbar-item toolbar-input-group" id="col_width">
|
||
|
<div>
|
||
|
<label for="col_width_input"><%= l('backlogs.column_width') %></label>
|
||
|
</div>
|
||
|
<input type="text" id="col_width_input">
|
||
|
</li>
|
||
14 years ago
|
<% if @sprint.has_burndown? %>
|
||
10 years ago
|
<li class="toolbar-item">
|
||
|
<%= show_burndown_link(@sprint) %>
|
||
|
</li>
|
||
14 years ago
|
<% end %>
|
||
11 years ago
|
<% end %>
|
||
14 years ago
|
|
||
12 years ago
|
<% breadcrumb_paths(link_to(l(:label_backlogs), backlogs_project_backlogs_path(@project)), link_to(@sprint.name, backlogs_project_backlogs_path(@sprint))) %>
|
||
14 years ago
|
|
||
14 years ago
|
<div id='rb'>
|
||
14 years ago
|
<div id="taskboard">
|
||
|
<table id="board_header" cellspacing="0">
|
||
|
<tr>
|
||
|
<td><%= l(:backlogs_story) %></td>
|
||
|
<% @statuses.each do |status| %>
|
||
|
<td class="swimlane"><%= status.name %></td>
|
||
|
<% end %>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<table id="impediments" class="board" cellspacing="0">
|
||
|
<tr>
|
||
|
<td><div class="label_sprint_impediments"><%= l(:label_sprint_impediments) %></div></td>
|
||
7 years ago
|
<% if User.current.allowed_to?(:add_work_packages, @project) %>
|
||
12 years ago
|
<td class ="add_new clickable">+</td>
|
||
|
<% else %>
|
||
|
<td class ="add_new"></td>
|
||
|
<% end %>
|
||
14 years ago
|
<% @statuses.each do |status| %>
|
||
|
<td class="swimlane list <%= status.is_closed? ? 'closed' : '' %>" id="impcell_<%= status.id %>">
|
||
12 years ago
|
<%= render :partial => "rb_impediments/impediment",
|
||
14 years ago
|
:collection => impediments_by_position_for_status(@sprint, @project, status) %>
|
||
14 years ago
|
</td>
|
||
|
<% end %>
|
||
|
</tr>
|
||
|
</table>
|
||
15 years ago
|
|
||
14 years ago
|
<table id="tasks" class="board" cellspacing="0">
|
||
14 years ago
|
<% @sprint.stories(@project).each do |story| %>
|
||
7 years ago
|
<% tasks_by_status_id = story.tasks.group_by(&:status_id) %>
|
||
|
|
||
13 years ago
|
<tr class="<%= story_html_id_or_empty(story) %>">
|
||
14 years ago
|
<td>
|
||
14 years ago
|
<div class="story <%= mark_if_closed(story) %>" id="<%= story_html_id_or_empty(story) %>">
|
||
14 years ago
|
<div class='story-bar'>
|
||
|
<div class="status">
|
||
|
<%= story.status.name %>
|
||
|
</div>
|
||
|
<div class="id">
|
||
11 years ago
|
<%= work_package_link_or_empty(story) %>
|
||
14 years ago
|
</div>
|
||
14 years ago
|
</div>
|
||
|
<div class="subject"><%= story.subject %></div>
|
||
11 years ago
|
<div class='story-footer'>
|
||
|
<div class="assigned_to_id">
|
||
|
<% if story.assigned_to.present? %>
|
||
|
<%= link_to_user(story.assigned_to) %>
|
||
|
<% else %>
|
||
|
<em><%= l('backlogs.unassigned') %></em>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
<div class="story-points">
|
||
|
<%= story.story_points %>
|
||
|
</div>
|
||
14 years ago
|
</div>
|
||
14 years ago
|
</div>
|
||
|
</td>
|
||
7 years ago
|
<% if User.current.allowed_to?(:add_work_packages, @project) %>
|
||
12 years ago
|
<td class ="add_new clickable">+</td>
|
||
|
<% else %>
|
||
|
<td class ="add_new"></td>
|
||
|
<% end %>
|
||
14 years ago
|
<% @statuses.each do |status| %>
|
||
14 years ago
|
<td class="swimlane list <%= status.is_closed? ? 'closed' : '' %>" id="<%= story.id %>_<%= status.id %>">
|
||
12 years ago
|
<%= render :partial => "rb_tasks/task",
|
||
7 years ago
|
:collection => tasks_by_status_id[status.id] %>
|
||
14 years ago
|
</td>
|
||
|
<% end %>
|
||
|
</tr>
|
||
14 years ago
|
<% end %>
|
||
|
</table>
|
||
14 years ago
|
</div>
|
||
14 years ago
|
|
||
|
<div id="helpers">
|
||
|
<select class="assigned_to_id template" id="assigned_to_id_options">
|
||
|
<option value=""> </option>
|
||
11 years ago
|
<% @project.possible_assignees.each do |user| %>
|
||
11 years ago
|
<option value="<%= user.id %>" color="<%= get_backlogs_preference(user, :task_color) %>">
|
||
14 years ago
|
<%= user.name %>
|
||
14 years ago
|
</option>
|
||
|
<% end %>
|
||
|
</select>
|
||
|
<div id="task_template">
|
||
12 years ago
|
<%= render :partial => "rb_tasks/task", :object => Task.new, :locals => {:project => @project} %>
|
||
14 years ago
|
</div>
|
||
|
<div id="impediment_template">
|
||
12 years ago
|
<%= render :partial => "rb_impediments/impediment", :object => Impediment.new, :locals => {:project => @project} %>
|
||
14 years ago
|
</div>
|
||
|
|
||
11 years ago
|
<div id="work_package_editor"> </div>
|
||
12 years ago
|
<div class="meta" id="last_updated"><%= date_string_with_milliseconds( (@last_updated.blank? ? Time.now : @last_updated.updated_at) ) %></div>
|
||
14 years ago
|
<div id="charts"> </div>
|
||
|
<div id="preloader">
|
||
|
<div id="spinner"> </div>
|
||
|
<div id="warning"> </div>
|
||
|
</div>
|
||
14 years ago
|
</div>
|
||
14 years ago
|
</div>
|