mirror of
https://github.com/discourse/discourse.git
synced 2024-12-03 02:53:40 +08:00
40cb46631f
* Nest admin badges controller and route files * Use standard file names for admin-badges * Update resolver to allow standardized file structure for admin * Add adminBadges.index controller for property tracking * Modernize admin badges controller * Modernize admin-badges route * Add admin-badges index route * Modernize admin-badges.show controller and route * Modernize admin-badges.award controller and route * Convert BadgeButton to a Glimmer component
23 lines
611 B
JavaScript
23 lines
611 B
JavaScript
import Route from "@ember/routing/route";
|
|
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",
|
|
},
|
|
];
|
|
|
|
export default class AdminBadgesIndexRoute extends Route {
|
|
setupController(controller) {
|
|
controller.badgeIntroLinks = badgeIntroLinks;
|
|
controller.badgeIntroEmoji = emojiUrlFor("woman_student:t4");
|
|
}
|
|
}
|