All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
gitbucket.core.pulls.html.mergeguide.template.scala Maven / Gradle / Ivy
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*/("""
"""),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 --
*/
"""),_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*/("""
"""),_display_(/*68.50*/pullreq/*68.57*/.branch),format.raw/*68.64*/("""
into this branch."""),_display_(/*116.14*/defining(originRepository.repository.options.mergeOptions.split(","))/*116.83*/{ mergeOptions =>_display_(Seq[Any](format.raw/*116.100*/(""" """),_display_(if(mergeOptions.contains("merge-commit"))/*117.57*/{_display_(Seq[Any](format.raw/*117.58*/(""" """),format.raw/*118.17*/("""-
"""),_display_(/*120.30*/mergeStrategyLabel("merge-commit")),format.raw/*120.64*/("""
""")))} else {null} ),format.raw/*123.16*/("""
"""),_display_(if(mergeOptions.contains("squash"))/*124.51*/{_display_(Seq[Any](format.raw/*124.52*/("""
"""),format.raw/*125.17*/("""-
"""),_display_(/*127.30*/mergeStrategyLabel("squash")),format.raw/*127.58*/("""
""")))} else {null} ),format.raw/*130.16*/("""
"""),_display_(if(mergeOptions.contains("rebase"))/*131.51*/{_display_(Seq[Any](format.raw/*131.52*/("""
"""),format.raw/*132.17*/("""-
"""),_display_(/*134.30*/mergeStrategyLabel("rebase")),format.raw/*134.58*/("""
""")))} else {null} ),format.raw/*137.16*/("""
""")))}),format.raw/*138.14*/("""
"""),format.raw/*139.13*/("""
These commits will be added to the base branch via a merge commit.
These commits will be combined into one commit in the base branch.
These commits will be rebased and added to the base branch.
"""),_display_(if(status.hasConflict)/*144.36*/{_display_(Seq[Any](format.raw/*144.37*/(""" """),format.raw/*145.15*/("""Checkout via command line
If you cannot merge a pull request automatically here, you have the option of checking it out via command line to resolve conflicts and perform a manual merge.
""")))}else/*150.20*/{_display_(Seq[Any](format.raw/*150.21*/(""" """),format.raw/*151.15*/("""Merging via command lineIf you do not want to use the merge button or an automatic merge cannot be performed, you can perform a manual merge on the command line.
""")))}),format.raw/*156.14*/(""" """),_display_(/*157.14*/gitbucket/*157.23*/.core.helper.html.copy("repository-url", "repository-url-copy", forkedRepository.httpUrl)/*157.112*/{_display_(Seq[Any](format.raw/*157.113*/(""" """),format.raw/*158.15*/("""Step 1: From your project repository, check out a new branch and test the changes.
"""),_display_(/*170.16*/helpers/*170.23*/.pre/*170.27*/ {_display_(Seq[Any](format.raw/*170.29*/(""" """),format.raw/*171.17*/("""git checkout -b """),_display_(/*171.34*/{pullreq.requestUserName}),format.raw/*171.59*/("""-"""),_display_(/*171.61*/{pullreq.requestBranch}),format.raw/*171.84*/(""" """),_display_(/*171.86*/{pullreq.branch}),format.raw/*171.102*/(""" """),format.raw/*172.17*/("""git pull """),_display_(/*172.27*/{forkedRepository.httpUrl}),format.raw/*172.53*/(""" """),_display_(/*172.55*/{pullreq.requestBranch}),format.raw/*172.78*/(""" """)))}),format.raw/*173.16*/(""" """),format.raw/*174.13*/("""Step 2: Merge the changes and update on the server.
"""),_display_(/*179.16*/helpers/*179.23*/.pre/*179.27*/ {_display_(Seq[Any](format.raw/*179.29*/(""" """),format.raw/*180.17*/("""git checkout """),_display_(/*180.31*/{pullreq.branch}),format.raw/*180.47*/(""" """),format.raw/*181.17*/("""git merge --no-ff """),_display_(/*181.36*/{pullreq.requestUserName}),format.raw/*181.61*/("""-"""),_display_(/*181.63*/{pullreq.requestBranch}),format.raw/*181.86*/(""" """),format.raw/*182.17*/("""git push origin """),_display_(/*182.34*/{pullreq.branch}),format.raw/*182.50*/(""" """)))}),format.raw/*183.16*/(""" """),format.raw/*184.13*/("""