matrix-dimension/web/app/admin/bridges/slack/slack.component.html

49 lines
2.4 KiB
HTML
Raw Normal View History

2018-10-24 22:56:38 -04:00
<div *ngIf="isLoading">
<my-spinner></my-spinner>
</div>
<div *ngIf="!isLoading">
<my-ibox boxTitle="Slack Bridge Configurations">
2018-10-24 22:56:38 -04:00
<div class="my-ibox-content">
<p>
2019-07-11 00:17:16 -04:00
<a href="https://github.com/matrix-org/matrix-appservice-slack"
target="_blank">{{'matrix-appservice-slack' | translate}}</a>
{{'is a Slack bridge that supports bridging Slack channels to Matrix. Users authorize the bridge to access their Slack workspaces and from there they can pick the channels they\'d like to bridge.' | translate}}
2018-10-24 22:56:38 -04:00
</p>
<table class="table table-striped table-condensed table-bordered">
<thead>
<tr>
<th>{{'Name' | translate}}</th>
<th class="text-center" style="width: 120px;">{{'Actions' | translate}}</th>
2018-10-24 22:56:38 -04:00
</tr>
</thead>
<tbody>
<tr *ngIf="!configurations || configurations.length === 0">
<td colspan="2"><i>{{'No bridge configurations.' | translate}}</i></td>
2018-10-24 22:56:38 -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-10-24 22:56:38 -04:00
</td>
<td class="text-center">
<span class="editButton" (click)="editBridge(bridge)" *ngIf="!bridge.upstreamId">
<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)="addModularHostedBridge()"
[disabled]="(configurations && configurations.length > 0) || isUpdating">
<i class="fa fa-plus"></i> {{'Add matrix.org\'s bridge' | translate}}
2018-10-24 22:56:38 -04:00
</button>
2019-07-11 00:17:16 -04:00
<button type="button" class="btn btn-success btn-sm" (click)="addSelfHostedBridge()"
[disabled]="(configurations && configurations.length > 0) || isUpdating">
<i class="fa fa-plus"></i> {{'Add self-hosted bridge' | translate}}
2018-10-24 22:56:38 -04:00
</button>
</div>
</my-ibox>
</div>