gitbucket.core.account.html.application.template.scala Maven / Gradle / Ivy
The newest version!
package gitbucket.core.account.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 application 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.Template4[gitbucket.core.model.Account,List[gitbucket.core.model.AccessToken],Option[(gitbucket.core.model.AccessToken, String)],gitbucket.core.controller.Context,play.twirl.api.HtmlFormat.Appendable] {
/**/
def apply/*1.2*/(account: gitbucket.core.model.Account,
personalTokens: List[gitbucket.core.model.AccessToken],
generatedToken: Option[(gitbucket.core.model.AccessToken, String)])(implicit context: gitbucket.core.controller.Context):play.twirl.api.HtmlFormat.Appendable = {
_display_ {
{
Seq[Any](_display_(/*4.2*/gitbucket/*4.11*/.core.html.main("Applications")/*4.42*/{_display_(Seq[Any](format.raw/*4.43*/("""
"""),_display_(/*5.4*/gitbucket/*5.13*/.core.account.html.menu("application", context.loginAccount.get.userName, false)/*5.93*/{_display_(Seq[Any](format.raw/*5.94*/("""
"""),format.raw/*6.5*/("""
Personal access tokens
"""),_display_(if(personalTokens.isEmpty && generatedToken.isEmpty)/*9.62*/{_display_(Seq[Any](format.raw/*9.63*/("""
"""),format.raw/*10.11*/("""No tokens.
""")))}else/*11.16*/{_display_(Seq[Any](format.raw/*11.17*/("""
"""),format.raw/*12.11*/("""Tokens you have generated which can be used to access the GitBucket API.
""")))}),format.raw/*14.10*/("""
"""),_display_(/*15.10*/generatedToken/*15.24*/.map/*15.28*/ { case (token, tokenString) =>_display_(Seq[Any](format.raw/*15.59*/("""
"""),format.raw/*16.11*/("""
Make sure to copy your new personal access token now. You won't be able to see it again!
Delete
"""),_display_(/*21.14*/gitbucket/*21.23*/.core.helper.html.copy("generated-token", "generated-token-copy", tokenString)/*21.101*/{_display_(Seq[Any](format.raw/*21.102*/("""
"""),format.raw/*22.15*/("""
""")))}),format.raw/*23.14*/("""
"""),format.raw/*24.11*/("""
""")))}),format.raw/*26.10*/("""
"""),_display_(/*27.10*/personalTokens/*27.24*/.zipWithIndex.map/*27.41*/ { case (token, i) =>_display_(Seq[Any](format.raw/*27.62*/("""
"""),_display_(if(i != 0)/*28.22*/{_display_(Seq[Any](format.raw/*28.23*/("""
"""),format.raw/*29.13*/("""
""")))} else {null} ),format.raw/*30.12*/("""
"""),format.raw/*31.11*/(""""""),_display_(/*31.47*/token/*31.52*/.note),format.raw/*31.57*/("""
Delete
""")))}),format.raw/*33.10*/("""
"""),format.raw/*34.7*/("""
""")))}),format.raw/*50.4*/("""
""")))}),format.raw/*51.2*/("""
"""))
}
}
}
def render(account:gitbucket.core.model.Account,personalTokens:List[gitbucket.core.model.AccessToken],generatedToken:Option[(gitbucket.core.model.AccessToken, String)],context:gitbucket.core.controller.Context): play.twirl.api.HtmlFormat.Appendable = apply(account,personalTokens,generatedToken)(context)
def f:((gitbucket.core.model.Account,List[gitbucket.core.model.AccessToken],Option[(gitbucket.core.model.AccessToken, String)]) => (gitbucket.core.controller.Context) => play.twirl.api.HtmlFormat.Appendable) = (account,personalTokens,generatedToken) => (context) => apply(account,personalTokens,generatedToken)(context)
def ref: this.type = this
}
/*
-- GENERATED --
SOURCE: src/main/twirl/gitbucket/core/account/application.scala.html
HASH: 829fd1669133ea7682c645ebdfb6dd9f6d4fb643
MATRIX: 735->1|1049->223|1066->232|1105->263|1143->264|1172->268|1189->277|1277->357|1315->358|1346->363|1567->558|1605->559|1644->570|1687->596|1726->597|1765->608|1919->731|1956->741|1979->755|1992->759|2061->790|2100->801|2296->970|2312->977|2338->982|2367->984|2383->991|2413->1000|2464->1024|2478->1029|2513->1043|2643->1146|2661->1155|2749->1233|2789->1234|2832->1249|2886->1276|2918->1287|3025->1363|3064->1374|3152->1431|3189->1441|3212->1455|3238->1472|3297->1493|3346->1515|3385->1516|3426->1529|3486->1545|3525->1556|3588->1592|3602->1597|3628->1602|3685->1632|3701->1639|3727->1644|3756->1646|3772->1653|3802->1662|3853->1686|3867->1691|3902->1705|3996->1768|4030->1775|4108->1826|4124->1833|4150->1838|4179->1840|4195->1847|4225->1856|4885->2486|4917->2488
LINES: 14->1|21->4|21->4|21->4|21->4|22->5|22->5|22->5|22->5|23->6|26->9|26->9|27->10|28->11|28->11|29->12|31->14|32->15|32->15|32->15|32->15|33->16|36->19|36->19|36->19|36->19|36->19|36->19|36->19|36->19|36->19|38->21|38->21|38->21|38->21|39->22|39->22|39->22|40->23|41->24|43->26|44->27|44->27|44->27|44->27|45->28|45->28|46->29|47->30|48->31|48->31|48->31|48->31|49->32|49->32|49->32|49->32|49->32|49->32|49->32|49->32|49->32|50->33|51->34|53->36|53->36|53->36|53->36|53->36|53->36|67->50|68->51
-- GENERATED --
*/