-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from elwayman02/errors
Display errors when posts are not found
- Loading branch information
Showing
9 changed files
with
54 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,30 @@ | ||
{{#each sortedPosts as |post|}} | ||
{{#if collapsible}} | ||
{{#if collapseByDefault}} | ||
{{tumblr-post | ||
post=post | ||
postsRoute=postsRoute | ||
collapsible=true | ||
collapsed=true | ||
formatDates=formatDates}} | ||
{{#if sortedPosts.length}} | ||
{{#each sortedPosts as |post|}} | ||
{{#if collapsible}} | ||
{{#if collapseByDefault}} | ||
{{tumblr-post | ||
post=post | ||
postsRoute=postsRoute | ||
collapsible=true | ||
collapsed=true | ||
formatDates=formatDates}} | ||
{{else}} | ||
{{tumblr-post | ||
post=post | ||
postsRoute=postsRoute | ||
collapsible=true | ||
collapsed=false | ||
formatDates=formatDates}} | ||
{{/if}} | ||
{{else}} | ||
{{tumblr-post | ||
post=post | ||
postsRoute=postsRoute | ||
collapsible=true | ||
collapsed=false | ||
formatDates=formatDates}} | ||
{{/if}} | ||
{{else}} | ||
{{tumblr-post | ||
post=post | ||
postsRoute=postsRoute | ||
formatDates=formatDates}} | ||
{{/each}} | ||
{{else}} | ||
{{#if showErrors}} | ||
<span class="tumblr-error">{{errorMessage}}</span> | ||
{{/if}} | ||
{{/each}} | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import Ember from 'ember'; | ||
|
||
export default Ember.Route.extend({ | ||
model() { | ||
return Ember.A([]); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<h1>Welcome to my blog!</h1> | ||
|
||
<h3>This blog demonstrates the error message when no posts are found</h3> | ||
|
||
{{tumblr-blog posts=model}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters