##// END OF EJS Templates
Slight UI changes to the subtasks tree....
Jean-Philippe Lang -
r3463:508df4a33acb
parent child
Show More
@@ -47,8 +47,8 module IssuesHelper
47 issue.descendants.sort_by(&:lft).each do |child|
47 issue.descendants.sort_by(&:lft).each do |child|
48 level = child.level - issue.level - 1
48 level = child.level - issue.level - 1
49 s << content_tag('tr',
49 s << content_tag('tr',
50 content_tag('td', check_box_tag("ids[]", child.id, false, :id => nil)) +
50 content_tag('td', check_box_tag("ids[]", child.id, false, :id => nil), :class => 'checkbox') +
51 content_tag('td', link_to_issue(child), :class => 'subject',
51 content_tag('td', link_to_issue(child, :truncate => 60), :class => 'subject',
52 :style => "padding-left: #{level * 20}px") +
52 :style => "padding-left: #{level * 20}px") +
53 content_tag('td', h(child.status)) +
53 content_tag('td', h(child.status)) +
54 content_tag('td', link_to_user(child.assigned_to)) +
54 content_tag('td', link_to_user(child.assigned_to)) +
@@ -12,7 +12,7
12 <tr>
12 <tr>
13 <td><%= l(relation.label_for(@issue)) %> <%= "(#{l('datetime.distance_in_words.x_days', :count => relation.delay)})" if relation.delay && relation.delay != 0 %>
13 <td><%= l(relation.label_for(@issue)) %> <%= "(#{l('datetime.distance_in_words.x_days', :count => relation.delay)})" if relation.delay && relation.delay != 0 %>
14 <%= h(relation.other_issue(@issue).project) + ' - ' if Setting.cross_project_issue_relations? %>
14 <%= h(relation.other_issue(@issue).project) + ' - ' if Setting.cross_project_issue_relations? %>
15 <%= link_to_issue relation.other_issue(@issue) %>
15 <%= link_to_issue(relation.other_issue(@issue), :truncate => 60) %>
16 </td>
16 </td>
17 <td><%= relation.other_issue(@issue).status.name %></td>
17 <td><%= relation.other_issue(@issue).status.name %></td>
18 <td><%= format_date(relation.other_issue(@issue).start_date) %></td>
18 <td><%= format_date(relation.other_issue(@issue).start_date) %></td>
@@ -65,7 +65,7
65 <div class="contextual">
65 <div class="contextual">
66 <%= 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) %>
66 <%= 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) %>
67 </div>
67 </div>
68 <p><strong><%=l(:label_subtask_pural)%></strong></p>
68 <p><strong><%=l(:label_subtask_plural)%></strong></p>
69 <%= render_descendants_tree(@issue) unless @issue.leaf? %>
69 <%= render_descendants_tree(@issue) unless @issue.leaf? %>
70 </div>
70 </div>
71 <% end %>
71 <% end %>
@@ -243,6 +243,7 div.issue div.subject>div>p { margin-top: 0.5em; }
243 div.issue div.subject h3 {margin: 0; margin-bottom: 0.1em;}
243 div.issue div.subject h3 {margin: 0; margin-bottom: 0.1em;}
244
244
245 #issue_tree table.issues { border: 0; }
245 #issue_tree table.issues { border: 0; }
246 #issue_tree td.checkbox {display:none;}
246
247
247 fieldset.collapsible { border-width: 1px 0 0 0; font-size: 0.9em; }
248 fieldset.collapsible { border-width: 1px 0 0 0; font-size: 0.9em; }
248 fieldset.collapsible legend { padding-left: 16px; background: url(../images/arrow_expanded.png) no-repeat 0% 40%; cursor:pointer; }
249 fieldset.collapsible legend { padding-left: 16px; background: url(../images/arrow_expanded.png) no-repeat 0% 40%; cursor:pointer; }
General Comments 0
You need to be logged in to leave comments. Login now