Project

General

Profile

Projects Tree View Plugin - Version 0.0.1

Added by Chris Peterson almost 16 years ago

This plugin will turn the projects index view into a tree view that can be expanded and collapsed. It propagates the tree view to the project show page's subprojects list.

Install Instructions:

1) Extract projects_tree_view.zip to /path/to/redmine/vendor/plugins/
2) Restart Redmine
3) Enjoy Project Tree Goodness!


Replies (128)

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Vano Egler about 11 years ago

Same issue here. Plugin installed, nothing changed.
Environment:
Redmine version: 2.3.1.stable
Ruby version: 1.8.7 (x86_64-linux)
Rails version: 3.2.13
Database adapter: PostgreSQL
Redmine plugins:
projects_tree_view: 0.0.8

Also nothing about this in production.log...

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Mark W over 10 years ago

It works.
Environment:
Redmine version 2.3.4.stable
Ruby version 1.9.3-p484 (2013-11-22) [x86_64-linux]
Rails version 3.2.13
Environment production
Database adapter Mysql2
Redmine plugins:
projects_tree_view 0.0.8
redmine_app__space 1.0.1
redmine_app_timesheets 1.3.7
redmine_backlogs v1.0.6
redmine_ckeditor 0.4.0
redmine_watcher_groups 0.0.3git
redmine_wiki_lists 0.0.3

Simple steps:

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Black Zajaz about 5 years ago

I have passed the plugins/projects_tree_view/app/views/projects/index.html.erb
This working fine with redmine 4.0.5

replace 'do loop' to:


      <% project_tree(@projects) do |project, level| %>
      <% project_id = "%04d" % project.id %>
<!-- changed logik for build tree -->       
        <tr id="<%= project_id %>" class="<%= project.css_classes %> <%= level > 0 ? "hide #{project.parent.id}" : cycle("odd", "even")  %>">

        <% has_children = false %>
        <% subprojects = project.children %>
          <% if !User.current.admin? %>
            <% subprojects.each do |subproject| %> 
              <% if !has_children && User.current.member_of?(subproject)%>
                <% has_children = true %>
              <% end %>
            <% end %>

          <% else %>
            <% has_children = !project.children.empty? %>
          <% end %>
<!-- if project has children but current user is not member of children projects correct padding left for level -->
<!--  + ProjectA -->
<!--    ChildB -->
<!--  ProjectB has children but current user is not member. This is wrong -->
<!--    ProjectB this is clearly -->
          <td class="name" style="padding-left: <%= 18 * (!project.children.empty? && !has_children ? level + 1 : level) %>px">

          <% if has_children %>
            <span class="expander" onclick="toggleShowHide(<%= "'#{project_id}'" %>)"> </span>
          <% end %>

          <%= project.active? ? link_to_project(project) : h(project.name) %>
        </td>
        <td><%= textilizable project.short_description.gsub(/\!.+\!/,""), :project => project %></td>
        <td><%= favorite_project_modules_links(project) %></td>
        <% if show_project_progress %>
          <td><%= render_project_progress(project) %></td>
        <% end %>
        <td align="center"><%= format_date(project.created_on) %></td>
      </tr>
    <% end %>

(126-128/128)