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

32 lines
738 B
Handlebars
Raw Normal View History

<td>
2017-07-31 12:09:21 -04:00
{{rule.filterName}}
</td>
<td>
2017-07-31 12:09:21 -04:00
{{#if rule.category}}
{{category-link rule.category allowUncategorized="true" link="false"}}
{{else if rule.group_id}}
{{i18n "chat_integration.group_prefix"}} {{rule.group_name}}
{{else}}
2017-07-31 12:09:21 -04:00
{{i18n "chat_integration.all_categories"}}
{{/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>