diff --git a/src/main/twirl/gitbucket/core/account/application.scala.html b/src/main/twirl/gitbucket/core/account/application.scala.html
index 22ff200..2df999b 100644
--- a/src/main/twirl/gitbucket/core/account/application.scala.html
+++ b/src/main/twirl/gitbucket/core/account/application.scala.html
@@ -19,8 +19,8 @@
Delete
- @gitbucket.core.helper.html.copy("generated-token-copy", tokenString){
-
+ @gitbucket.core.helper.html.copy("generated-token-copy", tokenString, targetTextId = "generated-token"){
+
}
diff --git a/src/main/twirl/gitbucket/core/helper/copy.scala.html b/src/main/twirl/gitbucket/core/helper/copy.scala.html
index 827ff0b..c882c45 100644
--- a/src/main/twirl/gitbucket/core/helper/copy.scala.html
+++ b/src/main/twirl/gitbucket/core/helper/copy.scala.html
@@ -1,4 +1,4 @@
-@(id: String, value: String, style: String = "")(html: Html = Html(""))
+@(id: String, value: String, style: String = "", targetTextId: String = "")(html: Html = Html(""))
@if(html.body.nonEmpty){
@html
@@ -14,6 +14,36 @@
\ No newline at end of file
+
diff --git a/src/main/twirl/gitbucket/core/repo/files.scala.html b/src/main/twirl/gitbucket/core/repo/files.scala.html
index 7d44d74..171fa4f 100644
--- a/src/main/twirl/gitbucket/core/repo/files.scala.html
+++ b/src/main/twirl/gitbucket/core/repo/files.scala.html
@@ -39,7 +39,7 @@
- @gitbucket.core.helper.html.copy("repository-url-copy", repository.httpUrl){
+ @gitbucket.core.helper.html.copy("repository-url-copy", repository.httpUrl, targetTextId = "repository-url"){
@if(repository.sshUrl.isDefined){