# redmine project setting tab **Repository Path**: noikiy/redmine-project-setting-tab ## Basic Information - **Project Name**: redmine project setting tab - **Description**: No description available - **Primary Language**: Ruby - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2017-01-17 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Redmine Project Setting Tab Plugin This is a redmine plugin that add support for other plugin to add a setting tab in project setting page ## Install > git clone https://github.com/leo108/redmine-project-setting-tab.git \_project\_setting *Notice that you have to clone this plugin into a directory named '\_project\_setting'.* ## Usage ### add a tab Redmine::Plugin.register :redmine_polls do [ ... ] add_tab :polls, :partial => 'tab/polls' end `add_tab` method will add a tab to project setting tabs, there can be more than one `add_tab` in a plugin. The first argument is the tab's label, it can be a I18n symbol, the second argument is a Hash, it render your tab's view, just like the render's first argument, hash's key should be one of `:partial`, `:template`, `:inline`, `:file` and `:text`. ### add some settings Redmine::Plugin.register :redmine_polls do [ ... ] add_tab :polls, :partial => 'tab/polls' tab_settings :default => {'email_address' => ''} end `tab_settings` method set a list of settings's default value. ### the tab's view We set the :partial to 'tab/polls', so the view file is app/views/tab/\_polls.html.erb
| Notification Email |