Skip to content

Commit

Permalink
fix: remove usage of {{title}} in dummy
Browse files Browse the repository at this point in the history
  • Loading branch information
knownasilya committed Jun 6, 2020
1 parent cbdb039 commit cab3aa2
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 18 deletions.
6 changes: 4 additions & 2 deletions tests/dummy/app/components/window-pane/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@
<span class="maximize button"></span>
{{title}}
</header>
<div>{{yield this}}</div>
</div>
<div>
{{yield this}}
</div>
</div>
2 changes: 1 addition & 1 deletion tests/dummy/app/index/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{{#page-title-pane as |p|}}
{{#p.matryoshka items=model.tokens as |token|}}
<code>
{{title token.value replace=token.replace prepend=token.prepend separator=token.separator}}
{{page-title token.value replace=token.replace prepend=token.prepend separator=token.separator}}
\{{<span class="helper">page-title</span> "{{text-field class="string" value=token.value onchange=(action (mut token.value)) autoresize=true}}"
<span class="literal">separator</span>="{{text-field class="string" value=token.separator onchange=(action (mut token.separator)) autoresize=true}}"
<span class="literal">prepend</span>={{boolean-field class="attribute" value=token.prepend onchange=(action (mut token.prepend))}}
Expand Down
2 changes: 1 addition & 1 deletion tests/dummy/app/templates/about.hbs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{{title "About My App" replace=true separator=" > "}}
{{page-title "About My App" replace=true separator=" > "}}
{{outlet}}
2 changes: 1 addition & 1 deletion tests/dummy/app/templates/about/authors.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{{title "Authors"}}
{{page-title "Authors"}}

{{outlet}}
2 changes: 1 addition & 1 deletion tests/dummy/app/templates/about/authors/profile.hbs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{{title "Profile"}}
{{page-title "Profile"}}
2 changes: 1 addition & 1 deletion tests/dummy/app/templates/application.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{! template-lint-disable simple-unless }}
{{head-layout}}
{{#unless (equals this.router.currentRouteName "index")}}
{{title "My App"}}
{{page-title "My App"}}
{{/unless}}
{{outlet}}
4 changes: 2 additions & 2 deletions tests/dummy/app/templates/author.hbs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{{title "Authors" prepend=false separator=" < "}}
{{title model.name}}
{{page-title "Authors" prepend=false separator=" < "}}
{{page-title model.name}}
3 changes: 1 addition & 2 deletions tests/dummy/app/templates/feed.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{title model.name " (" model.handle ")" replace=true}}

{{page-title model.name " (" model.handle ")" replace=true}}

{{#link-to "feed" "tomster" id="tomster"}}
@tomster
Expand Down
4 changes: 2 additions & 2 deletions tests/dummy/app/templates/hollywood.hbs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{{title "Hollywood" prepend=true separator=""}}
{{title "Hollywood ★ Stars everywhere" replace=true}}
{{page-title "Hollywood" prepend=true separator=""}}
{{page-title "Hollywood ★ Stars everywhere" replace=true}}
4 changes: 2 additions & 2 deletions tests/dummy/app/templates/post.hbs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{{title "Posts"}}
{{title model.title}}
{{page-title "Posts"}}
{{page-title model.title}}
2 changes: 1 addition & 1 deletion tests/dummy/app/templates/posts.hbs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{{title "Posts"}}
{{page-title "Posts"}}
4 changes: 2 additions & 2 deletions tests/dummy/app/templates/reader.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{{title "Reader"}}
{{page-title "Reader"}}

{{title "(10)" front=true separator=" "}}
{{page-title "(10)" front=true separator=" "}}

0 comments on commit cab3aa2

Please sign in to comment.