Slight UI changes to the subtasks tree.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3577 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e016f3ef13
commit
508df4a33a
|
@ -47,9 +47,9 @@ module IssuesHelper
|
||||||
issue.descendants.sort_by(&:lft).each do |child|
|
issue.descendants.sort_by(&:lft).each do |child|
|
||||||
level = child.level - issue.level - 1
|
level = child.level - issue.level - 1
|
||||||
s << content_tag('tr',
|
s << content_tag('tr',
|
||||||
content_tag('td', check_box_tag("ids[]", child.id, false, :id => nil)) +
|
content_tag('td', check_box_tag("ids[]", child.id, false, :id => nil), :class => 'checkbox') +
|
||||||
content_tag('td', link_to_issue(child), :class => 'subject',
|
content_tag('td', link_to_issue(child, :truncate => 60), :class => 'subject',
|
||||||
:style => "padding-left: #{level * 20}px") +
|
:style => "padding-left: #{level * 20}px") +
|
||||||
content_tag('td', h(child.status)) +
|
content_tag('td', h(child.status)) +
|
||||||
content_tag('td', link_to_user(child.assigned_to)) +
|
content_tag('td', link_to_user(child.assigned_to)) +
|
||||||
content_tag('td', progress_bar(child.done_ratio, :width => '80px')),
|
content_tag('td', progress_bar(child.done_ratio, :width => '80px')),
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= l(relation.label_for(@issue)) %> <%= "(#{l('datetime.distance_in_words.x_days', :count => relation.delay)})" if relation.delay && relation.delay != 0 %>
|
<td><%= l(relation.label_for(@issue)) %> <%= "(#{l('datetime.distance_in_words.x_days', :count => relation.delay)})" if relation.delay && relation.delay != 0 %>
|
||||||
<%= h(relation.other_issue(@issue).project) + ' - ' if Setting.cross_project_issue_relations? %>
|
<%= h(relation.other_issue(@issue).project) + ' - ' if Setting.cross_project_issue_relations? %>
|
||||||
<%= link_to_issue relation.other_issue(@issue) %>
|
<%= link_to_issue(relation.other_issue(@issue), :truncate => 60) %>
|
||||||
</td>
|
</td>
|
||||||
<td><%= relation.other_issue(@issue).status.name %></td>
|
<td><%= relation.other_issue(@issue).status.name %></td>
|
||||||
<td><%= format_date(relation.other_issue(@issue).start_date) %></td>
|
<td><%= format_date(relation.other_issue(@issue).start_date) %></td>
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
<div class="contextual">
|
<div class="contextual">
|
||||||
<%= link_to(l(:button_add), {:controller => 'issues', :action => 'new', :project_id => @project, :issue => {:parent_issue_id => @issue}}) if User.current.allowed_to?(:manage_subtasks, @project) %>
|
<%= link_to(l(:button_add), {:controller => 'issues', :action => 'new', :project_id => @project, :issue => {:parent_issue_id => @issue}}) if User.current.allowed_to?(:manage_subtasks, @project) %>
|
||||||
</div>
|
</div>
|
||||||
<p><strong><%=l(:label_subtask_pural)%></strong></p>
|
<p><strong><%=l(:label_subtask_plural)%></strong></p>
|
||||||
<%= render_descendants_tree(@issue) unless @issue.leaf? %>
|
<%= render_descendants_tree(@issue) unless @issue.leaf? %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -243,6 +243,7 @@ div.issue div.subject>div>p { margin-top: 0.5em; }
|
||||||
div.issue div.subject h3 {margin: 0; margin-bottom: 0.1em;}
|
div.issue div.subject h3 {margin: 0; margin-bottom: 0.1em;}
|
||||||
|
|
||||||
#issue_tree table.issues { border: 0; }
|
#issue_tree table.issues { border: 0; }
|
||||||
|
#issue_tree td.checkbox {display:none;}
|
||||||
|
|
||||||
fieldset.collapsible { border-width: 1px 0 0 0; font-size: 0.9em; }
|
fieldset.collapsible { border-width: 1px 0 0 0; font-size: 0.9em; }
|
||||||
fieldset.collapsible legend { padding-left: 16px; background: url(../images/arrow_expanded.png) no-repeat 0% 40%; cursor:pointer; }
|
fieldset.collapsible legend { padding-left: 16px; background: url(../images/arrow_expanded.png) no-repeat 0% 40%; cursor:pointer; }
|
||||||
|
|
Loading…
Reference in New Issue