Skip to content

Commit 8e7062b

Browse files
committed
Auto merge of #2449 - Turbo87:template-only, r=locks
Convert a few components to template-only components r? @locks
2 parents 244cc49 + e7c4998 commit 8e7062b

File tree

6 files changed

+4
-29
lines changed

6 files changed

+4
-29
lines changed

app/components/flash-message.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<p local-class="flash {{if this.message "shown"}}" data-test-flash-message ...attributes>
2-
{{this.message}}
1+
<p local-class="flash {{if @message "shown"}}" data-test-flash-message ...attributes>
2+
{{@message}}
33
</p>

app/components/flash-message.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

app/components/page-header.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{{yield}}
44
{{else}}
55
<h1 local-class="heading">
6-
{{svg-jar this.icon local-class="icon"}}
6+
{{svg-jar (or @icon "crate") local-class="icon"}}
77
{{@title}}
88
{{#if @suffix}}
99
<small local-class="suffix">{{@suffix}}</small>

app/components/page-header.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

app/components/user-link.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a href={{@user.url}} title={{@user.login}} ...attributes>{{yield}}</a>

app/components/user-link.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)