mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Remove some of the last few fa-icon helpers
This commit is contained in:
@@ -9,11 +9,11 @@ createWidget('post-link-arrow', {
|
|||||||
template: hbs`
|
template: hbs`
|
||||||
{{#if attrs.above}}
|
{{#if attrs.above}}
|
||||||
<a class="post-info arrow" title={{i18n "topic.jump_reply_up"}}>
|
<a class="post-info arrow" title={{i18n "topic.jump_reply_up"}}>
|
||||||
{{fa-icon "arrow-up"}}
|
{{d-icon "arrow-up"}}
|
||||||
</a>
|
</a>
|
||||||
{{else}}
|
{{else}}
|
||||||
<a class="post-info arrow" title={{i18n "topic.jump_reply_down"}}>
|
<a class="post-info arrow" title={{i18n "topic.jump_reply_down"}}>
|
||||||
{{fa-icon "arrow-down"}}
|
{{d-icon "arrow-down"}}
|
||||||
</a>
|
</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
`,
|
`,
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import hbs from 'discourse/widgets/hbs-compiler';
|
|||||||
|
|
||||||
createWidget('pm-remove-group-link', {
|
createWidget('pm-remove-group-link', {
|
||||||
tagName: 'a.remove-invited',
|
tagName: 'a.remove-invited',
|
||||||
template: hbs`{{fa-icon "times"}}`,
|
template: hbs`{{d-icon "times"}}`,
|
||||||
|
|
||||||
click() {
|
click() {
|
||||||
bootbox.confirm(I18n.t("private_message_info.remove_allowed_group", {name: this.attrs.name}), (confirmed) => {
|
bootbox.confirm(I18n.t("private_message_info.remove_allowed_group", {name: this.attrs.name}), (confirmed) => {
|
||||||
@@ -33,7 +33,7 @@ createWidget('pm-map-user-group', {
|
|||||||
|
|
||||||
createWidget('pm-remove-link', {
|
createWidget('pm-remove-link', {
|
||||||
tagName: 'a.remove-invited',
|
tagName: 'a.remove-invited',
|
||||||
template: hbs`{{fa-icon "times"}}`,
|
template: hbs`{{d-icon "times"}}`,
|
||||||
|
|
||||||
click() {
|
click() {
|
||||||
bootbox.confirm(I18n.t("private_message_info.remove_allowed_user", {name: this.attrs.username}), (confirmed) => {
|
bootbox.confirm(I18n.t("private_message_info.remove_allowed_user", {name: this.attrs.username}), (confirmed) => {
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ function mustacheValue(node, state) {
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
case 'fa-icon':
|
case 'fa-icon':
|
||||||
|
case 'd-icon':
|
||||||
state.helpersUsed.iconNode = true;
|
state.helpersUsed.iconNode = true;
|
||||||
let icon = node.params[0].value;
|
let icon = node.params[0].value;
|
||||||
return `__iN("${icon}")`;
|
return `__iN("${icon}")`;
|
||||||
|
|||||||
@@ -198,12 +198,12 @@ widgetTest('widget attaching', {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
widgetTest("handlebars fa-icon", {
|
widgetTest("handlebars d-icon", {
|
||||||
template: `{{mount-widget widget="hbs-icon-test" args=args}}`,
|
template: `{{mount-widget widget="hbs-icon-test" args=args}}`,
|
||||||
|
|
||||||
beforeEach() {
|
beforeEach() {
|
||||||
createWidget('hbs-icon-test', {
|
createWidget('hbs-icon-test', {
|
||||||
template: hbs`{{fa-icon "arrow-down"}}`
|
template: hbs`{{d-icon "arrow-down"}}`
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user