From c47d50d0dfde79a3aff532000468a15eaafc70cf Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Sun, 21 Feb 2016 15:36:41 +0900 Subject: [PATCH] Fix pull request guide --- .../gitbucket/core/helper/copy.scala.html | 18 ++++++++--- .../core/pulls/mergeguide.scala.html | 31 +++++++++---------- 2 files changed, 27 insertions(+), 22 deletions(-) diff --git a/src/main/twirl/gitbucket/core/helper/copy.scala.html b/src/main/twirl/gitbucket/core/helper/copy.scala.html index 7811063fa..d0172ab0c 100644 --- a/src/main/twirl/gitbucket/core/helper/copy.scala.html +++ b/src/main/twirl/gitbucket/core/helper/copy.scala.html @@ -1,8 +1,16 @@ -@(id: String, value: String, prepend: Boolean = false)(html: Html) -
- @html - -
+@(id: String, value: String, style: String = "")(html: Html = Html("")) +@if(html.body.nonEmpty){ +
+ @html + + + +
+} else { + +}