{"action":"created","comment":{"url":"https://api.github.com/repos/brandenclark/code_review/pulls/comments/176446096","pull_request_review_id":106149250,"id":176446096,"diff_hunk":"@@ -0,0 +1,50 @@\n+<%inherit file=\"homepage/templates/base.htm\" />\n+\n+<%block name=\"menu\">\n+    <%! from catalog import models as cmod %>\n+    <ul class=\"nav navbar-nav\">\n+      <li><a href=\"/homepage/\">Home</a></li>\n+      <li><a href=\"/homepage/about\">About</a></li>\n+      <li><a href=\"/homepage/contact\">Contact</a></li>\n+      <li><a href=\"/homepage/terms\">Terms</a></li>\n+      <li><a href=\"/homepage/faq\">FAQ</a></li>\n+      <li class=\" ${ 'active' if request.dmp.page =='index' else '' } \"><a href=\"/catalog/\">View Products</a></li>\n+    </ul>\n+</%block>\n+\n+<%block name=\"left\">\n+<div  class=\"cat_list\">\n+  <ul>\n+    <li id=\"content\" class=\"${ 'active cat_list_item' if type == '' else 'cat_list_item' }\">\n+      <a href=\"/catalog/index/\">All Categories</a>\n+    </li>\n+    %for c in cmod.Category.objects.all():\n+    <li class=\"${ 'active cat_list_item' if type == c.name else 'cat_list_item' }\">\n+      <a href=${ \"/catalog/index/\" + str(c.id) }>${ c.name }</a>\n+    </li>\n+    %endfor\n+  </ul>\n+</div>\n+</%block>\n+\n+<%block name=\"right\">\n+  <!-- for loop through request.last_five to print the thumbnails -->\n+  <h2 id=\"recent_title\">Recently viewed:</h2>\n+  <ol>\n+    %for p in [p for p in request.last_five if p!= product ][:5]:","path":"branden/app_base.htm","position":34,"original_position":34,"commit_id":"41a1f3ab44e8df1ca6e522e655fe28db274fabf4","original_commit_id":"41a1f3ab44e8df1ca6e522e655fe28db274fabf4","user":{"login":"okei2","id":32465492,"avatar_url":"https://avatars2.githubusercontent.com/u/32465492?v=4","gravatar_id":"","url":"https://api.github.com/users/okei2","html_url":"https://github.com/okei2","followers_url":"https://api.github.com/users/okei2/followers","following_url":"https://api.github.com/users/okei2/following{/other_user}","gists_url":"https://api.github.com/users/okei2/gists{/gist_id}","starred_url":"https://api.github.com/users/okei2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okei2/subscriptions","organizations_url":"https://api.github.com/users/okei2/orgs","repos_url":"https://api.github.com/users/okei2/repos","events_url":"https://api.github.com/users/okei2/events{/privacy}","received_events_url":"https://api.github.com/users/okei2/received_events","type":"User","site_admin":false},"body":"Just a personal preference, but I would put this, \"[p for p in request.last_five if p!= product ][:5]:\" in the history.py","created_at":"2018-03-22T14:44:48Z","updated_at":"2018-03-22T14:44:48Z","html_url":"https://github.com/brandenclark/code_review/pull/2#discussion_r176446096","pull_request_url":"https://api.github.com/repos/brandenclark/code_review/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/brandenclark/code_review/pulls/comments/176446096"},"html":{"href":"https://github.com/brandenclark/code_review/pull/2#discussion_r176446096"},"pull_request":{"href":"https://api.github.com/repos/brandenclark/code_review/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/brandenclark/code_review/pulls/2","id":176790634,"html_url":"https://github.com/brandenclark/code_review/pull/2","diff_url":"https://github.com/brandenclark/code_review/pull/2.diff","patch_url":"https://github.com/brandenclark/code_review/pull/2.patch","issue_url":"https://api.github.com/repos/brandenclark/code_review/issues/2","number":2,"state":"open","locked":false,"title":"Added Branden\"s files","user":{"login":"brandenclark","id":32396849,"avatar_url":"https://avatars2.githubusercontent.com/u/32396849?v=4","gravatar_id":"","url":"https://api.github.com/users/brandenclark","html_url":"https://github.com/brandenclark","followers_url":"https://api.github.com/users/brandenclark/followers","following_url":"https://api.github.com/users/brandenclark/following{/other_user}","gists_url":"https://api.github.com/users/brandenclark/gists{/gist_id}","starred_url":"https://api.github.com/users/brandenclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandenclark/subscriptions","organizations_url":"https://api.github.com/users/brandenclark/orgs","repos_url":"https://api.github.com/users/brandenclark/repos","events_url":"https://api.github.com/users/brandenclark/events{/privacy}","received_events_url":"https://api.github.com/users/brandenclark/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-22T14:11:18Z","updated_at":"2018-03-22T14:44:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cfcdf32f16b7ed15c2f0facd95fe9c4ad1ecdd91","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/brandenclark/code_review/pulls/2/commits","review_comments_url":"https://api.github.com/repos/brandenclark/code_review/pulls/2/comments","review_comment_url":"https://api.github.com/repos/brandenclark/code_review/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brandenclark/code_review/issues/2/comments","statuses_url":"https://api.github.com/repos/brandenclark/code_review/statuses/41a1f3ab44e8df1ca6e522e655fe28db274fabf4","head":{"label":"brandenclark:branden","ref":"branden","sha":"41a1f3ab44e8df1ca6e522e655fe28db274fabf4","user":{"login":"brandenclark","id":32396849,"avatar_url":"https://avatars2.githubusercontent.com/u/32396849?v=4","gravatar_id":"","url":"https://api.github.com/users/brandenclark","html_url":"https://github.com/brandenclark","followers_url":"https://api.github.com/users/brandenclark/followers","following_url":"https://api.github.com/users/brandenclark/following{/other_user}","gists_url":"https://api.github.com/users/brandenclark/gists{/gist_id}","starred_url":"https://api.github.com/users/brandenclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandenclark/subscriptions","organizations_url":"https://api.github.com/users/brandenclark/orgs","repos_url":"https://api.github.com/users/brandenclark/repos","events_url":"https://api.github.com/users/brandenclark/events{/privacy}","received_events_url":"https://api.github.com/users/brandenclark/received_events","type":"User","site_admin":false},"repo":{"id":126207012,"name":"code_review","full_name":"brandenclark/code_review","owner":{"login":"brandenclark","id":32396849,"avatar_url":"https://avatars2.githubusercontent.com/u/32396849?v=4","gravatar_id":"","url":"https://api.github.com/users/brandenclark","html_url":"https://github.com/brandenclark","followers_url":"https://api.github.com/users/brandenclark/followers","following_url":"https://api.github.com/users/brandenclark/following{/other_user}","gists_url":"https://api.github.com/users/brandenclark/gists{/gist_id}","starred_url":"https://api.github.com/users/brandenclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandenclark/subscriptions","organizations_url":"https://api.github.com/users/brandenclark/orgs","repos_url":"https://api.github.com/users/brandenclark/repos","events_url":"https://api.github.com/users/brandenclark/events{/privacy}","received_events_url":"https://api.github.com/users/brandenclark/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brandenclark/code_review","description":null,"fork":false,"url":"https://api.github.com/repos/brandenclark/code_review","forks_url":"https://api.github.com/repos/brandenclark/code_review/forks","keys_url":"https://api.github.com/repos/brandenclark/code_review/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brandenclark/code_review/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brandenclark/code_review/teams","hooks_url":"https://api.github.com/repos/brandenclark/code_review/hooks","issue_events_url":"https://api.github.com/repos/brandenclark/code_review/issues/events{/number}","events_url":"https://api.github.com/repos/brandenclark/code_review/events","assignees_url":"https://api.github.com/repos/brandenclark/code_review/assignees{/user}","branches_url":"https://api.github.com/repos/brandenclark/code_review/branches{/branch}","tags_url":"https://api.github.com/repos/brandenclark/code_review/tags","blobs_url":"https://api.github.com/repos/brandenclark/code_review/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brandenclark/code_review/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brandenclark/code_review/git/refs{/sha}","trees_url":"https://api.github.com/repos/brandenclark/code_review/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brandenclark/code_review/statuses/{sha}","languages_url":"https://api.github.com/repos/brandenclark/code_review/languages","stargazers_url":"https://api.github.com/repos/brandenclark/code_review/stargazers","contributors_url":"https://api.github.com/repos/brandenclark/code_review/contributors","subscribers_url":"https://api.github.com/repos/brandenclark/code_review/subscribers","subscription_url":"https://api.github.com/repos/brandenclark/code_review/subscription","commits_url":"https://api.github.com/repos/brandenclark/code_review/commits{/sha}","git_commits_url":"https://api.github.com/repos/brandenclark/code_review/git/commits{/sha}","comments_url":"https://api.github.com/repos/brandenclark/code_review/comments{/number}","issue_comment_url":"https://api.github.com/repos/brandenclark/code_review/issues/comments{/number}","contents_url":"https://api.github.com/repos/brandenclark/code_review/contents/{+path}","compare_url":"https://api.github.com/repos/brandenclark/code_review/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brandenclark/code_review/merges","archive_url":"https://api.github.com/repos/brandenclark/code_review/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brandenclark/code_review/downloads","issues_url":"https://api.github.com/repos/brandenclark/code_review/issues{/number}","pulls_url":"https://api.github.com/repos/brandenclark/code_review/pulls{/number}","milestones_url":"https://api.github.com/repos/brandenclark/code_review/milestones{/number}","notifications_url":"https://api.github.com/repos/brandenclark/code_review/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brandenclark/code_review/labels{/name}","releases_url":"https://api.github.com/repos/brandenclark/code_review/releases{/id}","deployments_url":"https://api.github.com/repos/brandenclark/code_review/deployments","created_at":"2018-03-21T16:16:00Z","updated_at":"2018-03-22T14:24:47Z","pushed_at":"2018-03-22T14:39:07Z","git_url":"git://github.com/brandenclark/code_review.git","ssh_url":"git@github.com:brandenclark/code_review.git","clone_url":"https://github.com/brandenclark/code_review.git","svn_url":"https://github.com/brandenclark/code_review","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"brandenclark:master","ref":"master","sha":"f446181bb71dab13d0a6278c1585bdeb2734a046","user":{"login":"brandenclark","id":32396849,"avatar_url":"https://avatars2.githubusercontent.com/u/32396849?v=4","gravatar_id":"","url":"https://api.github.com/users/brandenclark","html_url":"https://github.com/brandenclark","followers_url":"https://api.github.com/users/brandenclark/followers","following_url":"https://api.github.com/users/brandenclark/following{/other_user}","gists_url":"https://api.github.com/users/brandenclark/gists{/gist_id}","starred_url":"https://api.github.com/users/brandenclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandenclark/subscriptions","organizations_url":"https://api.github.com/users/brandenclark/orgs","repos_url":"https://api.github.com/users/brandenclark/repos","events_url":"https://api.github.com/users/brandenclark/events{/privacy}","received_events_url":"https://api.github.com/users/brandenclark/received_events","type":"User","site_admin":false},"repo":{"id":126207012,"name":"code_review","full_name":"brandenclark/code_review","owner":{"login":"brandenclark","id":32396849,"avatar_url":"https://avatars2.githubusercontent.com/u/32396849?v=4","gravatar_id":"","url":"https://api.github.com/users/brandenclark","html_url":"https://github.com/brandenclark","followers_url":"https://api.github.com/users/brandenclark/followers","following_url":"https://api.github.com/users/brandenclark/following{/other_user}","gists_url":"https://api.github.com/users/brandenclark/gists{/gist_id}","starred_url":"https://api.github.com/users/brandenclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandenclark/subscriptions","organizations_url":"https://api.github.com/users/brandenclark/orgs","repos_url":"https://api.github.com/users/brandenclark/repos","events_url":"https://api.github.com/users/brandenclark/events{/privacy}","received_events_url":"https://api.github.com/users/brandenclark/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brandenclark/code_review","description":null,"fork":false,"url":"https://api.github.com/repos/brandenclark/code_review","forks_url":"https://api.github.com/repos/brandenclark/code_review/forks","keys_url":"https://api.github.com/repos/brandenclark/code_review/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brandenclark/code_review/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brandenclark/code_review/teams","hooks_url":"https://api.github.com/repos/brandenclark/code_review/hooks","issue_events_url":"https://api.github.com/repos/brandenclark/code_review/issues/events{/number}","events_url":"https://api.github.com/repos/brandenclark/code_review/events","assignees_url":"https://api.github.com/repos/brandenclark/code_review/assignees{/user}","branches_url":"https://api.github.com/repos/brandenclark/code_review/branches{/branch}","tags_url":"https://api.github.com/repos/brandenclark/code_review/tags","blobs_url":"https://api.github.com/repos/brandenclark/code_review/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brandenclark/code_review/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brandenclark/code_review/git/refs{/sha}","trees_url":"https://api.github.com/repos/brandenclark/code_review/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brandenclark/code_review/statuses/{sha}","languages_url":"https://api.github.com/repos/brandenclark/code_review/languages","stargazers_url":"https://api.github.com/repos/brandenclark/code_review/stargazers","contributors_url":"https://api.github.com/repos/brandenclark/code_review/contributors","subscribers_url":"https://api.github.com/repos/brandenclark/code_review/subscribers","subscription_url":"https://api.github.com/repos/brandenclark/code_review/subscription","commits_url":"https://api.github.com/repos/brandenclark/code_review/commits{/sha}","git_commits_url":"https://api.github.com/repos/brandenclark/code_review/git/commits{/sha}","comments_url":"https://api.github.com/repos/brandenclark/code_review/comments{/number}","issue_comment_url":"https://api.github.com/repos/brandenclark/code_review/issues/comments{/number}","contents_url":"https://api.github.com/repos/brandenclark/code_review/contents/{+path}","compare_url":"https://api.github.com/repos/brandenclark/code_review/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brandenclark/code_review/merges","archive_url":"https://api.github.com/repos/brandenclark/code_review/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brandenclark/code_review/downloads","issues_url":"https://api.github.com/repos/brandenclark/code_review/issues{/number}","pulls_url":"https://api.github.com/repos/brandenclark/code_review/pulls{/number}","milestones_url":"https://api.github.com/repos/brandenclark/code_review/milestones{/number}","notifications_url":"https://api.github.com/repos/brandenclark/code_review/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brandenclark/code_review/labels{/name}","releases_url":"https://api.github.com/repos/brandenclark/code_review/releases{/id}","deployments_url":"https://api.github.com/repos/brandenclark/code_review/deployments","created_at":"2018-03-21T16:16:00Z","updated_at":"2018-03-22T14:24:47Z","pushed_at":"2018-03-22T14:39:07Z","git_url":"git://github.com/brandenclark/code_review.git","ssh_url":"git@github.com:brandenclark/code_review.git","clone_url":"https://github.com/brandenclark/code_review.git","svn_url":"https://github.com/brandenclark/code_review","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brandenclark/code_review/pulls/2"},"html":{"href":"https://github.com/brandenclark/code_review/pull/2"},"issue":{"href":"https://api.github.com/repos/brandenclark/code_review/issues/2"},"comments":{"href":"https://api.github.com/repos/brandenclark/code_review/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/brandenclark/code_review/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/brandenclark/code_review/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brandenclark/code_review/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/brandenclark/code_review/statuses/41a1f3ab44e8df1ca6e522e655fe28db274fabf4"}},"author_association":"OWNER"}}
{"actor":{"display_login":"okei2"}}