diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-10-05 18:05:41 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-10-05 18:05:41 +0000 |
commit | e8971e5f831cfaee8fe18508c1fd154af99a96e0 (patch) | |
tree | 3ee73972d20cb223e04e7418b0d932cbce342348 /app/views/wiki | |
parent | 73dba2ac044f9ff5de1917fd2457fd1a7b3f3377 (diff) | |
download | redmine-e8971e5f831cfaee8fe18508c1fd154af99a96e0.tar.gz redmine-e8971e5f831cfaee8fe18508c1fd154af99a96e0.zip |
Added some accesskeys:
* e => edit
* r => preview
* f => quick search
* 4 => search
git-svn-id: http://redmine.rubyforge.org/svn/trunk@804 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/wiki')
-rw-r--r-- | app/views/wiki/edit.rhtml | 4 | ||||
-rw-r--r-- | app/views/wiki/show.rhtml | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/views/wiki/edit.rhtml b/app/views/wiki/edit.rhtml index 99bc5fa25..96295004a 100644 --- a/app/views/wiki/edit.rhtml +++ b/app/views/wiki/edit.rhtml @@ -8,7 +8,7 @@ <%= link_to l(:label_help), {:controller => 'help', :ctrl => 'wiki', :page => 'syntax' }, :onclick => "window.open('#{ url_for :controller => 'help', :ctrl => 'wiki', :page => 'syntax' }', '', 'resizable=yes, location=no, width=300, height=500, menubar=no, status=no, scrollbars=yes'); return false;" %> </div> -<p><%= f.text_area :text, :cols => 100, :rows => 25, :class => 'wiki-edit' %></p> +<p><%= f.text_area :text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %></p> <p><label><%= l(:field_comments) %></label><br /><%= f.text_field :comments, :size => 120 %></p> <p><%= submit_tag l(:button_save) %> <%= link_to_remote l(:label_preview), @@ -17,7 +17,7 @@ :update => 'preview', :with => "Form.serialize('wiki_form')", :complete => "location.href='#preview-top'" - } %></p> + }, :accesskey => accesskey(:preview) %></p> <%= wikitoolbar_for 'content_text' %> <% end %> diff --git a/app/views/wiki/show.rhtml b/app/views/wiki/show.rhtml index 96c2fca6d..8def56072 100644 --- a/app/views/wiki/show.rhtml +++ b/app/views/wiki/show.rhtml @@ -1,5 +1,5 @@ <div class="contextual"> -<%= link_to_if_authorized(l(:button_edit), {:action => 'edit', :page => @page.title}, :class => 'icon icon-edit') if @content.version == @page.content.version %> +<%= link_to_if_authorized(l(:button_edit), {:action => 'edit', :page => @page.title}, :class => 'icon icon-edit', :accesskey => accesskey(:edit)) if @content.version == @page.content.version %> <%= link_to_if_authorized(l(:button_rename), {:action => 'rename', :page => @page.title}, :class => 'icon icon-move') if @content.version == @page.content.version %> <%= link_to_if_authorized(l(:button_delete), {:action => 'destroy', :page => @page.title}, :method => :post, :confirm => l(:text_are_you_sure), :class => 'icon icon-del') %> <%= link_to_if_authorized(l(:button_rollback), {:action => 'edit', :page => @page.title, :version => @content.version }, :class => 'icon icon-cancel') if @content.version < @page.content.version %> |