Redmine preview attach column/image gallery

Added by Vitaly Klimov over 5 years ago

Intro

Plugin adds extra column to the Issues list view which shows attachments availability and displays attached images in a lightbox manner. Also plugin adds links to the image galleries to the issue details/message/wiki page views.

Up to date plugin page

http://www.redmine.org/plugins/redmine_preview_attach_column

Replies (18)

RE: Redmine preview attach column/image gallery - Added by Tina Hirsch over 5 years ago

I like this plugin very much and it works very well so far, except that export of ticket list as pdf and csv is broken. With redmine 1.3.2 I get the following error:


pdf export
Processing IssuesController#index to pdf (for xxxx at 2012-04-02 10:22:45) [GET]
Parameters: {"format"=>"pdf", "group_by"=>"category", "op"=>{"status_id"=>"o"}, "c"=>["status", "subject", "assigned_to", "author", "cf_37", "done_ratio", "cf_32", "pac_field_preview_attached"], "set_filter"=>"1", "action"=>"index", "controller"=>"issues", "f"=>["status_id", ""]}

NoMethodError (undefined method `pac_field_preview_attached' for #<Issue:0x2b95b87fe468>):
lib/redmine/export/pdf.rb:220:in `send'
lib/redmine/export/pdf.rb:220:in `issues_to_pdf'
lib/redmine/export/pdf.rb:215:in `collect'
lib/redmine/export/pdf.rb:215:in `issues_to_pdf'
app/helpers/issues_helper.rb:29:in `issue_list'
app/helpers/issues_helper.rb:25:in `each'
app/helpers/issues_helper.rb:25:in `issue_list'
lib/redmine/export/pdf.rb:204:in `issues_to_pdf'
app/controllers/issues_controller.rb:98:in `index'
app/controllers/issues_controller.rb:91:in `index'
passenger (2.2.11) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
passenger (2.2.11) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/utils.rb:184:in `safe_fork'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:354:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:163:in `start'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'

Rendering /opt/redmine-1.3.2/public/500.html (500 Internal Server Error)


csv export
Processing IssuesController#index to csv (for xxx at 2012-04-02 10:24:39) [GET]
Parameters: {"columns"=>"", "format"=>"csv", "action"=>"index", "controller"=>"issues", "description"=>"1"}

NoMethodError (undefined method `pac_field_preview_attached' for #<Issue:0x2b95b8aa0360>):
app/helpers/issues_helper.rb:285:in `send'
app/helpers/issues_helper.rb:285:in `issues_to_csv'
app/helpers/issues_helper.rb:280:in `collect'
app/helpers/issues_helper.rb:280:in `issues_to_csv'
app/helpers/issues_helper.rb:279:in `each'
app/helpers/issues_helper.rb:279:in `issues_to_csv'
lib/faster_csv.rb:1053:in `generate'
app/helpers/issues_helper.rb:273:in `issues_to_csv'
app/controllers/issues_controller.rb:97:in `index'
app/controllers/issues_controller.rb:91:in `index'
passenger (2.2.11) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
<snip> remaining lines identical to pdf export


Export without the new columns works fine.

RE: Redmine preview attach column/image gallery - Added by Luis Serrano Aranda over 5 years ago

I think a nice feature are add the thumbnail of the first image in the issue list (configurable option)

RE: Redmine preview attach column/image gallery - Added by Vitaly Klimov over 5 years ago

Tina Hirsch wrote:

I like this plugin very much and it works very well so far, except that export of ticket list as pdf and csv is broken. With redmine 1.3.2 I get the following error:

Added new version to the plugin page with this bug fixed. Thank you for your feedback.

RE: Redmine preview attach column/image gallery - Added by Vitaly Klimov over 5 years ago

Plugin updated:

  • Scale and animation options added
  • Added lightbox macro to create links for in-place preview images inside wiki pages

RE: Redmine preview attach column/image gallery - Added by valentin polozov over 5 years ago

Doesn't work plugin with Redmine 2.0 and Rails 3.2.3.

Log:
Started GET "/projects/gs/issues" for 127.0.0.1 at 2012-05-24 13:15:24 +0400
Processing by IssuesController#index as HTML
Parameters: {"project_id"=>"gs"}
Rendered queries/_filters.html.erb (96.0ms)
Rendered queries/_columns.html.erb (3.5ms)
Rendered issues/_list.html.erb (118.5ms)
Rendered issues/_sidebar.html.erb (9.5ms)
Rendered issues/index.html.erb within layouts/base (243.5ms)
Completed 500 Internal Server Error in 516ms

ActionView::Template::Error (wrong number of arguments (2 for 1)):
18: body {behavior: url(<%= stylesheet_path "csshover.htc" >);}
19: </style>
20: <![endif]-->
21: <
= call_hook :view_layouts_base_html_head >
22: <!-- page specific tags -->
23: <
= yield :header_tags -%>
24: </head>
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:151:in `call_hook'
app/views/layouts/base.html.erb:21:in `_app_views_layouts_base_html_erb__1031498412_30551880'
app/controllers/issues_controller.rb:83:in `block (2 levels) in index'
app/controllers/issues_controller.rb:82:in `index'

RE: Redmine preview attach column/image gallery - Added by Steven Wong over 5 years ago

it seems not support redmine 2.0.2
please check it. thanks.

=> Booting WEBrick
=> Rails 3.2.5 application starting in production on http://0.0.0.0:4000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/usr/local/ruby/lib/ruby/gems/1.8/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:251:in `require': no such file to load -- dispatcher (LoadError)
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:251:in `require'
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:236:in `load_dependency'
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:251:in `require'
        from /usr/local/redmine-2.0/plugins/redmine_preview_attach_column/init.rb:2
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:251:in `require'
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:251:in `require'
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:236:in `load_dependency'
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:251:in `require'
        from /usr/local/redmine-2.0/lib/redmine/plugin.rb:129:in `load'
        from /usr/local/redmine-2.0/lib/redmine/plugin.rb:120:in `each'
        from /usr/local/redmine-2.0/lib/redmine/plugin.rb:120:in `load'
        from /usr/local/redmine-2.0/config/initializers/30-redmine.rb:13
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:245:in `load'
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:245:in `load'
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:236:in `load_dependency'
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:245:in `load'
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/railties-3.2.5/lib/rails/engine.rb:588
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/railties-3.2.5/lib/rails/engine.rb:587:in `each'
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/railties-3.2.5/lib/rails/engine.rb:587
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/railties-3.2.5/lib/rails/initializable.rb:30:in `instance_exec'
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/railties-3.2.5/lib/rails/initializable.rb:30:in `run'
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/railties-3.2.5/lib/rails/initializable.rb:55:in `run_initializers'
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/railties-3.2.5/lib/rails/initializable.rb:54:in `each'
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/railties-3.2.5/lib/rails/initializable.rb:54:in `run_initializers'
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/railties-3.2.5/lib/rails/application.rb:136:in `initialize!'
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/railties-3.2.5/lib/rails/railtie/configurable.rb:30:in `send'
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/railties-3.2.5/lib/rails/railtie/configurable.rb:30:in `method_missing'
        from /usr/local/redmine-2.0/config/environment.rb:14
        from /usr/local/redmine-2.0/config.ru:4:in `require'
        from /usr/local/redmine-2.0/config.ru:4
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
        from /usr/local/redmine-2.0/config.ru:1:in `new'
        from /usr/local/redmine-2.0/config.ru:1

RE: Redmine preview attach column/image gallery - Added by Vitaly Klimov over 5 years ago

Compatibility with Redmine 2.x fixed.

RE: Redmine preview attach column/image gallery - Added by Steven Wong over 5 years ago

Hi, Vitaly Klimov

Great~

I have updated the zh.yml file with the newest version 0.1.7.

zh.yml Magnifier - zh.yml file for 0.1.7. (1.61 KB)

RE: Redmine preview attach column/image gallery - Added by rm user over 5 years ago

Hi! Thanks for your great work, maybe you could support also resizing automatically images in the posts wiki/issues/forums?

Here is an idea how to do this - http://www.redmine.org/issues/949#note-66

Also, I didn't find how to display image attachments without menu 'View Images'. Is there any way to do this?

RE: Redmine preview attach column/image gallery - Added by Mirko Geissler over 5 years ago

Vitaly,

Thank you for your great plugins!

Following rm_user, would you mind to extend this plugin to support thumbnails combined with the gallery? This feature has not been integrated for 3 years now although so many people asked for it during that time...

Kind regards,
Mirko

RE: Redmine preview attach column/image gallery - Added by Anthony Meugui about 5 years ago

Hi! Thanks a lot for your plugin it's a very very useful plugin.

Is version 0.1.7 compatible with Redmine 2.1.x version ?
If not, do you plan to release a new version ?

Regards,
Anthony

RE: Redmine preview attach column/image gallery - Added by Jaroslav Povolný about 5 years ago

Hi, this is very interesting plugin, but I have strange issue: When I choose column "A" to be displayed, i actually see html, not the icons - ie. <img alt="Pac_has_descr" opentiptitle="<strong>Has description</strong>" src="...

Any ideas what can be wrong? (Redmine 2.0.3)

RE: Redmine preview attach column/image gallery - Added by Jan Stoetzer almost 5 years ago

Sorry wrong post first.

Works fine, nice plugin :)

RE: Redmine preview attach column/image gallery - Added by Norbert Penel almost 5 years ago

uncaught exception: script.aculo.us requires the Prototype JavaScript framework >= 1.6.0.3
http://svn.bidule.com/issues/78
Line 23

i get this trouble , am i alone ?

Environment:
Redmine version 2.1.2.stable.10799
Ruby version 1.8.7 (i486-linux)
Rails version 3.2.8
Environment production
Database adapter MySQL
Redmine plugins:
redmine_inline_attach_screenshot 0.4.2
redmine_preview_attach_column 0.1.7

RE: Redmine preview attach column/image gallery - Added by Pavel Potcheptsov almost 5 years ago

Environment:
  Redmine version                          2.2.0.stable.11050
  Ruby version                             1.9.3 (i686-linux)
  Rails version                            3.2.9
  Environment                              production
  Database adapter                         Mysql2
Redmine plugins:
  redmine_drafts                           0.2.0
  redmine_fields_permissions               1.0.0
  redmine_hide_estimated_hours             1.0.2
  redmine_plugin_views_revisions           0.0.1
  redmine_preview_attach_column            0.1.7
  redmine_xls_export                       0.2.1
  timesheet_plugin                         0.6.0
Started GET "/projects/redmineimprovement1/issues" for 127.0.0.1 at 2012-12-19 16:23:24 +0100
Processing by IssuesController#index as HTML
  Parameters: {"project_id"=>"redmineimprovement1"}
  Current user: ppo (id=95)
  Rendered queries/_filters.html.erb (26.8ms)
  Rendered queries/_columns.html.erb (1.8ms)
  Rendered issues/index.html.erb within layouts/base (29.8ms)
Completed 500 Internal Server Error in 67ms

ActionView::Template::Error (undefined method `inline?' for #<PreviewAttachColumn::PreviewAttachQueryColumn:0xc74fda4>):
    4:       <%= label_tag "available_columns", l(:description_available_columns) %>
    5:       <br />
    6:       <%= select_tag 'available_columns',
    7:               options_for_select((query.available_inline_columns - query.columns).collect {|column| [column.caption, column.name]}),
    8:               :multiple => true, :size => 10, :style => "width:150px",
    9:               :ondblclick => "moveOptions(this.form.available_columns, this.form.selected_columns);" %>
    10:     </td>
  app/models/query.rb:530:in `select'
  app/models/query.rb:530:in `available_inline_columns'
  app/views/queries/_columns.html.erb:7:in `_app_views_queries__columns_html_erb__481089824_106014040'
  app/views/issues/index.html.erb:27:in `block in _app_views_issues_index_html_erb__981229035_95911220'
  app/views/issues/index.html.erb:11:in `_app_views_issues_index_html_erb__981229035_95911220'
  app/controllers/issues_controller.rb:83:in `block (2 levels) in index'
  app/controllers/issues_controller.rb:82:in `index'

RE: Redmine preview attach column/image gallery - Added by Olaaf Rossi over 4 years ago

Is this plugin compatible with Redmine v2.3.0? i have updated recently and this plugin no longer works. The "A" column is not visable in the issue tracker, although the plugin shows itself as installed and the settings are available in the admin page..

thanks

RE: Redmine preview attach column/image gallery - Added by Jose Membrado over 3 years ago

I’ve installed your plugin: “Preview attach column/image gallery” in this versión of redmine above. The pluging seems to be working but I can not add any of the columns in the Issue Configuration Page (http://_____/redmine/settings?tab=issues).
Environment:
Redmine version 2.5.0.stable
Ruby version 1.8.7-p249 (2010-01-10) [x86_64-linux]
Rails version 3.2.17
Database adapter MySQL
Redmine plugins:
redmine_meetings 0.2.3
redmine_preview_attach_column 0.1.7

(1-18/18)