Giter Club home page Giter Club logo

redmine_subtask_list_accordion's Introduction

Redmine Subtask List Accordion

This plugin provide accordion tree to subtask-list on issue.

Features

  • Add accordion feature to subtask-list.
  • Add 'Expand this tree', 'Collapse this tree' and 'Expand next level all' to context-menu.
  • Add preferences of expand tree at first time.
  • Add plugin setting for server/client processing mode switch. (server mode default)
    Server mode is faster than client mode, but server mode is tradeoff other subtask's plugin. (for exsample 'subtask_list_columns' plugin)

Compatibility

Redmine 3.2 or 3.3 or 3.4 or 4.0 stable

Tested on:

  • 3.2.9
  • 3.3.6
  • 3.4.8
  • 4.0.1

Installation

  1. Follow the Redmine plugin installation steps at: http://www.redmine.org/wiki/redmine/Plugins
  2. Run the plugin migrations rake redmine:plugins:migrate RAILS_ENV=production
  3. Restart your Redmine web server

redmine_subtask_list_accordion's People

Contributors

archonwang avatar braini75 avatar geromax avatar jkraemer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

redmine_subtask_list_accordion's Issues

rake aborted

Hello,when I install this plugin,rake aborted appeared as below:
[root@localhost redmine342]#rake redmine:plugins NAME=redmine_subtask_list_accordion RAILS_ENV=production
rake aborted!
NoMethodError: undefined method observers' for ActiveRecord::Base:Class /usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.8/lib/active_record/dynamic_matchers.rb:26:in method_missing'
/opt/redmine342/plugins/systango_hrm/init.rb:13:in block in <top (required)>' /opt/redmine342/lib/redmine/plugin.rb:75:in instance_eval'
/opt/redmine342/lib/redmine/plugin.rb:75:in register' /opt/redmine342/plugins/systango_hrm/init.rb:6:in <top (required)>'
/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in require' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in block in require'
/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in load_dependency' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in require'
/opt/redmine342/lib/redmine/plugin.rb:155:in block in load' /opt/redmine342/lib/redmine/plugin.rb:146:in each'
/opt/redmine342/lib/redmine/plugin.rb:146:in load' /opt/redmine342/config/initializers/30-redmine.rb:21:in <top (required)>'
/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in load' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in block in load'
/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in load_dependency' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in load'
/usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/engine.rb:652:in block in load_config_initializer' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/notifications.rb:166:in instrument'
/usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/engine.rb:651:in load_config_initializer' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/engine.rb:616:in block (2 levels) in class:Engine'
/usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/engine.rb:615:in each' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/engine.rb:615:in block in class:Engine'
/usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/initializable.rb:30:in instance_exec' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/initializable.rb:30:in run'
/usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/initializable.rb:55:in block in run_initializers' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/initializable.rb:44:in each'
/usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/initializable.rb:44:in tsort_each_child' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/initializable.rb:54:in run_initializers'
/usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/application.rb:352:in initialize!' /opt/redmine342/config/environment.rb:14:in <top (required)>'
/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in require' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in block in require'
/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in load_dependency' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in require'
/usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/application.rb:328:in require_environment!' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/application.rb:457:in block in run_tasks_blocks'
/opt/redmine342/lib/tasks/redmine.rake:57:in block (2 levels) in <top (required)>' /usr/local/rvm/gems/ruby-2.3.1/gems/rake-12.0.0/exe/rake:27:in <top (required)>'
Tasks: TOP => redmine:plugins:migrate => environment
(See full trace by running task with --trace)
[root@localhost redmine342]#
and the environment as this:
Environment:
Redmine version 3.4.2.stable
Ruby version 2.3.1-p112 (2016-04-26) [x86_64-linux]
Rails version 4.2.8
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.17
Git 1.8.3.1
Filesystem
Redmine plugins:
_query 0.0.2
easy_wbs 2016-0.0
redmine_activity_report 1.2.9
redmine_ckeditor 1.1.4
redmine_custom_workflows 0.1.6
redmine_editauthor 0.11.0
redmine_improved_road_map 1.0
redmine_pivot_table 0.0.5
redmine_work_wechat 0.1.9

where cause error happen? thank you .

subtask list has a bug

demo

1
--> 2
--> 3
4
-->5
-->6

like this ,the list is right

1
3
4
2
5
6

like this, the list is wrong

some problem with my environment?

@GEROMAX
I have a problem about the plugin, when I installed the plugin, I cannot open the project issue lists with the 500 error, do you have any ideas about it .Thanks so much.

image

my environment is

Environment:
Redmine version 3.3.2.stable.16412
Ruby version 2.2.4-p230 (2015-12-16) [x86_64-linux]
Rails version 4.2.7.1
Environment production
Database adapter Mysql2
SCM:
Subversion 1.6.11
Git 1.7.1
Filesystem

my bundle gem list

Gems included by the bundle:
  * actionmailer (4.2.7.1)
  * actionpack (4.2.7.1)
  * actionpack-action_caching (1.2.0)
  * actionpack-xml_parser (1.0.2)
  * actionview (4.2.7.1)
  * activejob (4.2.7.1)
  * activemodel (4.2.7.1)
  * activerecord (4.2.7.1)
  * activesupport (4.2.7.1)
  * acts-as-taggable-on (3.5.0)
  * addressable (2.5.0)
  * arel (6.0.4)
  * awesome_nested_set (3.1.1)
  * builder (3.2.3)
  * bundler (1.11.2)
  * climate_control (0.1.0)
  * cocaine (0.5.8)
  * coderay (1.1.1)
  * colorize (0.8.1)
  * concurrent-ruby (1.0.5)
  * css_parser (1.4.10)
  * daemons (1.2.4)
  * deface (1.1.0)
  * diff-lcs (1.3)
  * erubis (2.7.0)
  * eventmachine (1.2.3)
  * exception_notification (4.2.1)
  * globalid (0.3.7)
  * haml (4.0.7)
  * haml-rails (0.9.0)
  * html2haml (2.1.0)
  * htmldiff (0.0.1 ef4f0ae)
  * htmlentities (4.3.1)
  * i18n (0.7.0)
  * jbuilder (2.6.3)
  * jenkins_api_client (1.3.0)
  * jquery-rails (3.1.4)
  * json (1.8.6)
  * kaminari (1.0.1)
  * kaminari-actionview (1.0.1)
  * kaminari-activerecord (1.0.1)
  * kaminari-core (1.0.1)
  * loofah (2.0.3)
  * mail (2.6.4)
  * mime-types (3.1)
  * mime-types-data (3.2016.0521)
  * mimemagic (0.3.2)
  * mini_magick (4.6.1)
  * mini_portile2 (2.1.0)
  * minitest (5.10.1)
  * mixlib-shellout (2.2.7)
  * multi_json (1.12.1)
  * mysql2 (0.3.21)
  * net-ldap (0.12.1)
  * nokogiri (1.6.8.1)
  * pandoc-ruby (2.0.1)
  * paperclip (4.2.4)
  * polyglot (0.3.5)
  * protected_attributes (1.1.3)
  * public_suffix (2.0.5)
  * rack (1.6.5)
  * rack-openid (1.4.2)
  * rack-raw-upload (1.1.1)
  * rack-test (0.6.3)
  * rails (4.2.7.1)
  * rails-deprecated_sanitizer (1.0.3)
  * rails-dom-testing (1.0.8)
  * rails-html-sanitizer (1.0.3)
  * railties (4.2.7.1)
  * rake (12.0.0)
  * rbpdf (1.19.0)
  * rbpdf-font (1.19.0)
  * redcarpet (3.3.4)
  * redmine-user_wiki_macro (0.0.2)
  * redmine_acts_as_taggable_on (1.1.0 a939bae)
  * request_store (1.0.5)
  * rich (1.4.8 93d1dd9)
  * rmagick (2.16.0)
  * roadie (3.2.1)
  * roadie-rails (1.1.1)
  * ruby-ole (1.2.12.1)
  * ruby-openid (2.3.0)
  * ruby_parser (3.8.4)
  * rubyzip (1.2.1)
  * sass (3.4.23)
  * sass-rails (5.0.6)
  * sexp_processor (4.8.0)
  * spreadsheet (1.1.4)
  * sprockets (3.7.1)
  * sprockets-rails (3.2.0)
  * terminal-table (1.7.3)
  * thin (1.7.0)
  * thor (0.19.4)
  * thread_safe (0.3.6)
  * tilt (2.0.6)
  * tzinfo (1.2.2)
  * unicode-display_width (1.1.3)
  * useragent (0.16.8)
  * will_paginate (3.1.5)
  * write_xlsx (0.83.0)
  * ya2yaml (0.31)
  * zip-zip (0.3)

Plugin seem cannot work

Hello,when I have install this plugin,and I have setup as below,but it seem have't any change,
image
image
image
ask how so?Thank you!

Cannot expand first row

Hi,

I don't know if I'm missing something (configuration and/or other plugins) but I cannot expand the first subtask using the arrow button (since there's no arrow button). Using "Expand/Collapse all" buttons works perfectly though. I think it considers that first row to be a "header row" as shown on the Redmine website (http://www.redmine.org/plugins/redmine_subtask_list_accordion). The problem is that I don't have that "header row" as you can see in the attached image below.

image

Thanks for your help.

500 error

@GEROMAX ,
open issue occur 500 error. please help to Check.

2017-09-14 13:28
An ActionView::Template::Error occurred in issues#show:
 
  undefined method `has_grandson_issues?' for #<#<Class:0x007f4f9411d600>:0x007f4f8c0f60d0>
  plugins/redmine_subtask_list_accordion/app/views/issues/_subtask_list_accordion_partial.html.erb:1:in `_b655f8085f0ba3e127370bc913d378e7'


-------------------------------
Backtrace:
-------------------------------
 
  plugins/redmine_subtask_list_accordion/app/views/issues/_subtask_list_accordion_partial.html.erb:1:in `_b655f8085f0ba3e127370bc913d378e7'
  lib/redmine/hook/view_listener.rb:59:in `block (2 levels) in render_on'
  lib/redmine/hook/view_listener.rb:57:in `map'
  lib/redmine/hook/view_listener.rb:57:in `block in render_on'
  lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
  lib/redmine/hook.rb:61:in `each'
  lib/redmine/hook.rb:61:in `block in call_hook'
  lib/redmine/hook.rb:58:in `tap'
  lib/redmine/hook.rb:58:in `call_hook'
  lib/redmine/hook.rb:96:in `call_hook'
  plugins/redmine_workflow_hidden_fields/app/views/issues/show.html.erb:142:in `_b96cb14498f1f784d11a8e1e1053dfcb'
  plugins/redmine_spent_time_in_issue_description/lib/issues_controller_patch.rb:36:in `block (2 levels) in show_with_plugin'
  plugins/redmine_spent_time_in_issue_description/lib/issues_controller_patch.rb:33:in `show_with_plugin'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

I cannot collapse or expand a particular issue.

I have installed the plugin in Redmine 4.0.1 and it works perfectly to expand or collapse all of them, but in the issues list I don't see the arrows to expand or collapse one by one as shown in the image.
I also have it installed in Redmine 3.3.0 and there it works correctly.
I have checked the html and I have seen that in Redmine 4.0.1 the parent tasks don't have the haschild class and they don't have the either.

Any idea how to fix it?

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.