forked from sr/git-wiki
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
also updated sinatra submodule reference - file uploads dont work otherwise and added attachment view page
- Loading branch information
Showing
6 changed files
with
161 additions
and
4 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
Submodule sinatra
updated
26 files
+3 −0 | .gitmodules | |
+2 −0 | CHANGELOG | |
+22 −0 | LICENSE | |
+45 −0 | Manifest | |
+434 −0 | README.rdoc | |
+9 −4 | Rakefile | |
+371 −70 | lib/sinatra.rb | |
+23 −26 | lib/sinatra/test/methods.rb | |
+2 −1 | lib/sinatra/test/unit.rb | |
+107 −3 | test/app_test.rb | |
+30 −3 | test/application_test.rb | |
+12 −0 | test/custom_error_test.rb | |
+41 −0 | test/diddy_test.rb | |
+2 −2 | test/events_test.rb | |
+69 −0 | test/haml_test.rb | |
+0 −6 | test/mapped_error_test.rb | |
+16 −0 | test/rest_test.rb | |
+57 −0 | test/sass_test.rb | |
+40 −0 | test/sessions_test.rb | |
+36 −0 | test/streaming_test.rb | |
+19 −0 | test/sym_params_test.rb | |
+48 −0 | test/use_in_file_templates_test.rb | |
+2 −0 | test/views/foo.sass | |
+2 −0 | test/views/layout_test/foo.sass | |
+2 −0 | test/views/layout_test/layout.sass | |
+1 −0 | vendor/rack |
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,17 @@ | ||
<h1>Attach File</h1> | ||
|
||
<div class="content"> | ||
<h2>New File Upload</h2> | ||
<form method="post" action="/a/file/upload/<%= @page.name %>" | ||
class="niceform" enctype="multipart/form-data"> | ||
<label for="name">name</label> | ||
<input type="text" name="name" /> | ||
<br/> | ||
<label for="name">file</label> | ||
<input type="file" name="file" /> | ||
<br /> | ||
<label for="submit"></label> | ||
<input type="submit" value="upload" class="submit" /> | ||
</form> | ||
</div> | ||
|
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