projects_tree_view
projects_tree_view copied to clipboard
Versions progress in view is too much
We have alot of projects, subprojects and versions. At the moment, the default collapsed view of a project lists all versions, including their subproject versions which results in a project view more than 20 pages long and much noisier than even the default redmine projects view.
It would be nice if this had an option to turn all the version progress reports off and just include the first report for each project. The sort of thing I'm looking for is to be able to toggle the following code in lib/projectstreeview_projects_helper_patch.rb:
- project_versions = project_open(project)
-
- unless project_versions.empty?
- s << "<div>".html_safe
- project_versions.reverse_each do |version|
- unless version.completed?
- s << "<div style=\"clear:both; display: block\">".html_safe + link_to_version(versi
- link_to_if(version.open_issues_count > 0, l(:label_x_open_issues_abbr, :count => ve
- "<small> / ".html_safe + link_to_if(version.closed_issues_count > 0, l(:label_x_clo
- s << due_date_distance_in_words(version.effective_date) if version.effective_date
- s << "</div><br />".html_safe +
- progress_bar([version.closed_pourcent, version.completed_pourcent], :width => '30em
- end
- end
- s << "</div>".html_safe
- end
This results in a nice concise view of projects at a glance (which was the original intention of this project no?).
Actually, being able to toggle plugin parameters to determine which components to display (description, module links, versions, created) would be useful. I've no need for most of them, but I'm sure others find them useful.
+1 There is too much information on this view when versions are displayed.