{"action":"created","comment":{"url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/pulls/comments/55951882","id":55951882,"diff_hunk":"@@ -0,0 +1,33 @@\n+class Frontier::Views::Index::EmptyMessageAndCallToAction\n+\n+  include Frontier::ModelConfigurationProperty\n+\n+  def to_s\n+    if model_configuration.show_create?\n+      empty_message_with_call_to_action\n+    else\n+      \"%p #{empty_message_without_call_to_action}\"\n+    end\n+  end\n+\n+private\n+\n+  def empty_message_with_call_to_action\n+    raw = <<-STRING\n+%p\n+  #{empty_message_without_call_to_action}\n+  - if #{Frontier::Authorization::Check.new(model_configuration, model_configuration.as_constant, :new)}\n+    = link_to(\\\"Click here to create one.\\\", #{model_configuration.url_builder.new_path})","path":"lib/frontier/views/index/empty_message_and_call_to_action.rb","position":null,"original_position":20,"commit_id":"134221cfe139001027e3463426d2e73577d39255","original_commit_id":"7b5e0a38e320cfd9e3b1c9e12a9a76a2edaef812","user":{"login":"pzi","id":2037851,"avatar_url":"https://avatars.githubusercontent.com/u/2037851?v=3","gravatar_id":"","url":"https://api.github.com/users/pzi","html_url":"https://github.com/pzi","followers_url":"https://api.github.com/users/pzi/followers","following_url":"https://api.github.com/users/pzi/following{/other_user}","gists_url":"https://api.github.com/users/pzi/gists{/gist_id}","starred_url":"https://api.github.com/users/pzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pzi/subscriptions","organizations_url":"https://api.github.com/users/pzi/orgs","repos_url":"https://api.github.com/users/pzi/repos","events_url":"https://api.github.com/users/pzi/events{/privacy}","received_events_url":"https://api.github.com/users/pzi/received_events","type":"User","site_admin":false},"body":"Hence [my suggestion](https://github.com/thefrontiergroup/frontier_generators/pull/106#issuecomment-196101745) to drop the link from the paragraph and use the main call to action button underneath it instead.","created_at":"2016-03-14T02:54:00Z","updated_at":"2016-03-14T02:54:00Z","html_url":"https://github.com/thefrontiergroup/frontier_generators/pull/106#discussion_r55951882","pull_request_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/pulls/106","_links":{"self":{"href":"https://api.github.com/repos/thefrontiergroup/frontier_generators/pulls/comments/55951882"},"html":{"href":"https://github.com/thefrontiergroup/frontier_generators/pull/106#discussion_r55951882"},"pull_request":{"href":"https://api.github.com/repos/thefrontiergroup/frontier_generators/pulls/106"}}},"pull_request":{"url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/pulls/106","id":62633570,"html_url":"https://github.com/thefrontiergroup/frontier_generators/pull/106","diff_url":"https://github.com/thefrontiergroup/frontier_generators/pull/106.diff","patch_url":"https://github.com/thefrontiergroup/frontier_generators/pull/106.patch","issue_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/issues/106","number":106,"state":"closed","locked":false,"title":"Feature/102 call to action","user":{"login":"jordanmaguire","id":296341,"avatar_url":"https://avatars.githubusercontent.com/u/296341?v=3","gravatar_id":"","url":"https://api.github.com/users/jordanmaguire","html_url":"https://github.com/jordanmaguire","followers_url":"https://api.github.com/users/jordanmaguire/followers","following_url":"https://api.github.com/users/jordanmaguire/following{/other_user}","gists_url":"https://api.github.com/users/jordanmaguire/gists{/gist_id}","starred_url":"https://api.github.com/users/jordanmaguire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordanmaguire/subscriptions","organizations_url":"https://api.github.com/users/jordanmaguire/orgs","repos_url":"https://api.github.com/users/jordanmaguire/repos","events_url":"https://api.github.com/users/jordanmaguire/events{/privacy}","received_events_url":"https://api.github.com/users/jordanmaguire/received_events","type":"User","site_admin":false},"body":"- Fix #97: Only show actions if edit/delete are enabled\r\n- Fix #102 Add an empty message and a call to action to the index\r\n\r\n![screen shot 2016-03-12 at 2 43 25 pm](https://cloud.githubusercontent.com/assets/296341/13721404/04a2b9f0-e861-11e5-94cf-4d99f0355080.png)\r\n\r\nTime to get drunk now","created_at":"2016-03-12T06:45:22Z","updated_at":"2016-03-14T02:54:00Z","closed_at":"2016-03-14T02:17:57Z","merged_at":"2016-03-14T02:17:57Z","merge_commit_sha":"bccb0ce6da93f2463737fb057abf770cd293914c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/pulls/106/commits","review_comments_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/pulls/106/comments","review_comment_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/issues/106/comments","statuses_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/statuses/134221cfe139001027e3463426d2e73577d39255","head":{"label":"thefrontiergroup:feature/102_call_to_action","ref":"feature/102_call_to_action","sha":"134221cfe139001027e3463426d2e73577d39255","user":{"login":"thefrontiergroup","id":90945,"avatar_url":"https://avatars.githubusercontent.com/u/90945?v=3","gravatar_id":"","url":"https://api.github.com/users/thefrontiergroup","html_url":"https://github.com/thefrontiergroup","followers_url":"https://api.github.com/users/thefrontiergroup/followers","following_url":"https://api.github.com/users/thefrontiergroup/following{/other_user}","gists_url":"https://api.github.com/users/thefrontiergroup/gists{/gist_id}","starred_url":"https://api.github.com/users/thefrontiergroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thefrontiergroup/subscriptions","organizations_url":"https://api.github.com/users/thefrontiergroup/orgs","repos_url":"https://api.github.com/users/thefrontiergroup/repos","events_url":"https://api.github.com/users/thefrontiergroup/events{/privacy}","received_events_url":"https://api.github.com/users/thefrontiergroup/received_events","type":"Organization","site_admin":false},"repo":{"id":36213953,"name":"frontier_generators","full_name":"thefrontiergroup/frontier_generators","owner":{"login":"thefrontiergroup","id":90945,"avatar_url":"https://avatars.githubusercontent.com/u/90945?v=3","gravatar_id":"","url":"https://api.github.com/users/thefrontiergroup","html_url":"https://github.com/thefrontiergroup","followers_url":"https://api.github.com/users/thefrontiergroup/followers","following_url":"https://api.github.com/users/thefrontiergroup/following{/other_user}","gists_url":"https://api.github.com/users/thefrontiergroup/gists{/gist_id}","starred_url":"https://api.github.com/users/thefrontiergroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thefrontiergroup/subscriptions","organizations_url":"https://api.github.com/users/thefrontiergroup/orgs","repos_url":"https://api.github.com/users/thefrontiergroup/repos","events_url":"https://api.github.com/users/thefrontiergroup/events{/privacy}","received_events_url":"https://api.github.com/users/thefrontiergroup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thefrontiergroup/frontier_generators","description":"Rails generators to be used to quickly scaffold CRUD for models in the Rails Template","fork":false,"url":"https://api.github.com/repos/thefrontiergroup/frontier_generators","forks_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/forks","keys_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/teams","hooks_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/hooks","issue_events_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/issues/events{/number}","events_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/events","assignees_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/assignees{/user}","branches_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/branches{/branch}","tags_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/tags","blobs_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/git/refs{/sha}","trees_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/statuses/{sha}","languages_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/languages","stargazers_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/stargazers","contributors_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/contributors","subscribers_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/subscribers","subscription_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/subscription","commits_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/commits{/sha}","git_commits_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/git/commits{/sha}","comments_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/comments{/number}","issue_comment_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/issues/comments{/number}","contents_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/contents/{+path}","compare_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/merges","archive_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/downloads","issues_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/issues{/number}","pulls_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/pulls{/number}","milestones_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/milestones{/number}","notifications_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/labels{/name}","releases_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/releases{/id}","deployments_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/deployments","created_at":"2015-05-25T06:24:19Z","updated_at":"2016-03-10T03:15:06Z","pushed_at":"2016-03-14T02:25:56Z","git_url":"git://github.com/thefrontiergroup/frontier_generators.git","ssh_url":"git@github.com:thefrontiergroup/frontier_generators.git","clone_url":"https://github.com/thefrontiergroup/frontier_generators.git","svn_url":"https://github.com/thefrontiergroup/frontier_generators","homepage":null,"size":343,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":19,"forks":0,"open_issues":19,"watchers":1,"default_branch":"master"}},"base":{"label":"thefrontiergroup:master","ref":"master","sha":"72117e61ae16eff24749b87494f4869e4f35e0fd","user":{"login":"thefrontiergroup","id":90945,"avatar_url":"https://avatars.githubusercontent.com/u/90945?v=3","gravatar_id":"","url":"https://api.github.com/users/thefrontiergroup","html_url":"https://github.com/thefrontiergroup","followers_url":"https://api.github.com/users/thefrontiergroup/followers","following_url":"https://api.github.com/users/thefrontiergroup/following{/other_user}","gists_url":"https://api.github.com/users/thefrontiergroup/gists{/gist_id}","starred_url":"https://api.github.com/users/thefrontiergroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thefrontiergroup/subscriptions","organizations_url":"https://api.github.com/users/thefrontiergroup/orgs","repos_url":"https://api.github.com/users/thefrontiergroup/repos","events_url":"https://api.github.com/users/thefrontiergroup/events{/privacy}","received_events_url":"https://api.github.com/users/thefrontiergroup/received_events","type":"Organization","site_admin":false},"repo":{"id":36213953,"name":"frontier_generators","full_name":"thefrontiergroup/frontier_generators","owner":{"login":"thefrontiergroup","id":90945,"avatar_url":"https://avatars.githubusercontent.com/u/90945?v=3","gravatar_id":"","url":"https://api.github.com/users/thefrontiergroup","html_url":"https://github.com/thefrontiergroup","followers_url":"https://api.github.com/users/thefrontiergroup/followers","following_url":"https://api.github.com/users/thefrontiergroup/following{/other_user}","gists_url":"https://api.github.com/users/thefrontiergroup/gists{/gist_id}","starred_url":"https://api.github.com/users/thefrontiergroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thefrontiergroup/subscriptions","organizations_url":"https://api.github.com/users/thefrontiergroup/orgs","repos_url":"https://api.github.com/users/thefrontiergroup/repos","events_url":"https://api.github.com/users/thefrontiergroup/events{/privacy}","received_events_url":"https://api.github.com/users/thefrontiergroup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thefrontiergroup/frontier_generators","description":"Rails generators to be used to quickly scaffold CRUD for models in the Rails Template","fork":false,"url":"https://api.github.com/repos/thefrontiergroup/frontier_generators","forks_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/forks","keys_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/teams","hooks_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/hooks","issue_events_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/issues/events{/number}","events_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/events","assignees_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/assignees{/user}","branches_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/branches{/branch}","tags_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/tags","blobs_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/git/refs{/sha}","trees_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/statuses/{sha}","languages_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/languages","stargazers_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/stargazers","contributors_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/contributors","subscribers_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/subscribers","subscription_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/subscription","commits_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/commits{/sha}","git_commits_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/git/commits{/sha}","comments_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/comments{/number}","issue_comment_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/issues/comments{/number}","contents_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/contents/{+path}","compare_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/merges","archive_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/downloads","issues_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/issues{/number}","pulls_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/pulls{/number}","milestones_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/milestones{/number}","notifications_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/labels{/name}","releases_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/releases{/id}","deployments_url":"https://api.github.com/repos/thefrontiergroup/frontier_generators/deployments","created_at":"2015-05-25T06:24:19Z","updated_at":"2016-03-10T03:15:06Z","pushed_at":"2016-03-14T02:25:56Z","git_url":"git://github.com/thefrontiergroup/frontier_generators.git","ssh_url":"git@github.com:thefrontiergroup/frontier_generators.git","clone_url":"https://github.com/thefrontiergroup/frontier_generators.git","svn_url":"https://github.com/thefrontiergroup/frontier_generators","homepage":null,"size":343,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":19,"forks":0,"open_issues":19,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thefrontiergroup/frontier_generators/pulls/106"},"html":{"href":"https://github.com/thefrontiergroup/frontier_generators/pull/106"},"issue":{"href":"https://api.github.com/repos/thefrontiergroup/frontier_generators/issues/106"},"comments":{"href":"https://api.github.com/repos/thefrontiergroup/frontier_generators/issues/106/comments"},"review_comments":{"href":"https://api.github.com/repos/thefrontiergroup/frontier_generators/pulls/106/comments"},"review_comment":{"href":"https://api.github.com/repos/thefrontiergroup/frontier_generators/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thefrontiergroup/frontier_generators/pulls/106/commits"},"statuses":{"href":"https://api.github.com/repos/thefrontiergroup/frontier_generators/statuses/134221cfe139001027e3463426d2e73577d39255"}}}}