2018-09-16 04:26:10 -04:00
< div * ngIf = "isLoading" >
< my-spinner > < / my-spinner >
< / div >
< div * ngIf = "!isLoading" >
2019-04-13 18:29:53 -04:00
< my-ibox boxTitle = "Telegram Bridge Configurations" >
2018-09-16 04:26:10 -04:00
< div class = "my-ibox-content" >
< p >
2020-10-23 07:30:20 -04:00
< a href = "https://github.com/tulir/mautrix-telegram" target = "_blank" > {{'mautrix-telegram' | translate}}< / a >
{{'is a Telegram bridge that supports bridging channels/supergroups to Matrix. This can be done through a \'relay bot\' (all Matrix users are represented through a single bot in Telegram) or by making use of a user\'s real Telegram account (known as \'puppeting\'). Currently only one Telegram bridge can be configured at a time.' | translate}}
2018-09-16 04:26:10 -04:00
< table class = "table table-striped table-condensed table-bordered" >
< thead >
< tr >
2020-10-23 07:30:20 -04:00
< th > {{'Name' | translate}}< / th >
< th > {{'Enabled Features' | translate}}< / th >
< th class = "text-center" style = "width: 120px;" > {{'Actions' | translate}}< / th >
2018-09-16 04:26:10 -04:00
< / tr >
< / thead >
< tbody >
< tr * ngIf = "!configurations || configurations.length === 0" >
2020-10-23 07:30:20 -04:00
< td colspan = "3" > < i > {{'No bridge configurations.' | translate}}< / i > < / td >
2018-09-16 04:26:10 -04:00
< / tr >
< tr * ngFor = "let bridge of configurations trackById" >
< td >
{{ bridge.upstreamId ? "matrix.org's bridge" : "Self-hosted bridge" }}
2019-07-11 00:17:16 -04:00
< span class = "text-muted" style = "display: inline-block;"
*ngIf="!bridge.upstreamId">({{ bridge.provisionUrl }})< / span >
2018-09-16 04:26:10 -04:00
< / td >
< td >
{{ getEnabledFeaturesString(bridge) }}
< / td >
< td class = "text-center" >
< span class = "editButton" ( click ) = " editBridge ( bridge ) " >
< i class = "fa fa-pencil-alt" > < / i >
< / span >
< / td >
< / tr >
< / tbody >
< / table >
2019-07-11 00:17:16 -04:00
< button type = "button" class = "btn btn-success btn-sm" ( click ) = " addSelfHostedBridge ( ) "
[disabled]="configurations & & configurations.length > 0">
2020-10-23 07:30:20 -04:00
< i class = "fa fa-plus" > < / i > {{'Add self-hosted bridge' | translate}}
2018-09-16 04:26:10 -04:00
< / button >
< / div >
< / my-ibox >
2020-10-23 07:30:20 -04:00
< / div >