diff options
author | Go MAEDA <maeda@farend.jp> | 2020-11-10 03:41:59 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-11-10 03:41:59 +0000 |
commit | cdd84fdd70994fc92731393fbe81ea3ee7fe1f61 (patch) | |
tree | c7fead218d543948be435e05e4aae14622e56044 /app/views/issues | |
parent | 0991be35600833304accc468942337128c068954 (diff) | |
download | redmine-cdd84fdd70994fc92731393fbe81ea3ee7fe1f61.tar.gz redmine-cdd84fdd70994fc92731393fbe81ea3ee7fe1f61.zip |
Query links for subtasks on issue page (#28471).
Patch by Bernhard Rohloff.
git-svn-id: http://svn.redmine.org/redmine/trunk@20321 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issues')
-rw-r--r-- | app/views/issues/show.html.erb | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb index 5dcd833ac..df54335a8 100644 --- a/app/views/issues/show.html.erb +++ b/app/views/issues/show.html.erb @@ -105,7 +105,20 @@ end %> <div class="contextual"> <%= link_to_new_subtask(@issue) if User.current.allowed_to?(:manage_subtasks, @project) %> </div> -<p><strong><%=l(:label_subtask_plural)%></strong></p> +<p> +<strong><%=l(:label_subtask_plural)%></strong> +<% if !@issue.leaf? %> + (<%= link_to(l(:label_x_issues, :count => @issue.descendants.count), + issues_path(:parent_id => "~#{@issue.id}", :set_filter => true, :status_id => '*')) %> + : <%= link_to_if( @issue.descendants.select(&:closed?).count > 0, + l(:label_x_closed_issues_abbr, :count => @issue.descendants.select(&:closed?).count ), + issues_path(:parent_id => "~#{@issue.id}", :set_filter => true, :status_id => 'c')) %> + — + <%= link_to_if( @issue.descendants.open.count > 0, + l(:label_x_open_issues_abbr, :count => @issue.descendants.open.count ), + issues_path(:parent_id => "~#{@issue.id}", :set_filter => true, :status_id => 'o')) %>) +<% end %> +</p> <%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do %> <%= render_descendants_tree(@issue) unless @issue.leaf? %> <% end %> |