Ajaxify commenting
authorMarcin Kulik <m@ku1ik.com>
Thu, 10 Apr 2014 12:56:31 +0000 (14:56 +0200)
committerMarcin Kulik <m@ku1ik.com>
Thu, 10 Apr 2014 18:03:16 +0000 (20:03 +0200)
commit14dc83bce9d2910c675a141309aa09789be0074f
treea440672c19e0faddec9c7963d8d046628fb57c53
parentab4d2fb68b8a877a198316904b507b31b30d9521
Ajaxify commenting

- adding and editing comments doesn't reload the page anymore
- multiple add/edit forms can be opened at the same time
- "Edit" button on comment disappears after allowed time for editing
42 files changed:
Gemfile
Gemfile.lock
app/assets/javascripts/application.js [new file with mode: 0644]
app/assets/javascripts/components/add_comment_button.js.jsx [new file with mode: 0644]
app/assets/javascripts/components/add_comment_form.js.jsx [new file with mode: 0644]
app/assets/javascripts/components/add_merge_request_comment_form.js.jsx [new file with mode: 0644]
app/assets/javascripts/components/comment.js.jsx [new file with mode: 0644]
app/assets/javascripts/components/comment_author.js.jsx [new file with mode: 0644]
app/assets/javascripts/components/comment_context.js.jsx [new file with mode: 0644]
app/assets/javascripts/components/comment_header.js.jsx [new file with mode: 0644]
app/assets/javascripts/components/comment_time.js.jsx [new file with mode: 0644]
app/assets/javascripts/components/comments_section.js.jsx [new file with mode: 0644]
app/assets/javascripts/components/edit_button.js.jsx [new file with mode: 0644]
app/assets/javascripts/components/edit_comment_form.js.jsx [new file with mode: 0644]
app/assets/javascripts/components/inline_comment_context.js.jsx [new file with mode: 0644]
app/assets/javascripts/components/markdown_editor.js.jsx [new file with mode: 0644]
app/assets/javascripts/components/markdown_preview.js.jsx [new file with mode: 0644]
app/assets/javascripts/components/merge_request_comments_section.js.jsx [new file with mode: 0644]
app/assets/javascripts/components/merge_request_status.js.jsx [new file with mode: 0644]
app/assets/javascripts/components/merge_request_status_change.js.jsx [new file with mode: 0644]
app/assets/javascripts/components/time_ago.js.jsx [new file with mode: 0644]
app/controllers/comments_controller.rb
app/controllers/merge_request_comments_controller.rb
app/helpers/application_helper.rb
app/models/comment.rb
app/presenters/commit_comment_json_presenter.rb [new file with mode: 0644]
app/presenters/commit_comments_json_presenter.rb
app/presenters/merge_request_comments_json_presenter.rb [new file with mode: 0644]
app/views/commits/show.html.erb
app/views/layouts/application.html.erb
app/views/merge_request_versions/show.html.erb
app/views/merge_requests/show.html.erb
config/environments/development.rb
config/environments/production.rb
config/environments/test.rb
config/routes.rb
public/ui3
test/fast_test_helper.rb
test/functional/merge_requests_controller_test.rb
test/micro/presenters/commit_comments_json_presenter_test.rb
vendor/assets/javascripts/es5-sham.js [new file with mode: 0644]
vendor/assets/javascripts/es5-shim.js [new file with mode: 0644]