From fb25e313c1699ea917c7ddd6f7f57a7e41fa0642 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Thu, 1 Aug 2013 23:25:01 +0600 Subject: [PATCH] [#242] add a clone link into the monitoring page --- app/views/projects/build_lists/_build_list.html.haml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/projects/build_lists/_build_list.html.haml b/app/views/projects/build_lists/_build_list.html.haml index 1b9476e79..a186a9f32 100644 --- a/app/views/projects/build_lists/_build_list.html.haml +++ b/app/views/projects/build_lists/_build_list.html.haml @@ -1,5 +1,7 @@ %tr{:id => "row#{build_list_counter}", :class => "#{build_list_status_color(build_list.status)}"} - %td= link_to build_list.id, build_list + %td= [link_to(build_list.id, build_list), + (link_to(t('layout.clone'), new_project_build_list_path(build_list.project, + :build_list_id => build_list.id)) if can?(:create, build_list))].compact.join('
').html_safe %td = build_list.human_status %br