ruby-on-rails - 在 Redmine 中,如何在项目菜单栏中添加我的自定义插件?
问题描述
我正在尝试将我的插件添加到项目的菜单中,例如。我想将我的插件用作:https://redmine-site/projects/test-project/my-plugin
解决方案
您可以在项目菜单中添加指向您的自定义控制器(或任何其他地方)的链接。在您的 init.rb 中使用此代码
menu :project_menu, :plugin_example, { controller: :example, action: :say_hello}, caption: :label_sample, after: :time_entries, :param => :project_id
推荐阅读
- python - 从传感器读取并写入 CSV 文件
- python - 简单的 Salesforce 日期上传
- python - 如何使用 Jupyter python 将 xls 表写入 docx
- c# - 在 Login.cshtml.cs 中设置用户详细信息
- react-native - 将配置与带有查询参数的 URL 的 react-navigation v5.9 链接
- java - 如何对 TreeMap 的 keySet() 进行排序
带有包含数字的键? - sql - 如何在 hive sql 中将字符串 YYYYMM 转换为日期
- label - fluentd中的动态标签
- angular - Angular 11 Web API 控制器 POST 方法
- clojure - 当 var 位于向量或列表中时,如何获取 Clojure 元数据?