[#242] add a clone link into the monitoring page

This commit is contained in:
Alexander Machehin 2013-08-01 23:25:01 +06:00
parent f416bd9071
commit fb25e313c1
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
%tr{:id => "row#{build_list_counter}", :class => "#{build_list_status_color(build_list.status)}"} %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('<br/>').html_safe
%td %td
= build_list.human_status = build_list.human_status
%br %br