All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gitbucket.core.pulls.html.mergeguide.template.scala Maven / Gradle / Ivy

The newest version!

package gitbucket.core.pulls.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 mergeguide 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.Template6[gitbucket.core.service.PullRequestService.MergeStatus,gitbucket.core.model.Issue,gitbucket.core.model.PullRequest,gitbucket.core.service.RepositoryService.RepositoryInfo,gitbucket.core.service.RepositoryService.RepositoryInfo,gitbucket.core.controller.Context,play.twirl.api.HtmlFormat.Appendable] {

  /**/
  def apply/*1.2*/(status: gitbucket.core.service.PullRequestService.MergeStatus,
  issue: gitbucket.core.model.Issue,
  pullreq: gitbucket.core.model.PullRequest,
  originRepository: gitbucket.core.service.RepositoryService.RepositoryInfo,
  forkedRepository: gitbucket.core.service.RepositoryService.RepositoryInfo)(implicit context: gitbucket.core.controller.Context):play.twirl.api.HtmlFormat.Appendable = {
    _display_ {
      {
/*6.2*/import gitbucket.core.view.helpers

def /*274.2*/mergeStrategyLabel/*274.20*/(value: String):String = {{
  Map(
    "merge-commit" -> "Create a merge commit",
    "squash"       -> "Squash and merge",
    "rebase"       -> "Rebase and merge"
  )(value)
}};
Seq[Any](format.raw/*7.1*/("""
"""),_display_(if(!status.statuses.isEmpty)/*10.36*/{_display_(Seq[Any](format.raw/*10.37*/(""" """),format.raw/*11.9*/("""
"""),_display_(/*12.12*/defining(status.commitStateSummary)/*12.47*/{ case (summaryState, summary) =>_display_(Seq[Any](format.raw/*12.80*/(""" """),format.raw/*13.13*/(""" """),_display_(/*14.72*/helpers/*14.79*/.commitStateIcon(summaryState)),format.raw/*14.109*/(""" """),_display_(/*15.56*/helpers/*15.63*/.commitStateText(summaryState, pullreq.commitIdTo)),format.raw/*15.113*/(""" — """),_display_(/*16.56*/summary),format.raw/*16.63*/(""" """),format.raw/*16.64*/("""checks """)))}),format.raw/*17.12*/(""" """),format.raw/*18.9*/("""
"""),_display_(/*20.12*/status/*20.18*/.statusesAndRequired.map/*20.42*/ { case (status, required) =>_display_(Seq[Any](format.raw/*20.71*/(""" """),format.raw/*21.13*/("""
"""),_display_(if(required)/*23.30*/{_display_(Seq[Any](format.raw/*23.31*/(""" """),format.raw/*23.32*/("""Required """)))} else {null} ),format.raw/*23.83*/(""" """),_display_(/*24.18*/status/*24.24*/.targetUrl.map/*24.38*/ { url =>_display_(Seq[Any](format.raw/*24.47*/(""" """),format.raw/*24.48*/("""Details """)))}),format.raw/*24.76*/(""" """),format.raw/*25.15*/("""
"""),_display_(/*26.74*/helpers/*26.81*/.commitStateIcon(status.state)),format.raw/*26.111*/(""" """),_display_(/*27.24*/status/*27.30*/.context),format.raw/*27.38*/(""" """),_display_(/*28.16*/status/*28.22*/.description.map/*28.38*/ { desc =>_display_(Seq[Any](format.raw/*28.48*/(""" """),format.raw/*28.49*/("""— """),_display_(/*28.72*/desc),format.raw/*28.76*/(""" """)))}),format.raw/*28.85*/(""" """),format.raw/*29.13*/("""
""")))}),format.raw/*30.12*/(""" """),format.raw/*31.9*/("""
""")))} else {null} ),format.raw/*32.8*/(""" """),format.raw/*33.7*/("""
"""),_display_(if(status.hasConflict)/*34.32*/{_display_(Seq[Any](format.raw/*34.33*/(""" """),format.raw/*35.11*/("""
This branch has conflicts that must be resolved
"""),_display_(if(status.hasMergePermission)/*38.43*/{_display_(Seq[Any](format.raw/*38.44*/(""" """),format.raw/*39.15*/("""Use the command line to resolve conflicts before continuing. """)))}else/*40.20*/{_display_(Seq[Any](format.raw/*40.21*/(""" """),format.raw/*41.15*/("""Only those with write access to this repository can merge pull requests. """)))}),format.raw/*42.14*/(""" """),format.raw/*43.11*/("""

"""),_display_(/*46.14*/status/*46.20*/.conflictMessage.map/*46.40*/ { message =>_display_(Seq[Any](format.raw/*46.53*/(""" """),_display_(/*46.55*/helpers/*46.62*/.markdown( markdown = message, repository = originRepository, branch = originRepository.repository.defaultBranch, enableWikiLink = false, enableRefsLink = true, enableLineBreaks = false )),format.raw/*53.14*/(""" """)))}),format.raw/*53.16*/(""" """),format.raw/*54.11*/("""
""")))}else/*55.16*/{_display_(Seq[Any](format.raw/*55.17*/(""" """),_display_(if(status.branchIsOutOfDate)/*56.40*/{_display_(Seq[Any](format.raw/*56.41*/(""" """),_display_(if(status.hasUpdatePermission)/*57.44*/{_display_(Seq[Any](format.raw/*57.45*/(""" """),format.raw/*58.15*/("""
""")))} else {null} ),format.raw/*64.14*/(""" """),format.raw/*65.11*/("""
This branch is out-of-date with the base branch
Merge the latest changes from """),_display_(/*68.50*/pullreq/*68.57*/.branch),format.raw/*68.64*/(""" into this branch.
""")))}else/*70.16*/{_display_(Seq[Any](format.raw/*70.17*/(""" """),_display_(if(status.hasRequiredStatusProblem)/*71.47*/ {_display_(Seq[Any](format.raw/*71.49*/(""" """),format.raw/*72.13*/("""
Required statuses must pass before merging.
All required status checks on this pull request must run successfully to enable automatic merging.
""")))}else/*77.18*/{_display_(Seq[Any](format.raw/*77.19*/(""" """),format.raw/*78.13*/("""
"""),_display_(if(pullreq.isDraft)/*80.33*/{_display_(Seq[Any](format.raw/*80.34*/(""" """),format.raw/*81.15*/("""This pull request is still a work in progress.
Draft pull requests cannot be merged.
""")))}else/*88.20*/{_display_(Seq[Any](format.raw/*88.21*/(""" """),_display_(if(status.hasMergePermission)/*89.45*/{_display_(Seq[Any](format.raw/*89.46*/(""" """),format.raw/*90.17*/("""Merging can be performed automatically.
Merging can be performed automatically.
""")))}else/*94.22*/{_display_(Seq[Any](format.raw/*94.23*/(""" """),format.raw/*95.17*/("""This branch has no conflicts with the base branch.
Only those with write access to this repository can merge pull requests.
""")))}),format.raw/*99.16*/(""" """)))}),format.raw/*100.14*/(""" """)))}),format.raw/*101.12*/(""" """)))}),format.raw/*102.10*/(""" """)))}),format.raw/*103.8*/(""" """),format.raw/*104.7*/("""
"""),_display_(if(status.hasMergePermission)/*105.37*/{_display_(Seq[Any](format.raw/*105.38*/(""" """),format.raw/*106.9*/("""
  You can also merge branches on the command line.
""")))} else {null} ),format.raw/*187.8*/(""" """),format.raw/*188.5*/("""
"""),format.raw/*280.2*/(""" """)) } } } def render(status:gitbucket.core.service.PullRequestService.MergeStatus,issue:gitbucket.core.model.Issue,pullreq:gitbucket.core.model.PullRequest,originRepository:gitbucket.core.service.RepositoryService.RepositoryInfo,forkedRepository:gitbucket.core.service.RepositoryService.RepositoryInfo,context:gitbucket.core.controller.Context): play.twirl.api.HtmlFormat.Appendable = apply(status,issue,pullreq,originRepository,forkedRepository)(context) def f:((gitbucket.core.service.PullRequestService.MergeStatus,gitbucket.core.model.Issue,gitbucket.core.model.PullRequest,gitbucket.core.service.RepositoryService.RepositoryInfo,gitbucket.core.service.RepositoryService.RepositoryInfo) => (gitbucket.core.controller.Context) => play.twirl.api.HtmlFormat.Appendable) = (status,issue,pullreq,originRepository,forkedRepository) => (context) => apply(status,issue,pullreq,originRepository,forkedRepository)(context) def ref: this.type = this } /* -- GENERATED -- SOURCE: src/main/twirl/gitbucket/core/pulls/mergeguide.scala.html HASH: 15cb15e79cf1d5107a1b6838af176b1b8f0c3083 MATRIX: 839->1|1264->355|1313->13044|1341->13062|1547->390|1651->468|1689->469|1717->470|1748->483|1786->484|1814->485|1854->494|1958->572|1996->573|2024->574|2055->587|2093->588|2121->589|2161->598|2270->680|2309->681|2345->690|2412->730|2456->765|2527->798|2568->811|2721->937|2761->956|2791->959|2807->966|2859->996|2927->1037|2967->1056|2997->1059|3013->1066|3085->1116|3153->1157|3193->1176|3225->1181|3253->1188|3282->1189|3338->1214|3374->1223|3480->1302|3519->1303|3548->1304|3607->1319|3648->1333|3663->1339|3696->1363|3763->1392|3804->1405|3931->1505|3970->1506|3999->1507|4094->1558|4139->1576|4154->1582|4177->1596|4224->1605|4253->1606|4290->1616|4314->1619|4360->1634|4403->1649|4488->1707|4528->1726|4558->1729|4574->1736|4626->1766|4684->1797|4699->1803|4728->1811|4780->1836|4795->1842|4820->1858|4868->1868|4897->1869|4947->1892|4972->1896|5012->1905|5053->1918|5102->1936|5138->1945|5195->1959|5229->1966|5314->2024|5353->2025|5392->2036|5678->2295|5717->2296|5760->2311|5899->2433|5938->2434|5981->2449|6098->2535|6137->2546|6217->2599|6232->2605|6261->2625|6312->2638|6341->2640|6357->2647|6689->2958|6722->2960|6761->2971|6800->2993|6839->2994|6906->3034|6945->3035|7016->3079|7055->3080|7098->3095|7195->3165|7211->3172|7254->3194|7288->3201|7304->3208|7333->3216|7449->3305|7465->3312|7499->3325|7600->3399|7639->3400|7668->3401|7728->3417|7757->3418|7908->3525|7947->3536|8240->3802|8256->3809|8284->3816|8359->3874|8398->3875|8472->3922|8512->3924|8553->3937|8946->4313|8985->4314|9026->4327|9189->4463|9228->4464|9271->4479|9662->4853|9701->4854|9773->4899|9812->4900|9857->4917|10080->5123|10119->5124|10164->5141|10439->5385|10485->5399|10529->5411|10571->5421|10610->5429|10645->5436|10716->5479|10756->5480|10793->5489|10999->5667|11039->5668|11075->5686|11115->5687|11160->5699|11248->5759|11345->5833|11434->5894|11474->5895|11535->5911|11660->6008|11700->6009|11737->6027|11778->6028|11823->6040|11936->6125|11976->6126|12006->6127|12067->6143|12213->6261|12292->6330|12349->6347|12434->6404|12474->6405|12520->6422|12680->6554|12736->6588|12921->6728|13000->6779|13040->6780|13086->6797|13240->6923|13290->6951|13475->7091|13554->7142|13594->7143|13640->7160|13794->7286|13844->7314|14022->7447|14068->7461|14110->7474|14400->7736|14440->7737|14484->7752|14804->8054|14844->8055|14888->8070|15193->8343|15235->8357|15254->8366|15354->8455|15395->8456|15439->8471|15729->8733|15769->8734|15817->8753|15973->8864|16017->8879|16123->8957|16149->8973|16179->8981|16285->9055|16327->9068|16566->9279|16583->9286|16597->9290|16638->9292|16684->9309|16729->9326|16776->9351|16806->9353|16851->9376|16881->9378|16920->9394|16966->9411|17004->9421|17052->9447|17082->9449|17127->9472|17175->9488|17217->9501|17418->9674|17435->9681|17449->9685|17490->9687|17536->9704|17578->9718|17616->9734|17662->9751|17709->9770|17756->9795|17786->9797|17831->9820|17877->9837|17922->9854|17960->9870|18008->9886|18050->9899|18140->9945|18173->9950|18315->10064|18332->10071|18376->10093|18411->10100|18428->10107|18458->10115|18571->10200|18586->10205|18616->10213|18646->10214|18680->10220|18727->10245|18757->10247|18803->10270|18840->10279|19045->10455|19061->10460|19090->10466|19403->10751|19429->10767|19490->10805|19578->10865|19595->10872|19625->10880|19755->10981|19785->10982|19816->10985|19884->11024|19914->11025|19947->11030|19984->11039|20001->11046|20045->11068|20080->11075|20095->11080|20125->11088|20193->11126|20224->11127|20259->11134|20310->11157|20339->11158|20371->11162|20400->11163|20431->11166|20460->11167|20505->11183|20535->11184|20566->11187|20635->11227|20665->11228|20698->11233|20775->11282|20804->11283|20872->11322|20902->11323|20935->11328|21077->11442|21106->11443|21137->11446|21235->11515|21265->11516|21298->11521|21395->11590|21424->11591|21506->11644|21536->11645|21569->11650|21669->11722|21698->11723|21780->11776|21810->11777|21843->11782|21943->11854|21972->11855|22006->11862|22032->11878|22053->11889|22104->11901|22137->11906|22209->11949|22239->11950|22274->11957|22353->12008|22379->12024|22409->12032|22640->12235|22668->12241|22701->12246|22727->12262|22757->12270|22891->12376|22920->12377|22999->12427|23029->12428|23064->12435|23143->12486|23171->12492|23402->12695|23428->12711|23458->12719|23491->12724|23519->12730|23653->12836|23682->12837|23719->12843|23751->12847|23817->12884|23847->12885|23880->12890|24042->13024|24071->13025|24102->13028|24131->13029|24173->13240 LINES: 14->1|21->6|23->274|23->274|30->7|30->7|30->7|30->7|30->7|30->7|30->7|30->7|31->8|31->8|31->8|31->8|31->8|31->8|31->8|33->10|33->10|34->11|35->12|35->12|35->12|36->13|37->14|37->14|37->14|37->14|37->14|38->15|38->15|38->15|38->15|38->15|39->16|39->16|39->16|39->16|39->16|40->17|41->18|42->19|42->19|42->19|42->19|43->20|43->20|43->20|43->20|44->21|46->23|46->23|46->23|46->23|47->24|47->24|47->24|47->24|47->24|47->24|47->24|47->24|48->25|49->26|49->26|49->26|49->26|49->26|50->27|50->27|50->27|51->28|51->28|51->28|51->28|51->28|51->28|51->28|51->28|52->29|53->30|54->31|55->32|56->33|57->34|57->34|58->35|61->38|61->38|62->39|63->40|63->40|64->41|65->42|66->43|69->46|69->46|69->46|69->46|69->46|69->46|76->53|76->53|77->54|78->55|78->55|79->56|79->56|80->57|80->57|81->58|82->59|82->59|82->59|82->59|82->59|82->59|83->60|83->60|83->60|84->61|84->61|84->61|84->61|84->61|87->64|88->65|91->68|91->68|91->68|93->70|93->70|94->71|94->71|95->72|100->77|100->77|101->78|103->80|103->80|104->81|111->88|111->88|112->89|112->89|113->90|117->94|117->94|118->95|122->99|123->100|124->101|125->102|126->103|127->104|128->105|128->105|129->106|131->108|131->108|131->108|131->108|131->108|132->109|132->109|133->110|133->110|133->110|134->111|134->111|134->111|134->111|134->111|135->112|135->112|135->112|135->112|139->116|139->116|139->116|140->117|140->117|141->118|143->120|143->120|146->123|147->124|147->124|148->125|150->127|150->127|153->130|154->131|154->131|155->132|157->134|157->134|160->137|161->138|162->139|167->144|167->144|168->145|173->150|173->150|174->151|179->156|180->157|180->157|180->157|180->157|181->158|183->160|183->160|184->161|185->162|186->163|187->164|187->164|187->164|188->165|189->166|193->170|193->170|193->170|193->170|194->171|194->171|194->171|194->171|194->171|194->171|194->171|195->172|195->172|195->172|195->172|195->172|196->173|197->174|202->179|202->179|202->179|202->179|203->180|203->180|203->180|204->181|204->181|204->181|204->181|204->181|205->182|205->182|205->182|206->183|207->184|210->187|211->188|213->190|213->190|213->190|213->190|213->190|213->190|215->192|215->192|215->192|215->192|215->192|215->192|215->192|215->192|216->193|218->195|218->195|218->195|223->200|223->200|223->200|224->201|224->201|224->201|234->211|234->211|235->212|235->212|235->212|236->213|236->213|236->213|236->213|236->213|236->213|236->213|236->213|236->213|237->214|238->215|238->215|239->216|239->216|240->217|240->217|242->219|242->219|243->220|243->220|243->220|244->221|246->223|246->223|247->224|247->224|248->225|249->226|249->226|250->227|251->228|251->228|252->229|254->231|254->231|256->233|256->233|257->234|259->236|259->236|260->237|260->237|261->238|263->240|263->240|265->242|265->242|265->242|265->242|266->243|266->243|266->243|267->244|268->245|268->245|268->245|272->249|272->249|272->249|272->249|272->249|275->252|275->252|277->254|277->254|278->255|279->256|279->256|283->260|283->260|283->260|283->260|283->260|286->263|286->263|287->264|289->266|289->266|289->266|290->267|293->270|293->270|294->271|294->271|297->280 -- GENERATED -- */




© 2015 - 2024 Weber Informatics LLC | Privacy Policy