social_stream-documents 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +9 -0
- data/Gemfile +3 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +6 -0
- data/Rakefile +29 -0
- data/app/assets/images/btn/document.png +0 -0
- data/app/assets/images/formats/default.png +0 -0
- data/app/assets/images/formats/mp3.png +0 -0
- data/app/assets/images/formats/msexcel.png +0 -0
- data/app/assets/images/formats/msword.png +0 -0
- data/app/assets/images/formats/pdf.png +0 -0
- data/app/assets/images/formats/plain.png +0 -0
- data/app/assets/images/formats/rar.png +0 -0
- data/app/assets/images/formats/vnd.ms-powerpoint.png +0 -0
- data/app/assets/images/formats/zip.png +0 -0
- data/app/assets/javascripts/documents.js +42 -0
- data/app/assets/stylesheets/documents.css +96 -0
- data/app/controllers/audios_controller.rb +19 -0
- data/app/controllers/documents_controller.rb +42 -0
- data/app/controllers/pictures_controller.rb +18 -0
- data/app/controllers/videos_controller.rb +22 -0
- data/app/helpers/documents_helper.rb +28 -0
- data/app/models/audio.rb +3 -0
- data/app/models/document.rb +35 -0
- data/app/models/picture.rb +6 -0
- data/app/models/video.rb +15 -0
- data/app/views/audios/_audio.html.erb +23 -0
- data/app/views/audios/_index.html.erb +22 -0
- data/app/views/audios/index.html.erb +20 -0
- data/app/views/documents/_document.html.erb +19 -0
- data/app/views/documents/_index.html.erb +22 -0
- data/app/views/documents/_new.html.erb +5 -0
- data/app/views/documents/index.html.erb +20 -0
- data/app/views/pictures/_index.html.erb +22 -0
- data/app/views/pictures/_picture.html.erb +19 -0
- data/app/views/pictures/index.html.erb +20 -0
- data/app/views/toolbar/_home_menu_options.html.erb +33 -0
- data/app/views/toolbar/_uploads_menu.html.erb +21 -0
- data/app/views/videos/_index.html.erb +22 -0
- data/app/views/videos/_video.html.erb +23 -0
- data/app/views/videos/index.html.erb +20 -0
- data/app/worker/videoencoder.rb +7 -0
- data/config/locales/en.yml +22 -0
- data/config/routes.rb +9 -0
- data/db/migrate/20110615143707_create_social_stream_documents.rb +24 -0
- data/lib/generators/social_stream/documents/install_generator.rb +11 -0
- data/lib/social_stream/documents/engine.rb +18 -0
- data/lib/social_stream-documents.rb +10 -0
- data/social_stream-documents.gemspec +24 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config/application.rb +45 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +22 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +26 -0
- data/spec/dummy/config/environments/production.rb +49 -0
- data/spec/dummy/config/environments/test.rb +35 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +10 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +58 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +26 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/javascripts/application.js +2 -0
- data/spec/dummy/public/javascripts/controls.js +965 -0
- data/spec/dummy/public/javascripts/dragdrop.js +974 -0
- data/spec/dummy/public/javascripts/effects.js +1123 -0
- data/spec/dummy/public/javascripts/prototype.js +6001 -0
- data/spec/dummy/public/javascripts/rails.js +191 -0
- data/spec/dummy/public/stylesheets/.gitkeep +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/integration/navigation_spec.rb +9 -0
- data/spec/socialstream_documents_spec.rb +7 -0
- data/spec/spec_helper.rb +33 -0
- metadata +296 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
File without changes
|