From 0d342a68633c45f78febcece260500e691014d4d Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Sat, 9 Jul 2016 13:46:13 +0900 Subject: [PATCH] Use completion is disabled in the Wiki editor --- .../gitbucket/core/helper/attached.scala.html | 75 ++++++++++--------- .../gitbucket/core/helper/preview.scala.html | 12 ++- .../core/issues/commentform.scala.html | 7 +- .../gitbucket/core/issues/create.scala.html | 10 +-- .../core/issues/editcomment.scala.html | 7 +- .../core/issues/editissue.scala.html | 4 +- .../gitbucket/core/pulls/compare.scala.html | 35 +++++---- .../core/repo/commentform.scala.html | 5 +- .../core/repo/editcomment.scala.html | 4 +- .../twirl/gitbucket/core/wiki/edit.scala.html | 7 +- 10 files changed, 91 insertions(+), 75 deletions(-) diff --git a/src/main/twirl/gitbucket/core/helper/attached.scala.html b/src/main/twirl/gitbucket/core/helper/attached.scala.html index 2d3c03f16..c1fc12e30 100644 --- a/src/main/twirl/gitbucket/core/helper/attached.scala.html +++ b/src/main/twirl/gitbucket/core/helper/attached.scala.html @@ -1,6 +1,7 @@ -@(owner: String, repository: String, generateScript: Boolean = true)(textarea: Html)(implicit context: gitbucket.core.controller.Context) -@import context._ -@import gitbucket.core.util.FileUtil +@(owner: String, repository: String, completion: Seq[String], generateScript: Boolean = true)(textarea: Html)(implicit context: gitbucket.core.controller.Context) +@import context.path +@import context.baseUrl +@import gitbucket.core.util.{FileUtil, EmojiUtil}
@textarea
Attach images or documents by dragging & dropping, or selecting them.
@@ -8,41 +9,47 @@ @defining("(id=\")([\\w\\-]*)(\")".r.findFirstMatchIn(textarea.body).map(_.group(2))){ textareaId =>