From 08fdbc8c56766646d3f038a3a3de1a1e8f107c4b Mon Sep 17 00:00:00 2001 From: yosssi Date: Wed, 12 Feb 2014 10:32:03 +0900 Subject: [PATCH] Fixed the overflow of the url when adding an admin user or a team member. --- cmd/droned/assets/css/drone.css | 3 +++ cmd/droned/assets/css/drone.less | 6 +++++- pkg/template/pages/admin_users_add.html | 6 +++--- pkg/template/pages/members_add.html | 6 +++--- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/cmd/droned/assets/css/drone.css b/cmd/droned/assets/css/drone.css index 0d8684d6..3b84a14b 100644 --- a/cmd/droned/assets/css/drone.css +++ b/cmd/droned/assets/css/drone.css @@ -1074,3 +1074,6 @@ ul.account-radio-group li img { padding: 20px; margin-bottom: 30px; } +.url { + word-break: break-all; +} diff --git a/cmd/droned/assets/css/drone.less b/cmd/droned/assets/css/drone.less index 7820bb86..a88f913f 100644 --- a/cmd/droned/assets/css/drone.less +++ b/cmd/droned/assets/css/drone.less @@ -1260,4 +1260,8 @@ pre { padding: 20px; margin-bottom:30px; } -} \ No newline at end of file +} + +.url { + word-break: break-all; +} diff --git a/pkg/template/pages/admin_users_add.html b/pkg/template/pages/admin_users_add.html index 08d379fd..f0d2ee75 100644 --- a/pkg/template/pages/admin_users_add.html +++ b/pkg/template/pages/admin_users_add.html @@ -59,9 +59,9 @@ if (this.status == 200) { var msg = "User Invitation was sent successfully"; if (this.responseText != "OK") { - msg = "Email is not currently enabled. In order to invite the user, you'll need to provide them the following link: " + this.responseText; + msg = "Email is not currently enabled. In order to invite the user, you'll need to provide them the following link:
" + this.responseText + ""; } - $("#successAlert").text(msg); + $("#successAlert").html(msg); $("#successAlert").show().removeClass("hide"); $('#submitButton').button('reset') @@ -75,4 +75,4 @@ return false; } -{{ end }} \ No newline at end of file +{{ end }} diff --git a/pkg/template/pages/members_add.html b/pkg/template/pages/members_add.html index f3e3e033..2d4f0ea1 100644 --- a/pkg/template/pages/members_add.html +++ b/pkg/template/pages/members_add.html @@ -69,9 +69,9 @@ if (this.status == 200) { var msg = "An invitation has been sent (via email) to join the Team."; if (this.responseText != "OK") { - msg = "Email is not currently enabled. In order to invite this team member user, you'll need to provide them the following link: " + this.responseText; + msg = "Email is not currently enabled. In order to invite this team member user, you'll need to provide them the following link:
" + this.responseText + ""; } - $("#successAlert").text(msg); + $("#successAlert").html(msg); $("#successAlert").show().removeClass("hide"); $('#submitButton').button('reset') } else { @@ -84,4 +84,4 @@ return false; } -{{ end }} \ No newline at end of file +{{ end }}