reubenmallaby / redmine_projects_accordion Goto Github PK
View Code? Open in Web Editor NEWProjects accordion view for Redmine
Projects accordion view for Redmine
For the first level of the tree in a project list, projects are only shown if they're visible to the user. However, if you expand the list into subprojects, visibility isn't a factor and all subprojects are shown, whether or not the user is allowed to see them.
If I had the time, I'd look into the code and suggest a fix, but I'm pretty limited at the moment. I may followup.
Followup
So I had the time. I'm not a skilled coder by any means, but the following seems to resolve my issue. It's an update to app/views/projects/_list.html.erb, line 11:
<%= render :partial => "list", :locals => { :project => child } if child.visible? %>
Really, just changing what was formerly "child.active" to "child.visible". It continues to only show active projects, and regular users will always only see projects they are members of, while admin users will see all active projects, member or not (just like with default Redmine).
It seems that 3rd level objects in the Project list are hidden in a small box... Content is showed there, but it's dissimulated in a box where "standard" users would not look. Is there a way to make either the box bigger or have it showed as other levels?
Can u please upload some screeners or even a demo site where this is shown. Tx.
Bonjour,
Lorsque qu'un utilisateur appartient à un sous-projet, mais pas au projet parent, le sous-projet n'est pas visible dans accordion
Il y à t-il une possibilité d'ajouter le parent, même vide ?
Merci
Hello,
When a user belongs to a sub-project, but not the parent project, the subproject is not visible in accordion
There in there a possibility to add the parent, even when empty?
thank you
Cary / Digital Virgo Entertaiment
Hello, how do I show closed projects? thanks
Hello, I'm having the following issue, and I really was wondering if there is an easy workaround for this.
Here is the problem:
Platform: Inside a Docker container
Redmine version: 4.2.1.stable
DB: Postgres.
So I installed redmine_projects_accordion but when I go to the Projects view, an "Internal Error (500)" is triggered
I went for my log file and I found the following:
redmine_1 | I, [2021-08-31T18:24:27.000867 #1] INFO -- : Successful authentication for 'admin' from <ip> at 2021-08-31 18:24:27 UTC
redmine_1 | I, [2021-08-31T18:24:27.034072 #1] INFO -- : Redirected to http://<ip>:3000/
redmine_1 | I, [2021-08-31T18:24:27.034268 #1] INFO -- : Completed 302 Found in 58ms (ActiveRecord: 31.3ms)
redmine_1 | I, [2021-08-31T18:24:27.247062 #1] INFO -- : Started GET "/" for <ip> at 2021-08-31 18:24:27 +0000
redmine_1 | I, [2021-08-31T18:24:27.248674 #1] INFO -- : Processing by WelcomeController#index as HTML
redmine_1 | I, [2021-08-31T18:24:27.257705 #1] INFO -- : Current user: admin (id=1)
redmine_1 | I, [2021-08-31T18:24:27.261620 #1] INFO -- : Rendering welcome/index.html.erb within layouts/base
redmine_1 | I, [2021-08-31T18:24:27.264667 #1] INFO -- : Rendered welcome/index.html.erb within layouts/base (3.0ms)
redmine_1 | I, [2021-08-31T18:24:27.315254 #1] INFO -- : Completed 200 OK in 66ms (Views: 50.4ms | ActiveRecord: 8.1ms)
redmine_1 | I, [2021-08-31T18:24:32.580770 #1] INFO -- : Started GET "/projects" for <ip> at 2021-08-31 18:24:32 +0000
redmine_1 | I, [2021-08-31T18:24:32.581961 #1] INFO -- : Processing by ProjectsController#index as HTML
redmine_1 | I, [2021-08-31T18:24:32.589716 #1] INFO -- : Current user: admin (id=1)
redmine_1 | I, [2021-08-31T18:24:32.654369 #1] INFO -- : Rendering plugins/redmine_projects_accordion/app/views/projects/index.html.erb within layouts/base
redmine_1 | I, [2021-08-31T18:24:32.662031 #1] INFO -- : Rendered plugins/redmine_projects_accordion/app/views/projects/index.html.erb within layouts/base (7.5ms)
redmine_1 | I, [2021-08-31T18:24:32.662299 #1] INFO -- : Completed 500 Internal Server Error in 80ms (ActiveRecord: 13.9ms)
redmine_1 | F, [2021-08-31T18:24:32.663386 #1] FATAL -- :
redmine_1 | F, [2021-08-31T18:24:32.663453 #1] FATAL -- : ActionView::Template::Error (undefined method `delete_if' for nil:NilClass):
redmine_1 | F, [2021-08-31T18:24:32.663652 #1] FATAL -- : 13:
redmine_1 | 14: <h2><%=l(:label_project_plural)%></h2>
redmine_1 | 15:
redmine_1 | 16: <% @projects.delete_if { |p| !p.active? } -%>
redmine_1 | 17:
redmine_1 | 18: <% ids = @projects.map { |p| p.id } %>
redmine_1 | 19: <%- #unless p.children.empty? } %>
redmine_1 | F, [2021-08-31T18:24:32.663689 #1] FATAL -- :
redmine_1 | F, [2021-08-31T18:24:32.663719 #1] FATAL -- : plugins/redmine_projects_accordion/app/views/projects/index.html.erb:16:in `_plugins_redmine_projects_accordion_app_views_projects_index_html_erb__717125005942677875_113560'
redmine_1 | lib/redmine/sudo_mode.rb:61:in `sudo_mode'
redmine_1 | plugins/redmine_dmsf/lib/redmine_dmsf/webdav/custom_middleware.rb:56:in `call'
So I'm assuming there is a problem with a method called projects.delete_if
. Of course, it could be something else but this is what my log is showing. I'm not an expert with ruby by the way, so I wonder if you can suggest me something. It appears that this method is not being recognized since it says: "undefined method delete_if' for nil:NilClass
".
Any suggestion would be appreciated.
Regards.
All is collapsed i i click any project on bottom tree level.
The link coloration appears to be slightly different than the rest of Redmine. Could this be changed to stand out a bit more on the page? Thanks.
The plugin does not work in Redmine 2.1.2.
Thanks
Regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.