-
Notifications
You must be signed in to change notification settings - Fork 0
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 #728 from PRX/chore/retryable_media
Retryable media
- Loading branch information
Showing
18 changed files
with
90 additions
and
65 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
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
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,9 +1,11 @@ | ||
<% if upload_new?(media) %> | ||
<%= render "episodes/media/new", form: form, episode: episode, media: media %> | ||
<% elsif upload_stalled?(media) %> | ||
<%= render "episodes/media/error", form: form, episode: episode, media: media, retryable: true %> | ||
<% elsif upload_processing?(media) %> | ||
<%= render "episodes/media/processing", form: form, episode: episode, media: media %> | ||
<% elsif upload_complete?(media) %> | ||
<%= render "episodes/media/complete", form: form, episode: episode, media: media %> | ||
<% else %> | ||
<%= render "episodes/media/error", form: form, episode: episode, media: media %> | ||
<%= render "episodes/media/error", form: form, episode: episode, media: media, retryable: false %> | ||
<% end %> |
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
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,9 +1,11 @@ | ||
<% if upload_new?(image) %> | ||
<%= render "images/new", form: form, image: image %> | ||
<% elsif upload_stalled?(image) %> | ||
<%= render "images/error", form: form, image: image, delete_path: delete_path, retry_path: retry_path %> | ||
<% elsif upload_processing?(image) %> | ||
<%= render "images/processing", form: form, image: image, delete_path: delete_path, retry_path: retry_path %> | ||
<%= render "images/processing", form: form, image: image, delete_path: delete_path %> | ||
<% elsif upload_complete?(image) %> | ||
<%= render "images/complete", form: form, image: image, delete_path: delete_path, retry_path: retry_path %> | ||
<%= render "images/complete", form: form, image: image, delete_path: delete_path %> | ||
<% else %> | ||
<%= render "images/error", form: form, image: image, delete_path: delete_path, retry_path: retry_path %> | ||
<%= render "images/error", form: form, image: image, delete_path: delete_path, retry_path: nil %> | ||
<% end %> |
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
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
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