Newer
Older
GitBucket / src / main / twirl / gitbucket / core / admin / usergroup.scala.html
@Naoki Takezoe Naoki Takezoe on 24 Jun 2017 523 bytes Share group creating / editing form template
@(account: Option[gitbucket.core.model.Account], members: List[gitbucket.core.model.GroupMember])(implicit context: gitbucket.core.controller.Context)
@gitbucket.core.html.main(if(account.isEmpty) "New group" else "Update group"){
  @gitbucket.core.admin.html.menu("users"){
    @gitbucket.core.account.html.groupform(account, members,
      account match {
        case Some(x) => s"${context.path}/admin/users/${x.userName}/_editgroup"
        case None    => s"${context.path}/admin/users/_newgroup"
      }
    )
  }
}