
gitbucket.core.helper.html.branchcontrol.template.scala Maven / Gradle / Ivy
package gitbucket.core.helper.html
import _root_.play.twirl.api.TwirlFeatureImports._
import _root_.play.twirl.api.TwirlHelperImports._
import _root_.play.twirl.api.Html
import _root_.play.twirl.api.JavaScript
import _root_.play.twirl.api.Txt
import _root_.play.twirl.api.Xml
object branchcontrol extends _root_.play.twirl.api.BaseScalaTemplate[play.twirl.api.HtmlFormat.Appendable,_root_.play.twirl.api.Format[play.twirl.api.HtmlFormat.Appendable]](play.twirl.api.HtmlFormat) with _root_.play.twirl.api.Template5[String,gitbucket.core.service.RepositoryService.RepositoryInfo,Boolean,Html,gitbucket.core.controller.Context,play.twirl.api.HtmlFormat.Appendable] {
/**/
def apply/*1.2*/(branch: String = "",
repository: gitbucket.core.service.RepositoryService.RepositoryInfo,
hasWritePermission: Boolean)(body: Html)(implicit context: gitbucket.core.controller.Context):play.twirl.api.HtmlFormat.Appendable = {
_display_ {
{
/*4.2*/import gitbucket.core.view.helpers
Seq[Any](_display_(/*5.2*/gitbucket/*5.11*/.core.helper.html.dropdown(
value = if(branch.length == 40) branch.substring(0, 10) else branch,
prefix = if(repository.branchList.contains(branch)) "branch" else if (repository.tags.map(_.name).contains(branch)) "tag" else "tree",
maxValueWidth = "200px"
)/*9.2*/ {_display_(Seq[Any](format.raw/*9.4*/("""
"""),format.raw/*10.3*/("""
"""),_display_(/*19.6*/body),format.raw/*19.10*/("""
"""),_display_(if(hasWritePermission)/*20.28*/ {_display_(Seq[Any](format.raw/*20.30*/("""
"""),format.raw/*21.7*/("""
""")))} else {null} ),format.raw/*29.6*/("""
"""),format.raw/*30.3*/("""
""")))}),format.raw/*31.2*/("""
"""),format.raw/*32.1*/("""
"""))
}
}
}
def render(branch:String,repository:gitbucket.core.service.RepositoryService.RepositoryInfo,hasWritePermission:Boolean,body:Html,context:gitbucket.core.controller.Context): play.twirl.api.HtmlFormat.Appendable = apply(branch,repository,hasWritePermission)(body)(context)
def f:((String,gitbucket.core.service.RepositoryService.RepositoryInfo,Boolean) => (Html) => (gitbucket.core.controller.Context) => play.twirl.api.HtmlFormat.Appendable) = (branch,repository,hasWritePermission) => (body) => (context) => apply(branch,repository,hasWritePermission)(body)(context)
def ref: this.type = this
}
/*
-- GENERATED --
SOURCE: src/main/twirl/gitbucket/core/helper/branchcontrol.scala.html
HASH: 25c30037a2783a3fca80c533c29df5b2d4e7ae0b
MATRIX: 693->1|955->192|1018->228|1035->237|1306->501|1344->503|1374->506|1923->1029|1948->1033|2003->1061|2043->1063|2077->1070|2177->1143|2193->1150|2230->1166|2453->1362|2480->1368|2610->1471|2637->1477|2720->1517|2750->1520|2787->1527|2815->1528|2866->1551|2895->1552|2927->1557|3009->1611|3038->1612|3072->1619|3124->1644|3152->1645|3232->1697|3261->1698|3295->1705|3386->1769|3414->1770|3494->1822|3523->1823|3557->1830|3621->1867|3649->1868|3707->1899|3747->1901|3781->1908|3846->1945|3875->1946|3911->1955|4054->2071|4082->2072|4133->2080|4166->2086|4227->2119|4256->2120|4290->2127|4430->2240|4458->2241|4536->2291|4565->2292|4599->2299|4694->2367|4722->2368|4796->2414|4825->2415|4859->2422|4950->2486|4978->2487|5055->2536|5084->2537|5118->2544|5172->2570|5201->2571|5237->2580|5649->2965|5689->2967|5728->2978|5837->3070|5876->3071|5915->3082|6022->3158|6056->3165|6084->3166|6112->3167|6167->3194|6196->3195|6232->3204|6691->3636|6719->3637|6753->3644|6817->3681|6845->3682|6878->3688|6947->3729|6976->3730|7010->3737|7206->3903|7237->3904|7274->3913|7411->4020|7442->4021|7482->4032|7543->4065|7573->4066|7603->4067|7637->4072|7667->4073|7707->4084|7768->4117|7798->4118|7833->4125|7862->4126|7959->4194|7989->4195|8049->4227|8090->4229|8130->4240|8173->4254|8203->4255|8245->4268|8378->4372|8408->4373|8438->4374|8472->4379|8502->4380|8544->4393|8642->4462|8672->4463|8727->4473|8762->4480|8791->4481|8824->4486|8853->4487|8887->4493|8996->4574|9025->4575
LINES: 14->1|19->4|22->5|22->5|26->9|26->9|27->10|36->19|36->19|37->20|37->20|38->21|39->22|39->22|39->22|41->24|41->24|43->26|43->26|46->29|47->30|48->31|49->32|50->33|50->33|51->34|51->34|51->34|52->35|53->36|53->36|55->38|55->38|56->39|57->40|57->40|59->42|59->42|60->43|61->44|61->44|63->46|63->46|64->47|64->47|64->47|65->48|67->50|67->50|68->51|70->53|70->53|70->53|71->54|74->57|74->57|76->59|76->59|77->60|79->62|79->62|81->64|81->64|82->65|84->67|84->67|86->69|86->69|87->70|87->70|87->70|88->71|96->79|96->79|97->80|98->81|98->81|99->82|100->83|101->84|101->84|101->84|101->84|101->84|102->85|111->94|111->94|112->95|113->96|113->96|115->98|115->98|115->98|116->99|117->100|117->100|118->101|118->101|118->101|119->102|120->103|120->103|120->103|120->103|120->103|121->104|122->105|122->105|123->106|123->106|124->107|124->107|125->108|125->108|126->109|126->109|126->109|127->110|128->111|128->111|128->111|128->111|128->111|129->112|130->113|130->113|131->114|132->115|132->115|133->116|133->116|135->118|137->120|137->120
-- GENERATED --
*/
© 2015 - 2025 Weber Informatics LLC | Privacy Policy