2019-10-23 12:39:32 -04:00
|
|
|
import Route from "@ember/routing/route";
|
2018-09-09 14:48:08 -04:00
|
|
|
import { emojiUrlFor } from "discourse/lib/text";
|
|
|
|
|
2018-09-06 14:56:00 -04:00
|
|
|
const externalResources = [
|
|
|
|
{
|
|
|
|
key: "admin.customize.theme.beginners_guide_title",
|
|
|
|
link: "https://meta.discourse.org/t/91966",
|
|
|
|
icon: "book"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: "admin.customize.theme.developers_guide_title",
|
|
|
|
link: "https://meta.discourse.org/t/93648",
|
|
|
|
icon: "book"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: "admin.customize.theme.browse_themes",
|
|
|
|
link: "https://meta.discourse.org/c/theme",
|
|
|
|
icon: "paint-brush"
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2019-10-23 12:39:32 -04:00
|
|
|
export default Route.extend({
|
2018-09-08 09:24:11 -04:00
|
|
|
setupController(controller) {
|
2018-09-06 14:56:00 -04:00
|
|
|
this._super(...arguments);
|
2017-04-13 15:49:46 -04:00
|
|
|
this.controllerFor("adminCustomizeThemes").set("editingTheme", false);
|
2018-09-09 14:48:08 -04:00
|
|
|
controller.setProperties({
|
|
|
|
externalResources,
|
|
|
|
womanArtistEmojiURL: emojiUrlFor("woman_artist:t5")
|
|
|
|
});
|
2018-06-15 11:03:24 -04:00
|
|
|
}
|
2017-04-13 15:49:46 -04:00
|
|
|
});
|