Adds missing edit accesskeys

pull/994/head
Hagen Schink 11 years ago
parent 5318a9d591
commit 43235f3cef
  1. 3
      app/views/messages/show.html.erb
  2. 2
      app/views/my/page.html.erb
  3. 3
      app/views/reportings/show.html.erb
  4. 3
      app/views/timelines/show.html.erb
  5. 5
      app/views/users/show.html.erb
  6. 2
      app/views/versions/show.html.erb
  7. 5
      app/views/wiki/annotate.html.erb
  8. 2
      app/views/workflows/edit.html.erb

@ -40,7 +40,8 @@ See doc/COPYRIGHT.rdoc for more details.
{ :class => 'icon icon-quote'} ) unless @topic.locked? %>
<%= link_to(l(:button_edit),
edit_topic_path(@topic),
:class => 'icon icon-edit') if @message.editable_by?(User.current) %>
:class => 'icon icon-edit',
accesskey: accesskey(:edit)) if @message.editable_by?(User.current) %>
<%= link_to(l(:button_delete),
topic_path(@topic),
:method => :delete,

@ -29,7 +29,7 @@ See doc/COPYRIGHT.rdoc for more details.
<% breadcrumb_paths(l(:label_my_page)) %>
<% content_for :action_menu_specific do %>
<%= link_to l(:label_personalize_page), :action => 'page_layout' %>
<%= link_to l(:label_personalize_page), action: 'page_layout', accesskey: accesskey(:edit) %>
<% end %>
<h2><%=l(:label_my_page)%></h2>

@ -35,7 +35,8 @@ See doc/COPYRIGHT.rdoc for more details.
<% content_for :action_menu_specific do %>
<%= link_to_if_authorized(l(:button_edit),
{:action => :edit, :project_id => @project, :id => @reporting},
:class => 'icon icon-edit') %>
:class => 'icon icon-edit',
accesskey: accesskey(:edit)) %>
<%= link_to_if_authorized(l(:button_delete),
{:action => :confirm_destroy, :project_id => @project, :id => @reporting},
:class => 'icon icon-delete') %>

@ -40,7 +40,8 @@ See doc/COPYRIGHT.rdoc for more details.
:action => 'edit',
:project_id => @project,
:id => @timeline},
:class => 'icon icon-edit') do %>
:class => 'icon icon-edit',
:accesskey => accesskey(:edit)) do %>
<%= l(:button_edit) %><span class='hidden-for-sighted'><%= h(@timeline.name) %></span>
<% end) %>

@ -32,7 +32,10 @@ See doc/COPYRIGHT.rdoc for more details.
<% end %>
<% content_for :action_menu_specific do %>
<%= link_to(l(:button_edit), edit_user_path(@user), :class => 'icon icon-edit') if User.current.admin? %>
<%= link_to(l(:button_edit),
edit_user_path(@user),
:class => 'icon icon-edit',
accesskey: accesskey(:edit)) if User.current.admin? %>
<% end %>
<h2><%= avatar @user, :size => "50" %> <%=h @user.name %></h2>

@ -28,7 +28,7 @@ See doc/COPYRIGHT.rdoc for more details.
++#%>
<% content_for :action_menu_specific do %>
<%= link_to_if_authorized l(:button_edit), {:controller => '/versions', :action => 'edit', :id => @version}, :class => 'icon icon-edit' %>
<%= link_to_if_authorized l(:button_edit), {:controller => '/versions', :action => 'edit', :id => @version}, :class => 'icon icon-edit', accesskey: accesskey(:edit) %>
<%= link_to_if_authorized(l(:button_edit_associated_wikipage, :page_title => @version.wiki_page_title), {:controller => '/wiki', :action => 'edit', :project_id => @version.project, :id => Wiki.titleize(@version.wiki_page_title)}, :class => 'icon icon-edit') unless @version.wiki_page_title.blank? || @version.project.wiki.nil? %>
<%= call_hook(:view_versions_show_contextual, { :version => @version, :project => @project }) %>
<% end %>

@ -28,7 +28,10 @@ See doc/COPYRIGHT.rdoc for more details.
++#%>
<% content_for :action_menu_specific do %>
<%= link_to(l(:button_edit), {:action => 'edit', :id => @page}, :class => 'icon icon-edit') %>
<%= link_to(l(:button_edit),
{:action => 'edit', :id => @page},
:class => 'icon icon-edit',
:accesskey => accesskey(:edit)) %>
<%= link_to(l(:label_history), {:action => 'history', :id => @page}, :class => 'icon icon-wiki') %>
<% end %>

@ -47,7 +47,7 @@ See doc/COPYRIGHT.rdoc for more details.
<label><%= check_box_tag 'used_statuses_only', '1', @used_statuses_only %> <%= l(:label_display_used_statuses_only) %></label>
</p>
<p>
<%= submit_tag l(:button_edit), :name => nil %>
<%= submit_tag l(:button_edit), :name => nil, :accesskey => accesskey(:edit) %>
</p>
<% end %>

Loading…
Cancel
Save