Skip to content

Commit

Permalink
Migrate project#new_package to Bootstrap
Browse files Browse the repository at this point in the history
Reuse 'Create package' form
  • Loading branch information
dmarcoux committed Sep 2, 2019
1 parent 15e9945 commit a9d4429
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/app/controllers/webui/project_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ def new

def new_package
authorize @project, :update?

switch_to_webui2
end

def new_package_branch
Expand Down
7 changes: 7 additions & 0 deletions src/api/app/views/webui2/webui/project/new_package.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- @pagetitle = "Create package for #{@project}"

.card.mb-3
= render partial: 'tabs', locals: { project: @project }
.card-body
%h3= @pagetitle
= render partial: 'create_package_form', locals: { project: @project }

0 comments on commit a9d4429

Please sign in to comment.