Skip to content

Commit

Permalink
Move related-issue-shortcut to new plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
nanego committed Nov 28, 2024
1 parent 7286977 commit dce747e
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 24 deletions.
15 changes: 0 additions & 15 deletions app/views/settings/_redmine_plugin_tiny_features_settings.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,3 @@
// Add to disabled option pagination when select2 option is not checked when the page is launched
hidePagination()
<% end %>

<!-- Create Related Shortcut options -->
<hr>
<p>
<%= label_tag '', { style: 'width: auto;' } do %>
<%= check_box_tag "settings[create_related_issue_shortcut]", '1', Setting["plugin_redmine_tiny_features"]["create_related_issue_shortcut"] %>
<%= l("setting_create_related_issue_shortcut") %>
<% end %>
</p>
<p>
<%= label_tag l("setting_create_related_issue_shortcut_project_id") %>
<%= select_tag "settings[create_related_issue_shortcut_project_id]",
project_tree_options_for_select(Project.active.sorted,
selected: Project.where(id: Setting["plugin_redmine_tiny_features"]["create_related_issue_shortcut_project_id"]).first) %>
</p>
3 changes: 0 additions & 3 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,3 @@ en:
label_issue_display_by_status: "Colorization According to status"
field_show_pagination_at_top_results: "Show pagination links at the top of issues results"
hide_members_on_project_overview: "Hide members section on project overview page"
label_create_related_issue_shortcut: "Create a related issue"
setting_create_related_issue_shortcut: "Display a shortcut to create a related issue"
setting_create_related_issue_shortcut_project_id: "Project where to create related issues"
3 changes: 0 additions & 3 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,3 @@ fr:
label_issue_display_by_status: "Colorisation par statut"
field_show_pagination_at_top_results: "Afficher les liens de pagination en haut des résultats des demandes"
hide_members_on_project_overview: "Masquer la section des membres sur la page d'aperçu des projets"
label_create_related_issue_shortcut: "Créer une demande liée"
setting_create_related_issue_shortcut: "Afficher un raccourci pour créer une demande liée"
setting_create_related_issue_shortcut_project_id: "Projet où créer les demandes liées"
4 changes: 1 addition & 3 deletions init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
'journalize_note_deletion': Rails.env.test? ? '0' : '1',
'use_select2': Rails.env.test? || !(Redmine::Plugin.installed?(:redmine_base_select2)) ? '0' : '1',
'load_issue_edit_form_asynchronously': Rails.env.test? ? '0' : '1',
'disable_email_hiding': '',
'create_related_issue_shortcut': '',
'create_related_issue_shortcut_project_id': ''
'disable_email_hiding': ''
}
end

0 comments on commit dce747e

Please sign in to comment.