0001-Adds-view_projects_copy_only_items-hook.patch

Jens Krämer, 2018-05-28 10:01

Download (1.37 KB)

View differences:

app/views/projects/copy.html.erb
12 12
  <label class="block"><%= check_box_tag 'only[]', 'documents', true, :id => nil %> <%= l(:label_document_plural) %> (<%= @source_project.documents.count %>)</label>
13 13
  <label class="block"><%= check_box_tag 'only[]', 'boards', true, :id => nil %> <%= l(:label_board_plural) %> (<%= @source_project.boards.count %>)</label>
14 14
  <label class="block"><%= check_box_tag 'only[]', 'wiki', true, :id => nil %> <%= l(:label_wiki_page_plural) %> (<%= @source_project.wiki.nil? ? 0 : @source_project.wiki.pages.count %>)</label>
15
  <%= call_hook :view_projects_copy_only_items, project: @source_project, f: f  %>
15 16
  <%= hidden_field_tag 'only[]', '' %>
16 17
  <br />
17 18
  <label class="block"><%= check_box_tag 'notifications', 1, params[:notifications] %> <%= l(:label_project_copy_notifications) %></label>
18
-