mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 19:53:52 +08:00
ae79ba1447
Example: ```hbs <DBreadcrumbItem @path="/admin/plugins/{{@plugin.name}}" @label={{@plugin.nameTitleized}} /> ``` Using `@path` instead of `@route`+`@model` combo makes it impossible to pass temporarily unresolvable routes. This fixes a bug with navigating from a model-based route to a parent route.
30 lines
740 B
Handlebars
30 lines
740 B
Handlebars
<DBreadcrumbsContainer />
|
|
|
|
<DBreadcrumbsItem @path="/admin" @label={{i18n "admin_title"}} />
|
|
<DBreadcrumbsItem
|
|
@path="/admin/plugins"
|
|
@label={{i18n "admin.plugins.title"}}
|
|
/>
|
|
|
|
<div class="admin-plugins-list-container">
|
|
{{#if this.model.length}}
|
|
<h2>{{i18n "admin.plugins.installed"}}</h2>
|
|
<AdminPluginsList @plugins={{this.model}} />
|
|
{{else}}
|
|
<p>{{i18n "admin.plugins.none_installed"}}</p>
|
|
{{/if}}
|
|
|
|
<p class="admin-plugins-howto">
|
|
<a href="https://meta.discourse.org/t/install-a-plugin/19157">
|
|
{{i18n "admin.plugins.howto"}}
|
|
</a>
|
|
</p>
|
|
|
|
<span>
|
|
<PluginOutlet
|
|
@name="admin-below-plugins-index"
|
|
@connectorTagName="div"
|
|
@outletArgs={{hash model=this.model}}
|
|
/>
|
|
</span>
|
|
</div> |