Coder Social home page Coder Social logo

hugohasenbein / redmine_attachment_categories Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 5.0 462 KB

Redmine plugin to add a freely configurable category tag to attachments.

Home Page: https://www.redmine.org/plugins/redmine_attachment_categories

License: GNU General Public License v2.0

Ruby 48.17% HTML 12.41% JavaScript 38.72% CSS 0.70%
attachment attachment-property attachments-dialog category mark-attachments redmine redmine-attachment-categories redmine-plugin tags

redmine_attachment_categories's People

Contributors

hugohasenbein avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

redmine_attachment_categories's Issues

UI optimization ?

Hi,
Could you provide me any help with 2 thing I want to customize (or perhaps you can take as UI optimization)

How to reverse the attachment category and link layout?
And how do you sort attachments by categories?

Like this, attachements will be show and order by category, make sense ?

Thanks, cause I'm so bad at ruby
๐Ÿคญ

Cannot run in 4.1.0 redmine

I try to update your plugin.

I attached a diff file.
Migrate is ok but i have a error when to save a categorie.
I don't undestrand the problem.

App 30882 stderr: Started PATCH "/redmine/attachment_categories/1" for 90.108.47.151 at 2020-01-08 08:03:20 +0000
App 30882 stderr: Processing by AttachmentCategoriesController#update as HTML
App 30882 stderr: Parameters: {"utf8"=>"โœ“", "authenticity_token"=>"guQUaVI/Ih+ZEJpnB4VEJ3+CJ+OaHfZgGGmdJ3pNMVe8ht3Xqhyz6BB8MK9C4JnrY7xXYUXc0IhnuqCndVvN7A==", "attachment_category"=>{"name"=>"Confidentiel", "html_color"=>"#FFCCCC"}, "commit"=>"Sauvegarder", "id"=>"1"}
App 30882 stderr: Current user: user.name (id=11)
App 30882 stderr: Completed 500 Internal Server Error in 6ms (ActiveRecord: 2.3ms)
App 30882 stderr:
App 30882 stderr: ActiveModel::ForbiddenAttributesError (ActiveModel::ForbiddenAttributesError):
App 30882 stderr:
App 30882 stderr: plugins/redmine_attachment_categories/app/controllers/attachment_categories_controller.rb:59:in update' App 30882 stderr: lib/redmine/sudo_mode.rb:65:in sudo_mode'
redmine_attachment_categories_r4.1.0.diff.txt

undefined method `before_filter' for IssueAttachmentQueriesController:Class

undefined method `before_filter' for IssueAttachmentQueriesController:Class
Did you mean?  before_action (NoMethodError)
  /home/redmine/4.2.6/plugins/redmine_issue_attachments/app/controllers/issue_attachment_queries_controller.rb:25:in `<class:IssueAttachmentQueriesController>'
  /home/redmine/4.2.6/plugins/redmine_issue_attachments/app/controllers/issue_attachment_queries_controller.rb:23:in `<top (required)>'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/activesupport-5.2.8/lib/active_support/dependencies.rb:291:in `require'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/activesupport-5.2.8/lib/active_support/dependencies.rb:291:in `block in require'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/activesupport-5.2.8/lib/active_support/dependencies.rb:257:in `load_dependency'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/activesupport-5.2.8/lib/active_support/dependencies.rb:291:in `require'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/activesupport-5.2.8/lib/active_support/dependencies.rb:378:in `block in require_or_load'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/activesupport-5.2.8/lib/active_support/dependencies.rb:37:in `block in load_interlock'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/activesupport-5.2.8/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/activesupport-5.2.8/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/activesupport-5.2.8/lib/active_support/dependencies/interlock.rb:13:in `loading'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/activesupport-5.2.8/lib/active_support/dependencies.rb:37:in `load_interlock'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/activesupport-5.2.8/lib/active_support/dependencies.rb:356:in `require_or_load'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/activesupport-5.2.8/lib/active_support/dependencies.rb:334:in `depend_on'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/activesupport-5.2.8/lib/active_support/dependencies.rb:246:in `require_dependency'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/railties-5.2.8/lib/rails/engine.rb:478:in `block (2 levels) in eager_load!'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/railties-5.2.8/lib/rails/engine.rb:477:in `each'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/railties-5.2.8/lib/rails/engine.rb:477:in `block in eager_load!'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/railties-5.2.8/lib/rails/engine.rb:475:in `each'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/railties-5.2.8/lib/rails/engine.rb:475:in `eager_load!'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/railties-5.2.8/lib/rails/engine.rb:356:in `eager_load!'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/railties-5.2.8/lib/rails/application/finisher.rb:69:in `each'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/railties-5.2.8/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/railties-5.2.8/lib/rails/initializable.rb:32:in `instance_exec'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/railties-5.2.8/lib/rails/initializable.rb:32:in `run'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/railties-5.2.8/lib/rails/initializable.rb:61:in `block in run_initializers'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/2.7.0/tsort.rb:228:in `block in tsort_each'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/2.7.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/2.7.0/tsort.rb:431:in `each_strongly_connected_component_from'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/2.7.0/tsort.rb:349:in `block in each_strongly_connected_component'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/2.7.0/tsort.rb:347:in `each'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/2.7.0/tsort.rb:347:in `call'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/2.7.0/tsort.rb:347:in `each_strongly_connected_component'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/2.7.0/tsort.rb:226:in `tsort_each'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/2.7.0/tsort.rb:205:in `tsort_each'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/railties-5.2.8/lib/rails/initializable.rb:60:in `run_initializers'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/railties-5.2.8/lib/rails/application.rb:361:in `initialize!'
  /home/redmine/4.2.6/config/environment.rb:16:in `<top (required)>'
  config.ru:3:in `require'
  config.ru:3:in `block in <main>'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/rack-2.2.3.1/lib/rack/builder.rb:125:in `instance_eval'
  /home/redmine/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/rack-2.2.3.1/lib/rack/builder.rb:125:in `initialize'
  config.ru:1:in `new'
  config.ru:1:in `<main>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:101:in `eval'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:101:in `preload_app'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:189:in `block in <module:App>'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:397:in `run_block_and_record_step_progress'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:188:in `<module:App>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<main>'

Issues list view "Files" column look is strange and the link is invalid

On Redmine 4.2 environment (4.2-stable branch's latest), issues list view's Files column look is strange and the link is invalid.

Redmine 4.2 (without plugin)
1st attachment link: /attachments/15
redmine42-raw-issues-options-files

Redmine 4.2 (with plugin)
1st attachment link: /attachments/15/private.diff => Invalid
redmine42-plugin-issues-options-files

Compatibility with 4.X

Hello,

Could you tell me if that plugin is supposed to be compatible with 4.0 and the upcoming 4.1?

Thanks,

Is it compatible with Redmine 4.2

Hi all,
This plugin is really great, do you think it is compatible with the redmine 4.2 version?

I am very incompetent in Ruby.

For example, is the /assets/javascripts/attachments.js file up to date?

Thank you ๐Ÿ™

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.