Feature #28471 » query_links_for_subtasks.diff
app/views/issues/show.html.erb (Arbeitskopie) | ||
---|---|---|
105 | 105 |
<%= link_to_new_subtask(@issue) if User.current.allowed_to?(:manage_subtasks, @project) %> |
106 | 106 |
</div> |
107 | 107 |
<p><strong><%=l(:label_subtask_plural)%></strong></p> |
108 |
<% if !@issue.leaf? %> |
|
109 |
<p class="subtask-info"> |
|
110 |
<%= link_to(l(:label_x_issues, :count => @issue.descendants.count), |
|
111 |
issues_path(:issue_id => @issue.descendants.collect(&:id).join(','), :set_filter => true, :status_id => '*')) %> |
|
112 |
|
|
113 |
(<%= link_to_if( @issue.descendants.select(&:closed?).count > 0, |
|
114 |
l(:label_x_closed_issues_abbr, :count => @issue.descendants.select(&:closed?).count ), |
|
115 |
issues_path( :parent_id => @issue.id , :set_filter => true, :status_id => 'c')) %> |
|
116 |
— |
|
117 |
<%= link_to_if( @issue.descendants.open.count > 0, |
|
118 |
l(:label_x_open_issues_abbr, :count => @issue.descendants.open.count ), |
|
119 |
issues_path( :parent_id => @issue.id , :set_filter => true, :status_id => 'o')) %>) |
|
120 |
</p> |
|
121 |
<% end %> |
|
108 | 122 |
<%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do %> |
109 | 123 |
<%= render_descendants_tree(@issue) unless @issue.leaf? %> |
110 | 124 |
<% end %> |
public/stylesheets/application.css (Arbeitskopie) | ||
---|---|---|
512 | 512 |
#issue_tree table.issues, #relations table.issues { border: 0; } |
513 | 513 |
#issue_tree td.checkbox, #relations td.checkbox {display:none;} |
514 | 514 |
#relations td.buttons, #issue_tree td.buttons {padding:0;} |
515 |
p.subtask-info {font-size: 0.9em; margin-top: -6px; margin-bottom: 3px; border-bottom: 1px solid rgba(200,200,200,0.5);} |
|
515 | 516 | |
516 | 517 |
#trackers_description {display:none;} |
517 | 518 |
#trackers_description dt {font-weight: bold; text-decoration: underline;} |