fixes wrong edit/delete link names in timelines#show

pull/1196/head
jwollert 12 years ago
parent 900d9f5392
commit 2e9779f696
  1. 22
      app/views/timelines/show.html.erb

@ -19,13 +19,21 @@ See doc/COPYRIGHT.rdoc for more details.
:title => l('timelines.new_timeline'),
:class => 'icon icon-add')) %>
<%= li_unless_nil(link_to_if_authorized("#{l(:button_edit)} <span class='hidden-for-sighted'> #{h(@timeline.name)}</span>",
{:controller => 'timelines', :action => 'edit', :project_id => @project, :id => @timeline},
:class => 'icon icon-edit')) %>
<%= li_unless_nil(link_to_if_authorized("#{l(:button_delete)}<span class='hidden-for-sighted'> #{h(@timeline.name)}</span>",
{:controller => 'timelines', :action => 'confirm_destroy', :project_id => @project, :id => @timeline},
:class => 'icon icon-del')) %>
<%= li_unless_nil(link_to_if_authorized({ :controller => 'timelines',
:action => 'edit',
:project_id => @project,
:id => @timeline},
:class => 'icon icon-edit') do %>
<%= l(:button_edit) %><span class='hidden-for-sighted'><%= h(@timeline.name) %></span>
<% end) %>
<%= li_unless_nil(link_to_if_authorized({ :controller => 'timelines',
:action => 'confirm_destroy',
:project_id => @project,
:id => @timeline},
:class => 'icon icon-del') do %>
<%= l(:button_delete) %><span class='hidden-for-sighted'><%= h(@timeline.name) %></span>
<% end) %>
<% end %>
<h2><%= @timeline.name %></h2>

Loading…
Cancel
Save