Skip to content

Commit 43619db

Browse files
committed
Auto merge of #1881 - rust-lang:triple-stache, r=smarnach
replace triple mustache with html-safe helper
2 parents b7951cd + 5e935ca commit 43619db

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

app/helpers/html-safe.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { helper } from '@ember/component/helper';
2+
import { htmlSafe as markAsSafe } from '@ember/template';
3+
4+
export function htmlSafe([content] /*, hash*/) {
5+
return markAsSafe(content);
6+
}
7+
8+
export default helper(htmlSafe);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{{rendered}}}
1+
{{html-safe rendered}}

app/templates/crate/owners.hbs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@
5757
{{/link-to}}
5858
</div>
5959
<div class='stats'>
60-
{{{ if user.email user.email "&nbsp;" }}}
60+
{{#if user.email}}
61+
{{user.email}}
62+
{{else}}
63+
&nbsp;
64+
{{/if}}
6165
</div>
6266
<div class='stats downloads'>
6367
<button class='remove-owner small yellow-button' {{action 'removeOwner' user}}>Remove</button>

0 commit comments

Comments
 (0)