2021-02-11 05:42:26 -05:00
|
|
|
<div class="channel-header">
|
|
|
|
<div class="pull-right">
|
2019-03-20 06:57:07 -04:00
|
|
|
{{d-button
|
|
|
|
action=editChannel
|
|
|
|
actionParam=channel
|
2019-07-16 12:55:26 -04:00
|
|
|
icon="pencil-alt"
|
2019-03-20 06:57:07 -04:00
|
|
|
title="chat_integration.edit_channel"
|
2021-02-11 05:42:26 -05:00
|
|
|
label="chat_integration.edit_channel"
|
|
|
|
}}
|
2017-07-18 11:17:03 -04:00
|
|
|
|
2019-03-20 06:57:07 -04:00
|
|
|
{{d-button
|
|
|
|
action=test
|
|
|
|
actionParam=channel
|
|
|
|
icon="rocket"
|
|
|
|
title="chat_integration.test_channel"
|
|
|
|
label="chat_integration.test_channel"
|
2021-02-11 05:42:26 -05:00
|
|
|
class="btn-chat-test"
|
|
|
|
}}
|
2017-07-18 11:17:03 -04:00
|
|
|
|
2019-03-20 06:57:07 -04:00
|
|
|
{{d-button
|
2021-02-11 05:42:26 -05:00
|
|
|
class="cancel"
|
2019-03-20 06:57:07 -04:00
|
|
|
action=(action "deleteChannel")
|
|
|
|
actionParam=channel
|
2019-07-16 12:55:26 -04:00
|
|
|
icon="trash-alt"
|
2019-03-20 06:57:07 -04:00
|
|
|
title="chat_integration.delete_channel"
|
2021-02-11 05:42:26 -05:00
|
|
|
label="chat_integration.delete_channel"
|
|
|
|
}}
|
2017-07-18 11:17:03 -04:00
|
|
|
</div>
|
2017-10-03 05:42:07 -04:00
|
|
|
|
2021-02-11 05:42:26 -05:00
|
|
|
<span class="channel-title">
|
2017-07-18 18:08:06 -04:00
|
|
|
{{#if channel.error_key}}
|
2019-03-20 06:57:07 -04:00
|
|
|
{{d-button
|
|
|
|
action=showError
|
|
|
|
actionParam=channel
|
|
|
|
class="delete btn-danger"
|
2021-02-11 05:42:26 -05:00
|
|
|
icon="exclamation-triangle"
|
|
|
|
}}
|
2017-07-18 18:08:06 -04:00
|
|
|
{{/if}}
|
|
|
|
|
2017-07-31 12:09:21 -04:00
|
|
|
{{channel-data provider=provider channel=channel}}
|
2017-07-18 16:21:09 -04:00
|
|
|
</span>
|
2017-07-18 11:17:03 -04:00
|
|
|
</div>
|
|
|
|
|
2021-02-11 05:42:26 -05:00
|
|
|
<div class="channel-body">
|
2017-10-03 05:42:07 -04:00
|
|
|
<table>
|
2021-02-11 05:42:26 -05:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>{{i18n "chat_integration.rule_table.filter"}}</th>
|
|
|
|
<th>{{i18n "chat_integration.rule_table.category"}}</th>
|
2017-10-03 05:42:07 -04:00
|
|
|
|
2021-02-11 05:42:26 -05:00
|
|
|
{{#if siteSettings.tagging_enabled}}
|
|
|
|
<th>{{i18n "chat_integration.rule_table.tags"}}</th>
|
|
|
|
{{/if}}
|
2017-10-03 05:42:07 -04:00
|
|
|
|
2021-02-11 05:42:26 -05:00
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2017-10-03 05:42:07 -04:00
|
|
|
|
2021-02-11 05:42:26 -05:00
|
|
|
<tbody>
|
|
|
|
{{#each channel.rules as |rule|}}
|
|
|
|
{{rule-row rule=rule edit=(action "editRule") refresh=refresh}}
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
2017-10-03 05:42:07 -04:00
|
|
|
</table>
|
2017-07-18 11:17:03 -04:00
|
|
|
</div>
|
2017-10-03 05:42:07 -04:00
|
|
|
|
2021-02-11 05:42:26 -05:00
|
|
|
<div class="channel-footer">
|
|
|
|
<div class="pull-right">
|
|
|
|
{{d-button
|
2019-03-20 06:57:07 -04:00
|
|
|
action=createRule
|
2017-10-03 05:42:07 -04:00
|
|
|
actionParam=channel
|
|
|
|
icon="plus"
|
|
|
|
title="chat_integration.create_rule"
|
2021-02-11 05:42:26 -05:00
|
|
|
label="chat_integration.create_rule"
|
|
|
|
}}
|
2017-07-18 11:17:03 -04:00
|
|
|
</div>
|
2017-10-03 05:42:07 -04:00
|
|
|
</div>
|