mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 08:06:57 +08:00
10 lines
253 B
Handlebars
10 lines
253 B
Handlebars
{{#if routeParam}}
|
|
{{#link-to route routeParam}}{{i18n label}}{{/link-to}}
|
|
{{else}}
|
|
{{#if route}}
|
|
{{#link-to route}}{{i18n label}}{{/link-to}}
|
|
{{else}}
|
|
<a href="{{unbound href}}" data-auto-route="true">{{i18n label}}</a>
|
|
{{/if}}
|
|
{{/if}}
|