{"action":"created","comment":{"url":"https://api.github.com/repos/LinghanX/int_edu/pulls/comments/43687082","id":43687082,"diff_hunk":"@@ -0,0 +1,107 @@\n+# Use this setup block to configure all options available in SimpleForm.\n+SimpleForm.setup do |config|\n+  # Don't forget to edit this file to adapt it to your needs (specially\n+  # all the grid-related classes)\n+  #\n+  # Please note that hints are commented out by default since Foundation\n+  # does't provide styles for hints. You will need to provide your own CSS styles for hints.\n+  # Uncomment them to enable hints.\n+\n+  config.wrappers :vertical_form, class: :input, hint_class: :field_with_hint, error_class: :error do |b|\n+    b.use :html5\n+    b.use :placeholder\n+    b.optional :maxlength\n+    b.optional :pattern\n+    b.optional :min_max\n+    b.optional :readonly\n+    b.use :label_input\n+    b.use :error, wrap_with: { tag: :small, class: :error }\n+\n+    # b.use :hint,  wrap_with: { tag: :span, class: :hint }\n+  end\n+\n+  config.wrappers :horizontal_form, tag: 'div', class: 'row', hint_class: :field_with_hint, error_class: :error do |b|\n+    b.use :html5\n+    b.use :placeholder\n+    b.optional :maxlength\n+    b.optional :pattern\n+    b.optional :min_max\n+    b.optional :readonly\n+\n+    b.wrapper :label_wrapper, tag: :div, class: 'small-3 columns' do |ba|\n+      ba.use :label, class: 'right inline'\n+    end\n+\n+    b.wrapper :right_input_wrapper, tag: :div, class: 'small-9 columns' do |ba|\n+      ba.use :input\n+      ba.use :error, wrap_with: { tag: :small, class: :error }\n+      # ba.use :hint,  wrap_with: { tag: :span, class: :hint }\n+    end\n+  end\n+\n+  config.wrappers :horizontal_radio_and_checkboxes, tag: 'div', class: 'row' do |b|\n+    b.use :html5\n+    b.optional :readonly\n+\n+    b.wrapper :container_wrapper, tag: 'div', class: 'small-offset-3 small-9 columns' do |ba|\n+      ba.wrapper :tag => 'label', :class => 'checkbox' do |bb|\n+        bb.use :input\n+        bb.use :label_text\n+      end\n+\n+      ba.use :error, wrap_with: { tag: :small, class: :error }\n+      # ba.use :hint,  wrap_with: { tag: :span, class: :hint }\n+    end\n+  end\n+\n+  # Foundation does not provide a way to handle inline forms\n+  # This wrapper can be used to create an inline form\n+  # by hiding that labels on every screen sizes ('hidden-for-small-up').\n+  #\n+  # Note that you need to adapt this wrapper to your needs. If you need a 4\n+  # columns form then change the wrapper class to 'small-3', if you need\n+  # only two use 'small-6' and so on.\n+  config.wrappers :inline_form, tag: 'div', class: 'column small-4', hint_class: :field_with_hint, error_class: :error do |b|","path":"config/initializers/simple_form_foundation.rb","position":64,"original_position":64,"commit_id":"a648160b9dc2ae5edaa9c90b8d6ea77a349b374b","original_commit_id":"a648160b9dc2ae5edaa9c90b8d6ea77a349b374b","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long. [125/80]","created_at":"2015-11-02T21:44:49Z","updated_at":"2015-11-02T21:44:49Z","html_url":"https://github.com/LinghanX/int_edu/pull/19#discussion_r43687082","pull_request_url":"https://api.github.com/repos/LinghanX/int_edu/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/LinghanX/int_edu/pulls/comments/43687082"},"html":{"href":"https://github.com/LinghanX/int_edu/pull/19#discussion_r43687082"},"pull_request":{"href":"https://api.github.com/repos/LinghanX/int_edu/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/LinghanX/int_edu/pulls/19","id":49489996,"html_url":"https://github.com/LinghanX/int_edu/pull/19","diff_url":"https://github.com/LinghanX/int_edu/pull/19.diff","patch_url":"https://github.com/LinghanX/int_edu/pull/19.patch","issue_url":"https://api.github.com/repos/LinghanX/int_edu/issues/19","number":19,"state":"open","locked":false,"title":"Add sorting table","user":{"login":"LinghanX","id":13103681,"avatar_url":"https://avatars.githubusercontent.com/u/13103681?v=3","gravatar_id":"","url":"https://api.github.com/users/LinghanX","html_url":"https://github.com/LinghanX","followers_url":"https://api.github.com/users/LinghanX/followers","following_url":"https://api.github.com/users/LinghanX/following{/other_user}","gists_url":"https://api.github.com/users/LinghanX/gists{/gist_id}","starred_url":"https://api.github.com/users/LinghanX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinghanX/subscriptions","organizations_url":"https://api.github.com/users/LinghanX/orgs","repos_url":"https://api.github.com/users/LinghanX/repos","events_url":"https://api.github.com/users/LinghanX/events{/privacy}","received_events_url":"https://api.github.com/users/LinghanX/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-02T21:44:39Z","updated_at":"2015-11-02T21:44:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8d3ddc4a8d930edcb85799e94a91880557a60dd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/LinghanX/int_edu/pulls/19/commits","review_comments_url":"https://api.github.com/repos/LinghanX/int_edu/pulls/19/comments","review_comment_url":"https://api.github.com/repos/LinghanX/int_edu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LinghanX/int_edu/issues/19/comments","statuses_url":"https://api.github.com/repos/LinghanX/int_edu/statuses/a648160b9dc2ae5edaa9c90b8d6ea77a349b374b","head":{"label":"LinghanX:add_sorting_table","ref":"add_sorting_table","sha":"a648160b9dc2ae5edaa9c90b8d6ea77a349b374b","user":{"login":"LinghanX","id":13103681,"avatar_url":"https://avatars.githubusercontent.com/u/13103681?v=3","gravatar_id":"","url":"https://api.github.com/users/LinghanX","html_url":"https://github.com/LinghanX","followers_url":"https://api.github.com/users/LinghanX/followers","following_url":"https://api.github.com/users/LinghanX/following{/other_user}","gists_url":"https://api.github.com/users/LinghanX/gists{/gist_id}","starred_url":"https://api.github.com/users/LinghanX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinghanX/subscriptions","organizations_url":"https://api.github.com/users/LinghanX/orgs","repos_url":"https://api.github.com/users/LinghanX/repos","events_url":"https://api.github.com/users/LinghanX/events{/privacy}","received_events_url":"https://api.github.com/users/LinghanX/received_events","type":"User","site_admin":false},"repo":{"id":42408859,"name":"int_edu","full_name":"LinghanX/int_edu","owner":{"login":"LinghanX","id":13103681,"avatar_url":"https://avatars.githubusercontent.com/u/13103681?v=3","gravatar_id":"","url":"https://api.github.com/users/LinghanX","html_url":"https://github.com/LinghanX","followers_url":"https://api.github.com/users/LinghanX/followers","following_url":"https://api.github.com/users/LinghanX/following{/other_user}","gists_url":"https://api.github.com/users/LinghanX/gists{/gist_id}","starred_url":"https://api.github.com/users/LinghanX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinghanX/subscriptions","organizations_url":"https://api.github.com/users/LinghanX/orgs","repos_url":"https://api.github.com/users/LinghanX/repos","events_url":"https://api.github.com/users/LinghanX/events{/privacy}","received_events_url":"https://api.github.com/users/LinghanX/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LinghanX/int_edu","description":"","fork":false,"url":"https://api.github.com/repos/LinghanX/int_edu","forks_url":"https://api.github.com/repos/LinghanX/int_edu/forks","keys_url":"https://api.github.com/repos/LinghanX/int_edu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LinghanX/int_edu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LinghanX/int_edu/teams","hooks_url":"https://api.github.com/repos/LinghanX/int_edu/hooks","issue_events_url":"https://api.github.com/repos/LinghanX/int_edu/issues/events{/number}","events_url":"https://api.github.com/repos/LinghanX/int_edu/events","assignees_url":"https://api.github.com/repos/LinghanX/int_edu/assignees{/user}","branches_url":"https://api.github.com/repos/LinghanX/int_edu/branches{/branch}","tags_url":"https://api.github.com/repos/LinghanX/int_edu/tags","blobs_url":"https://api.github.com/repos/LinghanX/int_edu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LinghanX/int_edu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LinghanX/int_edu/git/refs{/sha}","trees_url":"https://api.github.com/repos/LinghanX/int_edu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LinghanX/int_edu/statuses/{sha}","languages_url":"https://api.github.com/repos/LinghanX/int_edu/languages","stargazers_url":"https://api.github.com/repos/LinghanX/int_edu/stargazers","contributors_url":"https://api.github.com/repos/LinghanX/int_edu/contributors","subscribers_url":"https://api.github.com/repos/LinghanX/int_edu/subscribers","subscription_url":"https://api.github.com/repos/LinghanX/int_edu/subscription","commits_url":"https://api.github.com/repos/LinghanX/int_edu/commits{/sha}","git_commits_url":"https://api.github.com/repos/LinghanX/int_edu/git/commits{/sha}","comments_url":"https://api.github.com/repos/LinghanX/int_edu/comments{/number}","issue_comment_url":"https://api.github.com/repos/LinghanX/int_edu/issues/comments{/number}","contents_url":"https://api.github.com/repos/LinghanX/int_edu/contents/{+path}","compare_url":"https://api.github.com/repos/LinghanX/int_edu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LinghanX/int_edu/merges","archive_url":"https://api.github.com/repos/LinghanX/int_edu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LinghanX/int_edu/downloads","issues_url":"https://api.github.com/repos/LinghanX/int_edu/issues{/number}","pulls_url":"https://api.github.com/repos/LinghanX/int_edu/pulls{/number}","milestones_url":"https://api.github.com/repos/LinghanX/int_edu/milestones{/number}","notifications_url":"https://api.github.com/repos/LinghanX/int_edu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LinghanX/int_edu/labels{/name}","releases_url":"https://api.github.com/repos/LinghanX/int_edu/releases{/id}","created_at":"2015-09-13T19:05:39Z","updated_at":"2015-10-19T14:21:26Z","pushed_at":"2015-11-02T21:44:39Z","git_url":"git://github.com/LinghanX/int_edu.git","ssh_url":"git@github.com:LinghanX/int_edu.git","clone_url":"https://github.com/LinghanX/int_edu.git","svn_url":"https://github.com/LinghanX/int_edu","homepage":"http://schoolreview.herokuapp.com/","size":28413,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"LinghanX:master","ref":"master","sha":"76a5e4d3c94ff9c08bacba19f50990b092dd93ee","user":{"login":"LinghanX","id":13103681,"avatar_url":"https://avatars.githubusercontent.com/u/13103681?v=3","gravatar_id":"","url":"https://api.github.com/users/LinghanX","html_url":"https://github.com/LinghanX","followers_url":"https://api.github.com/users/LinghanX/followers","following_url":"https://api.github.com/users/LinghanX/following{/other_user}","gists_url":"https://api.github.com/users/LinghanX/gists{/gist_id}","starred_url":"https://api.github.com/users/LinghanX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinghanX/subscriptions","organizations_url":"https://api.github.com/users/LinghanX/orgs","repos_url":"https://api.github.com/users/LinghanX/repos","events_url":"https://api.github.com/users/LinghanX/events{/privacy}","received_events_url":"https://api.github.com/users/LinghanX/received_events","type":"User","site_admin":false},"repo":{"id":42408859,"name":"int_edu","full_name":"LinghanX/int_edu","owner":{"login":"LinghanX","id":13103681,"avatar_url":"https://avatars.githubusercontent.com/u/13103681?v=3","gravatar_id":"","url":"https://api.github.com/users/LinghanX","html_url":"https://github.com/LinghanX","followers_url":"https://api.github.com/users/LinghanX/followers","following_url":"https://api.github.com/users/LinghanX/following{/other_user}","gists_url":"https://api.github.com/users/LinghanX/gists{/gist_id}","starred_url":"https://api.github.com/users/LinghanX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinghanX/subscriptions","organizations_url":"https://api.github.com/users/LinghanX/orgs","repos_url":"https://api.github.com/users/LinghanX/repos","events_url":"https://api.github.com/users/LinghanX/events{/privacy}","received_events_url":"https://api.github.com/users/LinghanX/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LinghanX/int_edu","description":"","fork":false,"url":"https://api.github.com/repos/LinghanX/int_edu","forks_url":"https://api.github.com/repos/LinghanX/int_edu/forks","keys_url":"https://api.github.com/repos/LinghanX/int_edu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LinghanX/int_edu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LinghanX/int_edu/teams","hooks_url":"https://api.github.com/repos/LinghanX/int_edu/hooks","issue_events_url":"https://api.github.com/repos/LinghanX/int_edu/issues/events{/number}","events_url":"https://api.github.com/repos/LinghanX/int_edu/events","assignees_url":"https://api.github.com/repos/LinghanX/int_edu/assignees{/user}","branches_url":"https://api.github.com/repos/LinghanX/int_edu/branches{/branch}","tags_url":"https://api.github.com/repos/LinghanX/int_edu/tags","blobs_url":"https://api.github.com/repos/LinghanX/int_edu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LinghanX/int_edu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LinghanX/int_edu/git/refs{/sha}","trees_url":"https://api.github.com/repos/LinghanX/int_edu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LinghanX/int_edu/statuses/{sha}","languages_url":"https://api.github.com/repos/LinghanX/int_edu/languages","stargazers_url":"https://api.github.com/repos/LinghanX/int_edu/stargazers","contributors_url":"https://api.github.com/repos/LinghanX/int_edu/contributors","subscribers_url":"https://api.github.com/repos/LinghanX/int_edu/subscribers","subscription_url":"https://api.github.com/repos/LinghanX/int_edu/subscription","commits_url":"https://api.github.com/repos/LinghanX/int_edu/commits{/sha}","git_commits_url":"https://api.github.com/repos/LinghanX/int_edu/git/commits{/sha}","comments_url":"https://api.github.com/repos/LinghanX/int_edu/comments{/number}","issue_comment_url":"https://api.github.com/repos/LinghanX/int_edu/issues/comments{/number}","contents_url":"https://api.github.com/repos/LinghanX/int_edu/contents/{+path}","compare_url":"https://api.github.com/repos/LinghanX/int_edu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LinghanX/int_edu/merges","archive_url":"https://api.github.com/repos/LinghanX/int_edu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LinghanX/int_edu/downloads","issues_url":"https://api.github.com/repos/LinghanX/int_edu/issues{/number}","pulls_url":"https://api.github.com/repos/LinghanX/int_edu/pulls{/number}","milestones_url":"https://api.github.com/repos/LinghanX/int_edu/milestones{/number}","notifications_url":"https://api.github.com/repos/LinghanX/int_edu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LinghanX/int_edu/labels{/name}","releases_url":"https://api.github.com/repos/LinghanX/int_edu/releases{/id}","created_at":"2015-09-13T19:05:39Z","updated_at":"2015-10-19T14:21:26Z","pushed_at":"2015-11-02T21:44:39Z","git_url":"git://github.com/LinghanX/int_edu.git","ssh_url":"git@github.com:LinghanX/int_edu.git","clone_url":"https://github.com/LinghanX/int_edu.git","svn_url":"https://github.com/LinghanX/int_edu","homepage":"http://schoolreview.herokuapp.com/","size":28413,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LinghanX/int_edu/pulls/19"},"html":{"href":"https://github.com/LinghanX/int_edu/pull/19"},"issue":{"href":"https://api.github.com/repos/LinghanX/int_edu/issues/19"},"comments":{"href":"https://api.github.com/repos/LinghanX/int_edu/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/LinghanX/int_edu/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/LinghanX/int_edu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LinghanX/int_edu/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/LinghanX/int_edu/statuses/a648160b9dc2ae5edaa9c90b8d6ea77a349b374b"}}}}