{"action":"created","comment":{"url":"https://api.github.com/repos/psu-stewardship/etda/pulls/comments/54979545","id":54979545,"diff_hunk":"@@ -0,0 +1,120 @@\n+class SubmissionPresenter\n+  attr_reader :model,\n+              :submission_state\n+\n+  delegate :id,\n+           :title,\n+           :released_for_publication?,\n+           to: :model\n+\n+  def initialize(model)\n+    @model = model\n+    @submission_state = SubmissionStates::StateGenerator.state_for_name(model.status)\n+  end\n+\n+  def formatted_program_information\n+    \"#{model.program_name} #{model.degree.name} - #{formatted_semester} #{formatted_year}\"\n+  end\n+\n+  def delete_link(template)\n+    return '' if model.beyond_collecting_format_review_files? || model.format_review_notes.present?\n+\n+    template.content_tag(:span, class: 'delete-link') do\n+      template.link_to('[delete]', template.author_submission_path(model.id), class: 'text-danger', method: 'delete', confirm: 'Permanently delete this submission?', rel: 'nofollow')\n+    end\n+  end\n+\n+  def created_on\n+    model.created_at.strftime('%B %-e, %Y')\n+  end\n+\n+  def step_seven_status(_template)","path":"app/presenters/submission_presenter.rb","position":31,"original_position":31,"commit_id":"0ff57a5a93d43d18df28bdcd2de7837d4a65ce4a","original_commit_id":"0ff57a5a93d43d18df28bdcd2de7837d4a65ce4a","user":{"login":"hectorcorrea","id":568286,"avatar_url":"https://avatars.githubusercontent.com/u/568286?v=3","gravatar_id":"","url":"https://api.github.com/users/hectorcorrea","html_url":"https://github.com/hectorcorrea","followers_url":"https://api.github.com/users/hectorcorrea/followers","following_url":"https://api.github.com/users/hectorcorrea/following{/other_user}","gists_url":"https://api.github.com/users/hectorcorrea/gists{/gist_id}","starred_url":"https://api.github.com/users/hectorcorrea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hectorcorrea/subscriptions","organizations_url":"https://api.github.com/users/hectorcorrea/orgs","repos_url":"https://api.github.com/users/hectorcorrea/repos","events_url":"https://api.github.com/users/hectorcorrea/events{/privacy}","received_events_url":"https://api.github.com/users/hectorcorrea/received_events","type":"User","site_admin":false},"body":"Maybe this should be called `last_step_status` ? It sort of bugs me seeing `seven` on the method name but maybe it does not matter.","created_at":"2016-03-04T01:38:30Z","updated_at":"2016-03-04T01:38:30Z","html_url":"https://github.com/psu-stewardship/etda/pull/69#discussion_r54979545","pull_request_url":"https://api.github.com/repos/psu-stewardship/etda/pulls/69","_links":{"self":{"href":"https://api.github.com/repos/psu-stewardship/etda/pulls/comments/54979545"},"html":{"href":"https://github.com/psu-stewardship/etda/pull/69#discussion_r54979545"},"pull_request":{"href":"https://api.github.com/repos/psu-stewardship/etda/pulls/69"}}},"pull_request":{"url":"https://api.github.com/repos/psu-stewardship/etda/pulls/69","id":61068199,"html_url":"https://github.com/psu-stewardship/etda/pull/69","diff_url":"https://github.com/psu-stewardship/etda/pull/69.diff","patch_url":"https://github.com/psu-stewardship/etda/pull/69.patch","issue_url":"https://api.github.com/repos/psu-stewardship/etda/issues/69","number":69,"state":"open","locked":false,"title":"Adding in presenters per model.","user":{"login":"cam156","id":1599081,"avatar_url":"https://avatars.githubusercontent.com/u/1599081?v=3","gravatar_id":"","url":"https://api.github.com/users/cam156","html_url":"https://github.com/cam156","followers_url":"https://api.github.com/users/cam156/followers","following_url":"https://api.github.com/users/cam156/following{/other_user}","gists_url":"https://api.github.com/users/cam156/gists{/gist_id}","starred_url":"https://api.github.com/users/cam156/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cam156/subscriptions","organizations_url":"https://api.github.com/users/cam156/orgs","repos_url":"https://api.github.com/users/cam156/repos","events_url":"https://api.github.com/users/cam156/events{/privacy}","received_events_url":"https://api.github.com/users/cam156/received_events","type":"User","site_admin":false},"body":"Includes adding in artifacts to refactor the submission presenter\r\n\r\nI'm still unsure what to really call the ThinMint class.  It's a presenter factory Maybe?  Should it just be removed and use the helper for instantiating the AuthorPresenter?\r\n\r\nThis should be discussed before merging... ","created_at":"2016-02-29T12:06:52Z","updated_at":"2016-03-04T01:38:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"de22ef50bf0a6690e6f50d95e988ae88e8328c02","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/psu-stewardship/etda/pulls/69/commits","review_comments_url":"https://api.github.com/repos/psu-stewardship/etda/pulls/69/comments","review_comment_url":"https://api.github.com/repos/psu-stewardship/etda/pulls/comments{/number}","comments_url":"https://api.github.com/repos/psu-stewardship/etda/issues/69/comments","statuses_url":"https://api.github.com/repos/psu-stewardship/etda/statuses/0ff57a5a93d43d18df28bdcd2de7837d4a65ce4a","head":{"label":"psu-stewardship:refact_pres","ref":"refact_pres","sha":"0ff57a5a93d43d18df28bdcd2de7837d4a65ce4a","user":{"login":"psu-stewardship","id":653493,"avatar_url":"https://avatars.githubusercontent.com/u/653493?v=3","gravatar_id":"","url":"https://api.github.com/users/psu-stewardship","html_url":"https://github.com/psu-stewardship","followers_url":"https://api.github.com/users/psu-stewardship/followers","following_url":"https://api.github.com/users/psu-stewardship/following{/other_user}","gists_url":"https://api.github.com/users/psu-stewardship/gists{/gist_id}","starred_url":"https://api.github.com/users/psu-stewardship/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psu-stewardship/subscriptions","organizations_url":"https://api.github.com/users/psu-stewardship/orgs","repos_url":"https://api.github.com/users/psu-stewardship/repos","events_url":"https://api.github.com/users/psu-stewardship/events{/privacy}","received_events_url":"https://api.github.com/users/psu-stewardship/received_events","type":"Organization","site_admin":false},"repo":{"id":21366477,"name":"etda","full_name":"psu-stewardship/etda","owner":{"login":"psu-stewardship","id":653493,"avatar_url":"https://avatars.githubusercontent.com/u/653493?v=3","gravatar_id":"","url":"https://api.github.com/users/psu-stewardship","html_url":"https://github.com/psu-stewardship","followers_url":"https://api.github.com/users/psu-stewardship/followers","following_url":"https://api.github.com/users/psu-stewardship/following{/other_user}","gists_url":"https://api.github.com/users/psu-stewardship/gists{/gist_id}","starred_url":"https://api.github.com/users/psu-stewardship/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psu-stewardship/subscriptions","organizations_url":"https://api.github.com/users/psu-stewardship/orgs","repos_url":"https://api.github.com/users/psu-stewardship/repos","events_url":"https://api.github.com/users/psu-stewardship/events{/privacy}","received_events_url":"https://api.github.com/users/psu-stewardship/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/psu-stewardship/etda","description":"downloads","fork":false,"url":"https://api.github.com/repos/psu-stewardship/etda","forks_url":"https://api.github.com/repos/psu-stewardship/etda/forks","keys_url":"https://api.github.com/repos/psu-stewardship/etda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/psu-stewardship/etda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/psu-stewardship/etda/teams","hooks_url":"https://api.github.com/repos/psu-stewardship/etda/hooks","issue_events_url":"https://api.github.com/repos/psu-stewardship/etda/issues/events{/number}","events_url":"https://api.github.com/repos/psu-stewardship/etda/events","assignees_url":"https://api.github.com/repos/psu-stewardship/etda/assignees{/user}","branches_url":"https://api.github.com/repos/psu-stewardship/etda/branches{/branch}","tags_url":"https://api.github.com/repos/psu-stewardship/etda/tags","blobs_url":"https://api.github.com/repos/psu-stewardship/etda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/psu-stewardship/etda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/psu-stewardship/etda/git/refs{/sha}","trees_url":"https://api.github.com/repos/psu-stewardship/etda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/psu-stewardship/etda/statuses/{sha}","languages_url":"https://api.github.com/repos/psu-stewardship/etda/languages","stargazers_url":"https://api.github.com/repos/psu-stewardship/etda/stargazers","contributors_url":"https://api.github.com/repos/psu-stewardship/etda/contributors","subscribers_url":"https://api.github.com/repos/psu-stewardship/etda/subscribers","subscription_url":"https://api.github.com/repos/psu-stewardship/etda/subscription","commits_url":"https://api.github.com/repos/psu-stewardship/etda/commits{/sha}","git_commits_url":"https://api.github.com/repos/psu-stewardship/etda/git/commits{/sha}","comments_url":"https://api.github.com/repos/psu-stewardship/etda/comments{/number}","issue_comment_url":"https://api.github.com/repos/psu-stewardship/etda/issues/comments{/number}","contents_url":"https://api.github.com/repos/psu-stewardship/etda/contents/{+path}","compare_url":"https://api.github.com/repos/psu-stewardship/etda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/psu-stewardship/etda/merges","archive_url":"https://api.github.com/repos/psu-stewardship/etda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/psu-stewardship/etda/downloads","issues_url":"https://api.github.com/repos/psu-stewardship/etda/issues{/number}","pulls_url":"https://api.github.com/repos/psu-stewardship/etda/pulls{/number}","milestones_url":"https://api.github.com/repos/psu-stewardship/etda/milestones{/number}","notifications_url":"https://api.github.com/repos/psu-stewardship/etda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/psu-stewardship/etda/labels{/name}","releases_url":"https://api.github.com/repos/psu-stewardship/etda/releases{/id}","deployments_url":"https://api.github.com/repos/psu-stewardship/etda/deployments","created_at":"2014-06-30T21:28:15Z","updated_at":"2016-02-12T12:31:18Z","pushed_at":"2016-03-03T19:09:45Z","git_url":"git://github.com/psu-stewardship/etda.git","ssh_url":"git@github.com:psu-stewardship/etda.git","clone_url":"https://github.com/psu-stewardship/etda.git","svn_url":"https://github.com/psu-stewardship/etda","homepage":"","size":219870,"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":11,"forks":0,"open_issues":11,"watchers":1,"default_branch":"master"}},"base":{"label":"psu-stewardship:master","ref":"master","sha":"8c2404f7180713a5b8cf5568f36185b78e570a52","user":{"login":"psu-stewardship","id":653493,"avatar_url":"https://avatars.githubusercontent.com/u/653493?v=3","gravatar_id":"","url":"https://api.github.com/users/psu-stewardship","html_url":"https://github.com/psu-stewardship","followers_url":"https://api.github.com/users/psu-stewardship/followers","following_url":"https://api.github.com/users/psu-stewardship/following{/other_user}","gists_url":"https://api.github.com/users/psu-stewardship/gists{/gist_id}","starred_url":"https://api.github.com/users/psu-stewardship/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psu-stewardship/subscriptions","organizations_url":"https://api.github.com/users/psu-stewardship/orgs","repos_url":"https://api.github.com/users/psu-stewardship/repos","events_url":"https://api.github.com/users/psu-stewardship/events{/privacy}","received_events_url":"https://api.github.com/users/psu-stewardship/received_events","type":"Organization","site_admin":false},"repo":{"id":21366477,"name":"etda","full_name":"psu-stewardship/etda","owner":{"login":"psu-stewardship","id":653493,"avatar_url":"https://avatars.githubusercontent.com/u/653493?v=3","gravatar_id":"","url":"https://api.github.com/users/psu-stewardship","html_url":"https://github.com/psu-stewardship","followers_url":"https://api.github.com/users/psu-stewardship/followers","following_url":"https://api.github.com/users/psu-stewardship/following{/other_user}","gists_url":"https://api.github.com/users/psu-stewardship/gists{/gist_id}","starred_url":"https://api.github.com/users/psu-stewardship/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psu-stewardship/subscriptions","organizations_url":"https://api.github.com/users/psu-stewardship/orgs","repos_url":"https://api.github.com/users/psu-stewardship/repos","events_url":"https://api.github.com/users/psu-stewardship/events{/privacy}","received_events_url":"https://api.github.com/users/psu-stewardship/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/psu-stewardship/etda","description":"downloads","fork":false,"url":"https://api.github.com/repos/psu-stewardship/etda","forks_url":"https://api.github.com/repos/psu-stewardship/etda/forks","keys_url":"https://api.github.com/repos/psu-stewardship/etda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/psu-stewardship/etda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/psu-stewardship/etda/teams","hooks_url":"https://api.github.com/repos/psu-stewardship/etda/hooks","issue_events_url":"https://api.github.com/repos/psu-stewardship/etda/issues/events{/number}","events_url":"https://api.github.com/repos/psu-stewardship/etda/events","assignees_url":"https://api.github.com/repos/psu-stewardship/etda/assignees{/user}","branches_url":"https://api.github.com/repos/psu-stewardship/etda/branches{/branch}","tags_url":"https://api.github.com/repos/psu-stewardship/etda/tags","blobs_url":"https://api.github.com/repos/psu-stewardship/etda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/psu-stewardship/etda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/psu-stewardship/etda/git/refs{/sha}","trees_url":"https://api.github.com/repos/psu-stewardship/etda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/psu-stewardship/etda/statuses/{sha}","languages_url":"https://api.github.com/repos/psu-stewardship/etda/languages","stargazers_url":"https://api.github.com/repos/psu-stewardship/etda/stargazers","contributors_url":"https://api.github.com/repos/psu-stewardship/etda/contributors","subscribers_url":"https://api.github.com/repos/psu-stewardship/etda/subscribers","subscription_url":"https://api.github.com/repos/psu-stewardship/etda/subscription","commits_url":"https://api.github.com/repos/psu-stewardship/etda/commits{/sha}","git_commits_url":"https://api.github.com/repos/psu-stewardship/etda/git/commits{/sha}","comments_url":"https://api.github.com/repos/psu-stewardship/etda/comments{/number}","issue_comment_url":"https://api.github.com/repos/psu-stewardship/etda/issues/comments{/number}","contents_url":"https://api.github.com/repos/psu-stewardship/etda/contents/{+path}","compare_url":"https://api.github.com/repos/psu-stewardship/etda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/psu-stewardship/etda/merges","archive_url":"https://api.github.com/repos/psu-stewardship/etda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/psu-stewardship/etda/downloads","issues_url":"https://api.github.com/repos/psu-stewardship/etda/issues{/number}","pulls_url":"https://api.github.com/repos/psu-stewardship/etda/pulls{/number}","milestones_url":"https://api.github.com/repos/psu-stewardship/etda/milestones{/number}","notifications_url":"https://api.github.com/repos/psu-stewardship/etda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/psu-stewardship/etda/labels{/name}","releases_url":"https://api.github.com/repos/psu-stewardship/etda/releases{/id}","deployments_url":"https://api.github.com/repos/psu-stewardship/etda/deployments","created_at":"2014-06-30T21:28:15Z","updated_at":"2016-02-12T12:31:18Z","pushed_at":"2016-03-03T19:09:45Z","git_url":"git://github.com/psu-stewardship/etda.git","ssh_url":"git@github.com:psu-stewardship/etda.git","clone_url":"https://github.com/psu-stewardship/etda.git","svn_url":"https://github.com/psu-stewardship/etda","homepage":"","size":219870,"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":11,"forks":0,"open_issues":11,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/psu-stewardship/etda/pulls/69"},"html":{"href":"https://github.com/psu-stewardship/etda/pull/69"},"issue":{"href":"https://api.github.com/repos/psu-stewardship/etda/issues/69"},"comments":{"href":"https://api.github.com/repos/psu-stewardship/etda/issues/69/comments"},"review_comments":{"href":"https://api.github.com/repos/psu-stewardship/etda/pulls/69/comments"},"review_comment":{"href":"https://api.github.com/repos/psu-stewardship/etda/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/psu-stewardship/etda/pulls/69/commits"},"statuses":{"href":"https://api.github.com/repos/psu-stewardship/etda/statuses/0ff57a5a93d43d18df28bdcd2de7837d4a65ce4a"}}}}