Commit 13e81898 authored by James Lopez's avatar James Lopez

some UI changes

parent 254c5aaa
...@@ -770,9 +770,3 @@ pre.light-well { ...@@ -770,9 +770,3 @@ pre.light-well {
} }
} }
} }
.input-group {
.project-path {
padding: 0;
}
}
\ No newline at end of file
...@@ -46,16 +46,15 @@ ...@@ -46,16 +46,15 @@
= github_project_link(repo.full_name) = github_project_link(repo.full_name)
%td.import-target %td.import-target
%fieldset.row %fieldset.row
.input-group .input-group.col-sm-8
.col-xs-11.col-sm-5.project-path .project-path.input-group-btn
- if current_user.can_select_namespace? - if false
- selected = params[:namespace_id] || :current_user - selected = params[:namespace_id] || :current_user
- opts = current_user.can_create_group? ? { extra_groups: [repo.owner.login] } : { display_path: true } - opts = current_user.can_create_group? ? { extra_group: Group.new(name: repo.owner.login) } : { display_path: true }
= select_tag :namespace_id, namespaces_options(selected, opts), {class: 'project-path select2 js-select-namespace', tabindex: 1} = select_tag :namespace_id, namespaces_options(selected, opts), { class: 'select2 js-select-namespace', tabindex: 1 }
- else - else
= text_field_tag :path, current_user.namespace_path, class: "form-control", tabindex: 2, autofocus: true, disabled: true = text_field_tag :path, current_user.namespace_path, class: "form-control", tabindex: 1, autofocus: true, disabled: true
%span.input-group-addon /
.col-xs-12.col-sm-6.project-path
= text_field_tag :path, repo.name, class: "form-control", tabindex: 2, autofocus: true, required: true = text_field_tag :path, repo.name, class: "form-control", tabindex: 2, autofocus: true, required: true
%td.import-actions.job-status %td.import-actions.job-status
= button_tag class: "btn btn-import js-add-to-import" do = button_tag class: "btn btn-import js-add-to-import" do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment