Skip to content

Commit

Permalink
Change partials namespace
Browse files Browse the repository at this point in the history
During the migration of the shared partials we forgot to change the
namespace to use `webui` instead of `webui2`.
  • Loading branch information
DavidKang committed Sep 5, 2019
1 parent 60c5887 commit bfa8f2e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
.modal-header
%h5.modal-title#edit-modal-label Add Group
.modal-body
= render partial: 'webui/autocomplete', locals: { html_id: 'groupid', label: 'Group:',
data: { source: autocomplete_groups_path } }
= render partial: 'webui/shared/autocomplete', locals: { html_id: 'groupid', label: 'Group:',
data: { source: autocomplete_groups_path } }
.form-group
= label_tag(:role, 'Role:')
= select_tag 'role', options_for_select(Role.local_roles, nil), required: true, class: 'form-control'
= hidden_field_tag 'package', package
= hidden_field_tag 'project', project
.modal-footer
= render partial: 'webui2/shared/dialog_action_buttons'
= render partial: 'webui/shared/dialog_action_buttons'
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
.modal-header
%h5.modal-title#edit-modal-label Add User
.modal-body
= render partial: 'webui/autocomplete', locals: { html_id: 'userid', label: 'User:',
data: { source: autocomplete_users_path } }
= render partial: 'webui/shared/autocomplete', locals: { html_id: 'userid', label: 'User:',
data: { source: autocomplete_users_path } }
.form-group
= label_tag(:role, 'Role:')
= select_tag 'role', options_for_select(Role.local_roles, nil), required: true, class: 'form-control'
= hidden_field_tag 'package', package
= hidden_field_tag 'project', project
= hidden_field_tag 'webui2', true
.modal-footer
= render partial: 'webui2/shared/dialog_action_buttons'
= render partial: 'webui/shared/dialog_action_buttons'
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@
%td= role.title.capitalize
%td
%tbody
= render partial: 'webui2/shared/user_or_groups_roles/list',
= render partial: 'webui/shared/user_or_groups_roles/list',
locals: { records: users, roles: roles, type: 'user',
user_is_maintainer: user_is_maintainer,
project: project, package: package }

- if user_is_maintainer
%ul.list-inline
%li.list-inline-item
= render(partial: 'webui2/shared/user_or_groups_roles/add_user_dialog', locals: { project: project.to_param, package: package.to_param })
= render(partial: 'webui/shared/user_or_groups_roles/add_user_dialog', locals: { project: project.to_param, package: package.to_param })
= link_to('#', data: { toggle: 'modal', target: '#add-user-role-modal' }, id: 'add-user', class: 'nav-link') do
%i.fas.fa-plus-circle.text-primary
Add User
= render(partial: 'webui2/shared/user_or_groups_roles/delete_dialog')
= render(partial: 'webui/shared/user_or_groups_roles/delete_dialog')

%hr

Expand All @@ -50,14 +50,14 @@
- if user_is_maintainer
%td
%tbody
= render partial: 'webui2/shared/user_or_groups_roles/list',
= render partial: 'webui/shared/user_or_groups_roles/list',
locals: { records: groups, roles: roles, type: 'group',
user_is_maintainer: user_is_maintainer,
project: project, package: package }
- if user_is_maintainer
%ul.list-inline
%li.list-inline-item
= render(partial: 'webui2/shared/user_or_groups_roles/add_group_dialog', locals: { project: project.to_param, package: package.to_param })
= render(partial: 'webui/shared/user_or_groups_roles/add_group_dialog', locals: { project: project.to_param, package: package.to_param })
= link_to('#', data: { toggle: 'modal', target: '#add-group-role-modal' }, id: 'add-group', class: 'nav-link') do
%i.fas.fa-plus-circle.text-primary
Add Group
Expand Down

0 comments on commit bfa8f2e

Please sign in to comment.