本日は、view_customize pluginを導入してみました。
外観やJavascriptの設定(導入)もできるようで、
非常におもしろそうなpluginです。
いつもの通りの手順でやってみます。
今回の注意点は、gitでクローンしたディレクトリ名を直しておく事でしょうか(赤字部分)
(参考サイト)
Github:onozaty/redmine-view-customize
https://github.com/onozaty/redmine-view-customize
設定サンプル
https://github.com/onozaty/redmine-view-customize-scripts
設定後の結果
外観やJavascriptの設定(導入)もできるようで、
非常におもしろそうなpluginです。
いつもの通りの手順でやってみます。
[root@hogehoge /]# docker exec -it redmine-container /bin/bash [root@ac214042296a /]# cd /opt/redmine/apps/redmine/htdocs/plugins/ [root@ac214042296a plugins]# git clone https://github.com/onozaty/redmine-view-customize.git Cloning into 'redmine-view-customize'... remote: Enumerating objects: 5, done. ・・・・ Resolving deltas: 100% (197/197), done. [root@ac214042296a plugins]# mv redmine-view-customize/ view_customize/ [root@ac214042296a plugins]# export PATH=$PATH:/opt/redmine/ruby/bin [root@ac214042296a plugins]# export RAILS_ENV=production [root@ac214042296a plugins]# cd .. [root@ac214042296a htdocs]# bundle install --no-deployment --without development test postgresql sqlite Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. Your Gemfile lists the gem redmine_crm (>= 0) more than once. You should probably keep only one of them. While it's not a problem now, it could cause errors if you change the version of one of them later. Fetching gem metadata from http://rubygems.org/............ Fetching gem metadata from https://rubygems.org/.......... Fetching version metadata from http://rubygems.org/... Fetching version metadata from https://rubygems.org/.. Fetching dependency metadata from http://rubygems.org/.. Fetching dependency metadata from https://rubygems.org/. Using rake 12.3.1 Using i18n 0.7.0 ・・・ Using rails 4.2.8 Using redmine_crm 0.0.37 Using redmine_extensions 0.2.12 Bundle complete! 51 Gemfile dependencies, 74 gems now installed. Gems in the groups development, test, postgresql and sqlite were not installed. Use `bundle show [gemname]` to see where a bundled gem is installed. [root@ac214042296a htdocs]# bundle exec rake --trace redmine:plugins:migrate ** Invoke redmine:plugins:migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute redmine:plugins:migrate ・・・ Migrating sidebar_hide (Sidebar Hide Plugin)... Migrating view_customize (View Customize plugin)... == 1 CreateViewCustomizes: migrating ========================================== -- create_table(:view_customizes) -> 0.2907s == 1 CreateViewCustomizes: migrated (0.2909s) ================================= == 2 AddColumnViewCustomizes: migrating ======================================= -- add_column(:view_customizes, :is_enabled, :boolean, {:null=>false, :default=>true}) -> 0.0379s -- add_column(:view_customizes, :is_private, :boolean, {:null=>false, :default=>false}) -> 0.0678s -- add_column(:view_customizes, :author_id, :integer, {:null=>false, :default=>0}) -> 0.0290s == 2 AddColumnViewCustomizes: migrated (0.1354s) ============================== == 3 AddInsertionPositionToViewCustomizes: migrating ========================== -- add_column(:view_customizes, :insertion_position, :string, {:null=>false, :default=>"html_head"}) -> 0.0283s -- rename_column(:view_customizes, :customize_type, :customize_type_old) -> 0.0144s -- add_column(:view_customizes, :customize_type, :string, {:null=>false, :default=>"javascript"}) -> 0.0309s -- remove_column(:view_customizes, :customize_type_old) -> 0.0368s -- change_column_null(:view_customizes, :path_pattern, false) -> 0.0628s -- change_column_null(:view_customizes, :code, false) -> 0.0625s == 3 AddInsertionPositionToViewCustomizes: migrated (0.2375s) ================= == 4 AddCommentsToViewCustomizes: migrating =================================== -- add_column(:view_customizes, :comments, :string, {:null=>true}) -> 0.0380s == 4 AddCommentsToViewCustomizes: migrated (0.0383s) ========================== ** Invoke db:schema:dump (first_time) ** Invoke environment ** Invoke db:load_config (first_time) ** Execute db:load_config ** Execute db:schema:dump [root@ac214042296a htdocs]# systemctl restart redmine
今回の注意点は、gitでクローンしたディレクトリ名を直しておく事でしょうか(赤字部分)
(参考サイト)
Github:onozaty/redmine-view-customize
https://github.com/onozaty/redmine-view-customize
設定サンプル
https://github.com/onozaty/redmine-view-customize-scripts
設定後の結果