Skip to content

Commit e22d40c

Browse files
version 0.5.1
1 parent a15128f commit e22d40c

File tree

6 files changed

+13
-7
lines changed

6 files changed

+13
-7
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Just download the latest release of this plugin and extract in #{RAILS_ROOT}/plu
3939
* **[tofi86](https://github.com/tofi86)**
4040
* **[loxway](https://github.com/loxway)**
4141
* **[kporras07](https://github.com/kporras07)**
42+
* **[pkonopelko](https://github.com/pkonopelko)**
4243

4344
## License
4445
Released under the MIT License.

app/views/hooks/_view_layouts_base_body_bottom.html.erb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
<% elsif Setting['text_formatting'] == 'markdown' %>
55
<%= javascript_include_tag 'view_layouts_base_body_bottom_markdown', :plugin => 'redmine_shortcuts' %>
66
<% end %>
7-
<% if User.current.id != 2 %>
7+
<% if Setting.plugin_redmine_shortcuts['enable_help_modal'] == '1' && !(Setting.login_required? and User.current.anonymous?) %>
88
<%= javascript_include_tag 'view_layouts_base_body_bottom_questionmark', :plugin => 'redmine_shortcuts' %>
99
<%= stylesheet_link_tag 'questionmark', :plugin => 'redmine_shortcuts', media: "all" %>
1010
<% end %>
11-
1211
<% end %>

app/views/settings/_redmine_shortcuts.html.erb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@
33
<%= check_box_tag 'settings[enable_issue_shortcuts]', '1', @settings['enable_issue_shortcuts'] %>
44
</td>
55
<p>
6-
<label><%= l(:shortcuts_settings_enable_in_editor) %></b></label>
6+
<label><%= l(:shortcuts_settings_enable_in_editor) %></label>
77
<%= check_box_tag 'settings[enable_editor_shortcuts]', '1', @settings['enable_editor_shortcuts'] %>
88
</p>
99
<p>
10-
<label><%= l(:shortcuts_settings_enable_help_link) %></b></label>
10+
<label><%= l(:shortcuts_settings_enable_help_link) %></label>
1111
<%= check_box_tag 'settings[enable_help_link]', '1', @settings['enable_help_link'] %>
1212
</p>
1313
<p>
14-
<label><%= l(:shortcuts_settings_help_link_label) %></b></label>
14+
<label><%= l(:shortcuts_settings_enable_help_modal) %></label>
15+
<%= check_box_tag 'settings[enable_help_modal]', '1', @settings['enable_help_modal'] %>
16+
</p>
17+
<p>
18+
<label><%= l(:shortcuts_settings_help_link_label) %></label>
1519
<%= text_field_tag 'settings[help_link_label]', @settings['help_link_label'].blank? ? 'Shortcuts' : @settings['help_link_label'], :required => true %>
1620
</p>

config/locales/en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ en:
33
shortcuts_settings_enable_in_issues: Enable issue shortcuts
44
shortcuts_settings_enable_in_editor: Enable editor shortcuts
55
shortcuts_settings_enable_help_link: Enable help link
6+
shortcuts_settings_enable_help_modal: Enable help modal
67
shortcuts_settings_help_link_label: Help link label
78
shortcuts_help_title: Redmine Shortcuts Quick Reference
89
shortcuts_help_issue_index: Issues index

config/locales/it.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ it:
33
shortcuts_settings_enable_in_issues: Abilita scorciatoie nelle segnalazioni
44
shortcuts_settings_enable_in_editor: Abilita scorciatoie nell'editor
55
shortcuts_settings_enable_help_link: Abilita link aiuto
6+
shortcuts_settings_enable_help_modal: Abilita modale aiuto
67
shortcuts_settings_help_link_label: Etichetta link aiuto
78
shortcuts_help_title: Guida Rapida Redmine Shortcuts
89
shortcuts_help_issue_index: Elenco segnalazioni

init.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
name 'Redmine Shortcuts'
55
author 'Davide Giacometti'
66
description 'Provides useful keyboard shortcuts'
7-
version '0.5.0'
7+
version '0.5.1'
88
url 'https://github.com/davidegiacometti/redmine_shortcuts'
99
author_url 'https://github.com/davidegiacometti'
1010

11-
settings :partial => 'settings/redmine_shortcuts', :default => {'enable_issue_shortcuts' => '1', 'enable_editor_shortcuts' => '1', 'enable_help_link' => '1', 'help_link_label' => 'Redmine shortcuts'}
11+
settings :partial => 'settings/redmine_shortcuts', :default => {'enable_issue_shortcuts' => '1', 'enable_editor_shortcuts' => '1', 'enable_help_link' => '1', 'help_link_label' => 'Redmine shortcuts', 'enable_help_modal' => '1' }
1212

1313
menu :top_menu, :redmine_shortcuts, {:controller => 'help', :action => 'index'}, :caption => Proc.new { Setting.plugin_redmine_shortcuts['help_link_label'] }, :last => true, :if => Proc.new { Setting.plugin_redmine_shortcuts['enable_help_link'] }
1414
end

0 commit comments

Comments
 (0)