From 2e9779f696cefac4b5375cb9c034fc56381674f1 Mon Sep 17 00:00:00 2001 From: jwollert Date: Tue, 18 Jun 2013 17:14:41 +0200 Subject: [PATCH] fixes wrong edit/delete link names in timelines#show --- app/views/timelines/show.html.erb | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/app/views/timelines/show.html.erb b/app/views/timelines/show.html.erb index c9bf4d51b4..9475736923 100644 --- a/app/views/timelines/show.html.erb +++ b/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)} #{h(@timeline.name)}", - {:controller => 'timelines', :action => 'edit', :project_id => @project, :id => @timeline}, - :class => 'icon icon-edit')) %> - - <%= li_unless_nil(link_to_if_authorized("#{l(:button_delete)} #{h(@timeline.name)}", - {: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) %><%= h(@timeline.name) %> + <% 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) %><%= h(@timeline.name) %> + <% end) %> <% end %>

<%= @timeline.name %>