mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 00:11:49 +03:00
6dc733ae3a
refs 21f2a58a8a
- passed in arg is `@data` not `@email` because it can be an email or post object
- added `~` handlebars syntax to collapse white-space so links can be surrounded by other chars without spaces being visible, eg `"<GhEmailPreviewLink />"`
7 lines
198 B
Handlebars
7 lines
198 B
Handlebars
<a href="" role="button" {{on "click" this.openPreview}} ...attributes>
|
|
{{~#if (has-block)~}}
|
|
{{~yield~}}
|
|
{{else}}
|
|
{{~or @data.subject @data.email.subject~}}
|
|
{{/if}}
|
|
</a> |