mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-24 16:30:14 +08:00
We recently added a new themes and components page. We didn't port over the code that enables the Install theme button on Meta. It works by looking for certain query parameters and opening a special version of the install modal. This PR is a lift-and-shift of that code from the old themes page.
20 lines
634 B
Text
Vendored
20 lines
634 B
Text
Vendored
import RouteTemplate from "ember-route-template";
|
|
import DBreadcrumbsItem from "discourse/components/d-breadcrumbs-item";
|
|
import { i18n } from "discourse-i18n";
|
|
import Themes from "admin/components/admin-config-areas/themes";
|
|
|
|
export default RouteTemplate(
|
|
<template>
|
|
<DBreadcrumbsItem
|
|
@path="/admin/config/customize/themes"
|
|
@label={{i18n "admin.config_areas.themes_and_components.themes.title"}}
|
|
/>
|
|
|
|
<Themes
|
|
@repoUrl={{@controller.model.repoUrl}}
|
|
@repoName={{@controller.model.repoName}}
|
|
@themes={{@controller.model.themes}}
|
|
@clearParams={{this.clearParams}}
|
|
/>
|
|
</template>
|
|
);
|