插件 » Redmine Local Avatars 本地头像插件
基本介绍
作者: | redmineplugins.cn Admin | |
---|---|---|
主页: | https://redmine.org/plugins/redmine_local_avatars | |
版本库: | ||
创建于: | 2020-01-02 | |
当前版本: | 1.0.5 | |
兼容性: | 4.1.*, 4.0.* |
Redmine默认使用Gavatar外部头像服务,但往往因为网速原因,头像图片显示较慢,用户体验不好。尤其是对于intranet的内网用户,因无法连接外网则导致头像无效。redmine_local_avatar插件则可以允许用户使用本地任意的图片作为头像。极大的提高了头像图片的显示效率。
通过该插件源码发现,它借助了Redmine自身的Attachment模块实现了保存用户头像,该方法无需借助额外的ruby gems即可实现本地头像功能,每个用户的头像就相当于User对象的一个附件,更换头像即使将原始附件覆盖即可。无需额外ruby gems支持,可使插件具备更好的Redmine兼容性,同时用户还可以根据自己的需求在插件源码基础上适当修改,满足个性化需求。
在Redmine官方网站可以找到的原始讨论贴 https://www.redmine.org/boards/3/topics/5365 ,本地下载区是该插件的最新版本,Redmine当前的最新版本(4.1)上测试通过。
版本更新
积分(10)
1.0.5 (2020-01-02)
兼容性: Redmine 4.0.*, 4.1.*
- Fix version information
- Fix README
- redmine_local_avatars-1.0.5.redmine4.1_fixed-3.zip ( Redmine 4.1 专用版 )
文件
没有任何数据可供显示
问题
# | 跟踪 | 状态 | 作者 | 主题 | 更新于 |
---|---|---|---|---|---|
13 | 报错 | 已解决 | redmineplugins.cn Admin | NameError: undefined method `avatar' for module `ApplicationHelper' | 2020-02-26 15:48 |
175 | 咨询 | 已解决 | 小小 孙 | 点击“我的账号”后,提示404页面,不能确定是不是这个插件不兼容导致的,Redmine版本:3.4.* | 2021-03-31 21:18 |
361 | 报错 | 进行中 | n kiven | 系统启动不了 | 2022-05-18 20:47 |
评论
添加评论
由 匿名用户 在 超过一年 之前添加
支持redmine5.0吗
由 redmineplugins.cn Admin 在 超过一年 之前添加
当前不可以,如有需要可重新对redmine5做兼容适配
由 redmineplugins.cn Admin 在 超过 2 年 之前添加
@n kiven 错误显示你的redmine版本太低(3.4.13),而redmine_issues_panel插件需要支持4.1或以上的版本才可以。
由 n kiven 在 超过 2 年 之前添加
/home/redmine/redmine/plugins/redmine_ckeditor/init.rb:22: warning: constant Loofah::HTML5::WhiteList is deprecated
rake aborted!
Redmine::PluginRequirementError: redmine_issues_panel plugin requires Redmine 4.1 or higher but current is 3.4.13.stable
/home/redmine/redmine/lib/redmine/plugin.rb:210:in `block in requires_redmine’
/home/redmine/redmine/lib/redmine/plugin.rb:205:in `each’
/home/redmine/redmine/lib/redmine/plugin.rb:205:in `requires_redmine’
/home/redmine/redmine/plugins/redmine_issues_panel/init.rb:10:in `block in <top (required)>'
/home/redmine/redmine/lib/redmine/plugin.rb:75:in `instance_eval’
/home/redmine/redmine/lib/redmine/plugin.rb:75:in `register’
/home/redmine/redmine/plugins/redmine_issues_panel/init.rb:6:in `<top (required)>'
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:274:in `require’
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:274:in `block in require’
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:240:in `load_dependency’
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:274:in `require’
/home/redmine/redmine/lib/redmine/plugin.rb:155:in `block in load’
/home/redmine/redmine/lib/redmine/plugin.rb:146:in `each’
/home/redmine/redmine/lib/redmine/plugin.rb:146:in `load’
/home/redmine/redmine/config/initializers/30-redmine.rb:21:in `<top (required)>'
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:268:in `load’
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:268:in `block in load’
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:240:in `load_dependency’
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:268:in `load’
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/railties-4.2.11.1/lib/rails/engine.rb:652:in `block in load_config_initializer’
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.11.1/lib/active_support/notifications.rb:166:in `instrument’
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/railties-4.2.11.1/lib/rails/engine.rb:651:in `load_config_initializer’
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/railties-4.2.11.1/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/railties-4.2.11.1/lib/rails/engine.rb:615:in `each’
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/railties-4.2.11.1/lib/rails/engine.rb:615:in `block in <class:Engine>'
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/railties-4.2.11.1/lib/rails/initializable.rb:30:in `instance_exec’
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/railties-4.2.11.1/lib/rails/initializable.rb:30:in `run’
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/railties-4.2.11.1/lib/rails/initializable.rb:55:in `block in run_initializers’
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/railties-4.2.11.1/lib/rails/initializable.rb:44:in `each’
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/railties-4.2.11.1/lib/rails/initializable.rb:44:in `tsort_each_child’
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/railties-4.2.11.1/lib/rails/initializable.rb:54:in `run_initializers’
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/railties-4.2.11.1/lib/rails/application.rb:352:in `initialize!'
/home/redmine/redmine/config/environment.rb:14:in `<top (required)>'
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/railties-4.2.11.1/lib/rails/application.rb:328:in `require’
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/railties-4.2.11.1/lib/rails/application.rb:328:in `require_environment!'
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/railties-4.2.11.1/lib/rails/application.rb:457:in `block in run_tasks_blocks’
/home/redmine/redmine/vendor/bundle/ruby/2.3.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
Tasks: TOP ⇒ redmine:plugins:migrate ⇒ environment
(See full trace by running task with --trace)
由 redmineplugins.cn Admin 在 将近 5 年 之前添加
Redmine 4.1新增了一个 avatars_helper 。如果是Redmine 4.1 ,请下载 redmine_local_avatars-1.0.5.redmine4.1_fixed-3.zip 这个包
由 redmineplugins.cn Admin 在 将近 5 年 之前添加
是我上传的新版本吗? 方便加下我的QQ号 595022
由 匿名用户 在 将近 5 年 之前添加
兄弟,还是一样的错误
由 redmineplugins.cn Admin 在 将近 5 年 之前添加
我上传了一个修复4.1兼容问题的版本,你试一下吧。文件名 redmine_local_avatars-1.0.5.redmine4.1_fixed.zip
由 redmineplugins.cn Admin 在 将近 5 年 之前添加
刚才测试发现1.0.5的版本的确不支持Redmine 4.1,我改了一个兼容Redmine 4.1的版本。
由 匿名用户 在 将近 5 年 之前添加
是不是缺少个文件? 我看文件夹里还有个同名的符号链接,指向/Users/liwei/Documents/svndata/blackbox.local/plugins/redmine_local_avatars/
由 匿名用户 在 将近 5 年 之前添加
4.1
由 redmineplugins.cn Admin 在 将近 5 年 之前添加
你的Redmine的版本是多少?
由 匿名用户 在 将近 5 年 之前添加
bundle exec rake redmine:plugins:migrate RAILS_ENV=production
rake aborted!
NameError: undefined method `avatar’ for module `ApplicationHelper’
/opt/redmine/plugins/redmine_local_avatars/lib/application_helper_avatar_patch.rb:25:in `alias_method’
/opt/redmine/plugins/redmine_local_avatars/lib/application_helper_avatar_patch.rb:25:in `block in included’
/opt/redmine/plugins/redmine_local_avatars/lib/application_helper_avatar_patch.rb:24:in `class_eval’
/opt/redmine/plugins/redmine_local_avatars/lib/application_helper_avatar_patch.rb:24:in `included’
/opt/redmine/plugins/redmine_local_avatars/init.rb:35:in `include’
/opt/redmine/plugins/redmine_local_avatars/init.rb:35:in `block in <top (required)>'
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.4.1/lib/active_support/callbacks.rb:426:in `instance_exec’
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.4.1/lib/active_support/callbacks.rb:426:in `block in make_lambda’
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.4.1/lib/active_support/callbacks.rb:198:in `block (2 levels) in halting’
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.4.1/lib/active_support/callbacks.rb:606:in `block (2 levels) in default_terminator’
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.4.1/lib/active_support/callbacks.rb:605:in `catch’
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.4.1/lib/active_support/callbacks.rb:605:in `block in default_terminator’
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.4.1/lib/active_support/callbacks.rb:199:in `block in halting’
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.4.1/lib/active_support/callbacks.rb:513:in `block in invoke_before’
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.4.1/lib/active_support/callbacks.rb:513:in `each’
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.4.1/lib/active_support/callbacks.rb:513:in `invoke_before’
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.4.1/lib/active_support/callbacks.rb:131:in `run_callbacks’
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.4.1/lib/active_support/reloader.rb:89:in `prepare!'
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/railties-5.2.4.1/lib/rails/application/finisher.rb:63:in `block in <module:Finisher>'
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/railties-5.2.4.1/lib/rails/initializable.rb:32:in `instance_exec’
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/railties-5.2.4.1/lib/rails/initializable.rb:32:in `run’
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/railties-5.2.4.1/lib/rails/initializable.rb:61:in `block in run_initializers’
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/railties-5.2.4.1/lib/rails/initializable.rb:60:in `run_initializers’
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/railties-5.2.4.1/lib/rails/application.rb:361:in `initialize!'
/opt/redmine/config/environment.rb:16:in `<top (required)>'
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `require’
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `block in require’
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:257:in `load_dependency’
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `require’
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/railties-5.2.4.1/lib/rails/application.rb:337:in `require_environment!'
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/railties-5.2.4.1/lib/rails/application.rb:520:in `block in run_tasks_blocks’
/opt/redmine/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/opt/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in `load’
/opt/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in `kernel_load’
/opt/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:28:in `run’
/opt/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/cli.rb:476:in `exec’
/opt/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run’
/opt/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command’
/opt/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor.rb:399:in `dispatch’
/opt/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/cli.rb:30:in `dispatch’
/opt/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/base.rb:476:in `start’
/opt/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/cli.rb:24:in `start’
/opt/redmine/.gem/ruby/gems/bundler-2.1.4/exe/bundle:46:in `block in <top (required)>'
/opt/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/friendly_errors.rb:123:in `with_friendly_errors’
/opt/redmine/.gem/ruby/gems/bundler-2.1.4/exe/bundle:34:in `<top (required)>'
/opt/redmine/bin/bundle:23:in `load’
/opt/redmine/bin/bundle:23:in `<main>'
Tasks: TOP ⇒ redmine:plugins:migrate ⇒ environment
(See full trace by running task with --trace)
由 redmineplugins.cn Admin 在 将近 5 年 之前添加
安装不上?把报错信息贴上来来看下吧
由 匿名用户 在 将近 5 年 之前添加
这个插件无需额外gems,因此没有Gemfile
由 匿名用户 在 将近 5 年 之前添加
没有Gemfile,安装不上