summaryrefslogtreecommitdiff
path: root/app/views/import
diff options
context:
space:
mode:
authorLukas Eipert <git@leipert.io>2018-03-22 14:42:51 +0000
committerClement Ho <clemmakesapps@gmail.com>2018-03-22 14:42:51 +0000
commit1c9f354f903c3a71052889b90d15fc8223ab2975 (patch)
treeb54dcc1d0515660451d2fd5f444b759a27acd322 /app/views/import
parent3f07ba161c732c9e9545a92a70ceca8b66e50e65 (diff)
downloadgitlab-ce-1c9f354f903c3a71052889b90d15fc8223ab2975.tar.gz
Prevent overflow of long instance urls during Project creation
Diffstat (limited to 'app/views/import')
-rw-r--r--app/views/import/gitlab_projects/new.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/import/gitlab_projects/new.html.haml b/app/views/import/gitlab_projects/new.html.haml
index df5841d1911..dec85368d10 100644
--- a/app/views/import/gitlab_projects/new.html.haml
+++ b/app/views/import/gitlab_projects/new.html.haml
@@ -13,13 +13,13 @@
.form-group
.input-group
- if current_user.can_select_namespace?
- .input-group-addon
+ .input-group-addon.has-tooltip{ title: root_url }
= root_url
= select_tag :namespace_id, namespaces_options(namespace_id_from(params) || :current_user, display_path: true, extra_group: namespace_id_from(params)), class: 'select2 js-select-namespace', tabindex: 1
- else
- .input-group-addon.static-namespace
- #{root_url}#{current_user.username}/
+ .input-group-addon.static-namespace.has-tooltip{ title: user_url(current_user.username) + '/' }
+ #{user_url(current_user.username)}/
= hidden_field_tag :namespace_id, value: current_user.namespace_id
.form-group.col-xs-12.col-sm-6.project-path
= label_tag :path, 'Project name', class: 'label-light'