forked from tip4commit/tip4commit
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle distribution to user without an address set
- Loading branch information
Showing
16 changed files
with
194 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,4 +83,5 @@ group :test do | |
gem 'rspec-rails' | ||
gem 'factory_girl_rails' | ||
gem 'poltergeist' | ||
gem 'timecop' | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
%h1 Last Withdrawals | ||
%h1 Distributions | ||
- if @project | ||
%h2= @project.name | ||
%p | ||
%table.table | ||
%thead | ||
%tr | ||
%th Created At | ||
%th Sent at | ||
%th Transaction | ||
%th Result | ||
%th | ||
%tbody | ||
- @distributions.each do |distribution| | ||
%tr | ||
%td= l distribution.created_at, format: :short | ||
%td= link_to distribution.txid, transaction_url(distribution.txid), target: '_blank' | ||
%td= distribution.is_error ? "Error" : "Success" | ||
%td= l distribution.sent_at, format: :short if distribution.sent_at | ||
%td= link_to distribution.txid, transaction_url(distribution.txid), target: '_blank' if distribution.txid.present? | ||
%td= distribution.is_error ? "Error" : "Success" if distribution.sent? | ||
%td= link_to "Details", [distribution.project, distribution], class: "btn btn-success" |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddSentAtToDistribution < ActiveRecord::Migration | ||
def change | ||
add_column :distributions, :sent_at, :datetime | ||
end | ||
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
Oops, something went wrong.