2019-10-24 00:39:32 +08:00
|
|
|
import Route from "@ember/routing/route";
|
2019-01-23 18:29:51 +08:00
|
|
|
import { emojiUrlFor } from "discourse/lib/text";
|
|
|
|
|
|
|
|
const badgeIntroLinks = [
|
|
|
|
{
|
|
|
|
text: "admin.badges.badge_intro.what_are_badges_title",
|
|
|
|
href: "https://meta.discourse.org/t/32540",
|
|
|
|
icon: "book",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "admin.badges.badge_intro.badge_query_examples_title",
|
|
|
|
href: "https://meta.discourse.org/t/18978",
|
|
|
|
icon: "book",
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
2022-08-03 17:12:17 +08:00
|
|
|
export default class AdminBadgesIndexRoute extends Route {
|
2019-01-23 18:29:51 +08:00
|
|
|
setupController(controller) {
|
2022-08-03 17:12:17 +08:00
|
|
|
controller.badgeIntroLinks = badgeIntroLinks;
|
|
|
|
controller.badgeIntroEmoji = emojiUrlFor("woman_student:t4");
|
|
|
|
}
|
|
|
|
}
|