discourse-chat-integration/assets/javascripts/discourse/templates/components/rule-row.hbs

34 lines
882 B
Handlebars
Raw Normal View History

<td>
2017-07-31 12:09:21 -04:00
{{rule.filterName}}
</td>
2017-10-03 05:42:07 -04:00
<td>
{{#if isCategory}}
{{#if rule.category}}
{{category-link rule.category allowUncategorized="true" link="false"}}
{{else}}
{{i18n "chat_integration.all_categories"}}
{{/if}}
{{else if isMention}}
{{i18n "chat_integration.group_mention_template" name=rule.group_name}}
{{else if isMessage}}
{{i18n "chat_integration.group_message_template" name=rule.group_name}}
{{/if}}
</td>
{{#if siteSettings.tagging_enabled}}
<td>
2017-07-31 12:09:21 -04:00
{{#if rule.tags}}
{{rule.tags}}
{{else}}
2017-07-31 12:09:21 -04:00
{{i18n "chat_integration.all_tags"}}
{{/if}}
</td>
{{/if}}
<td>
2017-07-31 12:09:21 -04:00
{{d-button action="edit" actionParam=rule icon="pencil" class="edit" title="chat_integration.rule_table.edit_rule"}}
{{d-button action="delete" actionParam=rule icon="trash-o" class="delete" title="chat_integration.rule_table.delete_rule"}}
</td>