This repository has been archived by the owner on Mar 7, 2023. It is now read-only.
-
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.
support for uploading and removing files from s3
- Loading branch information
marcinbunsch
committed
Sep 23, 2009
1 parent
112a548
commit d6e34c9
Showing
8 changed files
with
40 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,13 +16,13 @@ | |
it 'should render table with no columns' do | ||
result = table(@collection) | ||
result.include?('<tr><th>name</th><th>email</th><th>id</th></tr>').should == true | ||
result.include?('<tr><td>Foo</td><td>[email protected]</td><td>11</td><tr>').should == true | ||
result.include?('<tr class="alt"><td>Foo</td><td>[email protected]</td><td>11</td><tr>').should == true | ||
end | ||
|
||
it 'should render table with a block' do | ||
result = table(@collection) { |item| 'copy' } | ||
result.include?('<tr><th>name</th><th>email</th><th>id</th><th>options</th></tr>').should == true | ||
result.include?('<tr><td>Foo</td><td>[email protected]</td><td>11</td><td>copy</td><tr>').should == true | ||
result.include?('<tr class="alt"><td>Foo</td><td>[email protected]</td><td>11</td><td>copy</td><tr>').should == true | ||
end | ||
|
||
it 'should render table with columns and block' do | ||
|
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 +1,6 @@ | ||
<%= table(@keys) { |key| link_to('link', key[:link]) } %> | ||
<form enctype="multipart/form-data" action="/<%= @project %>/bucket/<%= params[:bucket_name] %>/upload" method="post"> | ||
File: <input type="file" name="bucket[upload]" value="" /> | ||
|
||
<input type="submit" value="Upload"> | ||
</form> | ||
<%= table(@keys) { |key| link_to('link', key[:link]) + ' ' + link_to('delete', "/#{@project}/bucket/#{params[:bucket_name]}/key/#{key[:name]}/delete") } %> |