ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Modified-Projects-drop-down-menu.patch

Patch for apps/views/layouts/base.rhtml - Andreas Schuh, 2012-01-03 12:19 am

Download (1.7 kB)

 
b/app/views/layouts/base.rhtml
47 47
          <%= link_to l(:label_project_plural), { :controller => 'projects', :action => 'index' }, :class => "projects" %>
48 48
          <ul style="display:none;">
49 49
            <%
50
            if User.current.logged?
51
              project_list = User.current.projects.all
52
            else
53
              project_list = Project.visible.find(:all, :order => 'lft')
54
            end
50 55
            project_content = ''
51
            project_tree(User.current.projects.all) do |project, level|
56
            project_tree(project_list) do |project, level|
52 57
              name_prefix = (level > 0 ? ('&nbsp;' * 2 * level + '&#187; ') : '')
53 58
              project_content << content_tag(:li,
54 59
                                     link_to(name_prefix + h(project), {:controller => 'projects', :action => 'show', :id => project, :jump => current_menu_item}))
55 60
            end
61
            project_content << "<hr />\n"
62
            project_content << content_tag(:li, link_to('View all projects', {:controller => 'projects', :action => 'index'}))
56 63
            %>
57 64
            <%= project_content %>
58 65
          </ul>
59
-