Files
discourse-chat-integration/assets/javascripts/discourse/templates/admin/plugins-chat-provider.hbs
T
2e15402cf4 DEV: Update CI workflows (#61)
* DEV: Update CI workflows

* DEV: Fix template linting issues

Co-authored-by: CvX <[email protected]>
Co-authored-by: Jarek Radosz <[email protected]>
2021-02-11 10:42:26 +00:00

33 lines
848 B
Handlebars

{{#if anyErrors}}
<div class="error">
{{d-icon "exclamation-triangle"}}
<span class="error-message">{{i18n "chat_integration.channels_with_errors"}}</span>
</div>
{{/if}}
{{#each model.channels as |channel|}}
{{channel-details
channel=channel
provider=model.provider
refresh=(route-action "refreshProvider")
editChannel=(action "editChannel")
test=(action "testChannel")
createRule=(action "createRule")
editRuleWithChannel=(action "editRuleWithChannel")
showError=(action "showError")
}}
{{/each}}
<div class="table-footer">
<div class="pull-right">
{{d-button
id="create-channel"
action=(action "createChannel")
actionParam=model.provider
icon="plus"
title="chat_integration.create_channel"
label="chat_integration.create_channel"
}}
</div>
</div>