mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-07 05:55:51 +01:00
Move extendsHtmlSeq which provides mkHtml to view.helpers because it's used at only views.
This commit is contained in:
@@ -25,11 +25,6 @@ object Implicits {
|
||||
}
|
||||
}
|
||||
|
||||
implicit def extendsHtmlSeq(seq: Seq[Html]) = new {
|
||||
def mkHtml(separator: String) = Html(seq.mkString(separator))
|
||||
def mkHtml(separator: scala.xml.Elem) = Html(seq.mkString(separator.toString))
|
||||
}
|
||||
|
||||
implicit def extendsColumn(c1: Column[Boolean]) = new {
|
||||
def &&(c2: => Column[Boolean], guard: => Boolean): Column[Boolean] = if(guard) c1 && c2 else c1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user