2017-12-28 20:22:50 -05:00
< div * ngIf = "isLoading" >
< my-spinner > < / my-spinner >
< / div >
< div * ngIf = "!isLoading" >
2020-10-23 07:30:20 -04:00
< my-ibox boxTitle = "{{'go-neb configurations' | translate}}" >
2017-12-28 20:22:50 -05:00
< div class = "my-ibox-content" >
2020-10-23 07:30:20 -04:00
< p > < a href = "https://github.com/matrix-org/go-neb" target = "_blank" > go-neb< / a > {{'is a multi-purpose bot that can provide various services, such as reaction GIFs and Github notifications. There are two options for go-neb support in Dimension: using matrix.org\'s or self-hosting it. Each go-neb instance can have multiple services associated with it (ie: one go-neb here can do everything).' | translate}}< / p >
2017-12-28 20:22:50 -05:00
< table class = "table table-striped table-condensed table-bordered" >
< thead >
< tr >
< th > Name< / th >
2020-10-23 07:30:20 -04:00
< th > {{'Enabled Bots' | translate}}< / th >
< th class = "text-center" style = "width: 120px;" > {{'Actions' | translate}}< / th >
2017-12-28 20:22:50 -05:00
< / tr >
< / thead >
< tbody >
< tr * ngIf = "!configurations || configurations.length === 0" >
2020-10-23 07:30:20 -04:00
< td colspan = "3" > < i > {{'No go-neb configurations.' | translate}}< / i > < / td >
2017-12-28 20:22:50 -05:00
< / tr >
< tr * ngFor = "let neb of configurations trackById" >
2018-01-31 18:30:08 -05:00
< td >
{{ neb.upstreamId ? "matrix.org's go-neb" : "Self-hosted go-neb" }}
2019-07-11 00:17:16 -04:00
< span class = "text-muted" style = "display: inline-block;"
*ngIf="!neb.upstreamId">({{ neb.adminUrl }})< / span >
2018-01-31 18:30:08 -05:00
< / td >
2018-03-23 22:15:51 -04:00
< td >
{{ getEnabledBotsString(neb) }}
< / td >
2017-12-28 20:22:50 -05:00
< td class = "text-center" >
< span class = "appsvcConfigButton" ( click ) = " showAppserviceConfig ( neb ) "
*ngIf="!neb.upstreamId">
< i class = "far fa-file" > < / i >
< / span >
< span class = "editButton" [ routerLink ] = " [ neb . id , ' edit ' ] " title = "edit" >
< i class = "fa fa-pencil-alt" > < / i >
< / span >
< / td >
< / tr >
< / tbody >
< / table >
< button type = "button" class = "btn btn-success btn-sm" ( click ) = " addModularHostedNeb ( ) " * ngIf = "!hasModularNeb" >
2020-10-23 07:30:20 -04:00
< i class = "fa fa-plus" > < / i > {{'Add matrix.org\'s go-neb' | translate}}
2017-12-28 20:22:50 -05:00
< / button >
< button type = "button" class = "btn btn-success btn-sm" ( click ) = " addSelfHostedNeb ( ) " >
2020-10-23 07:30:20 -04:00
< i class = "fa fa-plus" > < / i > {{'Add self-hosted go-neb' | translate}}
2017-12-28 20:22:50 -05:00
< / button >
< / div >
< / my-ibox >
2020-10-23 07:30:20 -04:00
< / div >