{"action":"created","comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/32117573","id":32117573,"diff_hunk":"@@ -83,9 +83,13 @@ var Log = function(params) {\n         return ret;\n     });\n \n-    //helper function to strip the leading slash for file or folder in log template\n-    self.stripLeadingSlash = function(path){\n-        return path.replace(/^\\//, '');\n+    //helper function to strip the slash for file or folder in log template\n+    self.stripSlash = function(path, name){","path":"website/static/js/logFeed.js","position":8,"original_position":8,"commit_id":"e7a0584ceae7ca62fb76b3f8264180d299e3ec8d","original_commit_id":"7908e5452896f1e527ee9c4cfb4319b8a4806507","user":{"login":"brianjgeiger","id":6599111,"avatar_url":"https://avatars.githubusercontent.com/u/6599111?v=3","gravatar_id":"","url":"https://api.github.com/users/brianjgeiger","html_url":"https://github.com/brianjgeiger","followers_url":"https://api.github.com/users/brianjgeiger/followers","following_url":"https://api.github.com/users/brianjgeiger/following{/other_user}","gists_url":"https://api.github.com/users/brianjgeiger/gists{/gist_id}","starred_url":"https://api.github.com/users/brianjgeiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianjgeiger/subscriptions","organizations_url":"https://api.github.com/users/brianjgeiger/orgs","repos_url":"https://api.github.com/users/brianjgeiger/repos","events_url":"https://api.github.com/users/brianjgeiger/events{/privacy}","received_events_url":"https://api.github.com/users/brianjgeiger/received_events","type":"User","site_admin":false},"body":"*Can* a filename end in or even contain a slash?","created_at":"2015-06-10T13:40:03Z","updated_at":"2015-06-10T13:40:03Z","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/2772#discussion_r32117573","pull_request_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2772","_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/32117573"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/2772#discussion_r32117573"},"pull_request":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2772"}}},"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2772","id":35863631,"html_url":"https://github.com/CenterForOpenScience/osf.io/pull/2772","diff_url":"https://github.com/CenterForOpenScience/osf.io/pull/2772.diff","patch_url":"https://github.com/CenterForOpenScience/osf.io/pull/2772.patch","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2772","number":2772,"state":"open","locked":false,"title":"remove the end slash of folder","user":{"login":"chennan47","id":4974056,"avatar_url":"https://avatars.githubusercontent.com/u/4974056?v=3","gravatar_id":"","url":"https://api.github.com/users/chennan47","html_url":"https://github.com/chennan47","followers_url":"https://api.github.com/users/chennan47/followers","following_url":"https://api.github.com/users/chennan47/following{/other_user}","gists_url":"https://api.github.com/users/chennan47/gists{/gist_id}","starred_url":"https://api.github.com/users/chennan47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chennan47/subscriptions","organizations_url":"https://api.github.com/users/chennan47/orgs","repos_url":"https://api.github.com/users/chennan47/repos","events_url":"https://api.github.com/users/chennan47/events{/privacy}","received_events_url":"https://api.github.com/users/chennan47/received_events","type":"User","site_admin":false},"body":"<b>Purpose</b>\r\nRemove the end slash of folder in logs. Also improve the language to clarify when user deal with files in OSF Storage. Solves https://github.com/CenterForOpenScience/osf.io/issues/2763.\r\n\r\n\r\n<b>Changes</b>\r\nBefore:\r\n![image](https://cloud.githubusercontent.com/assets/4974056/7733738/1a4657b8-feff-11e4-85c6-67f2bc49e3b0.png)\r\n\r\nAfter:\r\n![screen shot 2015-05-20 at 2 49 58 pm](https://cloud.githubusercontent.com/assets/4974056/7733791/85fe7864-feff-11e4-975b-1012fd7e2e79.png)\r\n","created_at":"2015-05-20T18:50:18Z","updated_at":"2015-06-10T13:40:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"649bd46de73ebb9a2570c362d097d06cc96a827f","assignee":null,"milestone":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones/36","html_url":"https://github.com/CenterForOpenScience/osf.io/milestones/0.39.0","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones/36/labels","id":1141758,"number":36,"title":"0.39.0","description":"PR's Sprint Release ..... How many can we get in? : - )","creator":{"login":"lbanner","id":2964829,"avatar_url":"https://avatars.githubusercontent.com/u/2964829?v=3","gravatar_id":"","url":"https://api.github.com/users/lbanner","html_url":"https://github.com/lbanner","followers_url":"https://api.github.com/users/lbanner/followers","following_url":"https://api.github.com/users/lbanner/following{/other_user}","gists_url":"https://api.github.com/users/lbanner/gists{/gist_id}","starred_url":"https://api.github.com/users/lbanner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbanner/subscriptions","organizations_url":"https://api.github.com/users/lbanner/orgs","repos_url":"https://api.github.com/users/lbanner/repos","events_url":"https://api.github.com/users/lbanner/events{/privacy}","received_events_url":"https://api.github.com/users/lbanner/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":26,"state":"open","created_at":"2015-05-31T16:52:13Z","updated_at":"2015-06-10T04:14:27Z","due_on":"2015-06-12T04:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2772/commits","review_comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2772/comments","review_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2772/comments","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/e7a0584ceae7ca62fb76b3f8264180d299e3ec8d","head":{"label":"chennan47:hotfix/folder_log","ref":"hotfix/folder_log","sha":"e7a0584ceae7ca62fb76b3f8264180d299e3ec8d","user":{"login":"chennan47","id":4974056,"avatar_url":"https://avatars.githubusercontent.com/u/4974056?v=3","gravatar_id":"","url":"https://api.github.com/users/chennan47","html_url":"https://github.com/chennan47","followers_url":"https://api.github.com/users/chennan47/followers","following_url":"https://api.github.com/users/chennan47/following{/other_user}","gists_url":"https://api.github.com/users/chennan47/gists{/gist_id}","starred_url":"https://api.github.com/users/chennan47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chennan47/subscriptions","organizations_url":"https://api.github.com/users/chennan47/orgs","repos_url":"https://api.github.com/users/chennan47/repos","events_url":"https://api.github.com/users/chennan47/events{/privacy}","received_events_url":"https://api.github.com/users/chennan47/received_events","type":"User","site_admin":false},"repo":{"id":26927567,"name":"osf.io","full_name":"chennan47/osf.io","owner":{"login":"chennan47","id":4974056,"avatar_url":"https://avatars.githubusercontent.com/u/4974056?v=3","gravatar_id":"","url":"https://api.github.com/users/chennan47","html_url":"https://github.com/chennan47","followers_url":"https://api.github.com/users/chennan47/followers","following_url":"https://api.github.com/users/chennan47/following{/other_user}","gists_url":"https://api.github.com/users/chennan47/gists{/gist_id}","starred_url":"https://api.github.com/users/chennan47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chennan47/subscriptions","organizations_url":"https://api.github.com/users/chennan47/orgs","repos_url":"https://api.github.com/users/chennan47/repos","events_url":"https://api.github.com/users/chennan47/events{/privacy}","received_events_url":"https://api.github.com/users/chennan47/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chennan47/osf.io","description":"Facilitating Open Science","fork":true,"url":"https://api.github.com/repos/chennan47/osf.io","forks_url":"https://api.github.com/repos/chennan47/osf.io/forks","keys_url":"https://api.github.com/repos/chennan47/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chennan47/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chennan47/osf.io/teams","hooks_url":"https://api.github.com/repos/chennan47/osf.io/hooks","issue_events_url":"https://api.github.com/repos/chennan47/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/chennan47/osf.io/events","assignees_url":"https://api.github.com/repos/chennan47/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/chennan47/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/chennan47/osf.io/tags","blobs_url":"https://api.github.com/repos/chennan47/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chennan47/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chennan47/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/chennan47/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chennan47/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/chennan47/osf.io/languages","stargazers_url":"https://api.github.com/repos/chennan47/osf.io/stargazers","contributors_url":"https://api.github.com/repos/chennan47/osf.io/contributors","subscribers_url":"https://api.github.com/repos/chennan47/osf.io/subscribers","subscription_url":"https://api.github.com/repos/chennan47/osf.io/subscription","commits_url":"https://api.github.com/repos/chennan47/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/chennan47/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/chennan47/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/chennan47/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/chennan47/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/chennan47/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chennan47/osf.io/merges","archive_url":"https://api.github.com/repos/chennan47/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chennan47/osf.io/downloads","issues_url":"https://api.github.com/repos/chennan47/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/chennan47/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/chennan47/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/chennan47/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chennan47/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/chennan47/osf.io/releases{/id}","created_at":"2014-11-20T19:12:43Z","updated_at":"2015-05-21T19:36:54Z","pushed_at":"2015-06-10T12:57:20Z","git_url":"git://github.com/chennan47/osf.io.git","ssh_url":"git@github.com:chennan47/osf.io.git","clone_url":"https://github.com/chennan47/osf.io.git","svn_url":"https://github.com/chennan47/osf.io","homepage":"http://osf.io","size":92945,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"CenterForOpenScience:master","ref":"master","sha":"d71f4ea41569abb505639bf279756e136cf42622","user":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"repo":{"id":10199599,"name":"osf.io","full_name":"CenterForOpenScience/osf.io","owner":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CenterForOpenScience/osf.io","description":"Facilitating Open Science","fork":false,"url":"https://api.github.com/repos/CenterForOpenScience/osf.io","forks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/forks","keys_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/teams","hooks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/hooks","issue_events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/events","assignees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/tags","blobs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/languages","stargazers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/stargazers","contributors_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contributors","subscribers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscribers","subscription_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscription","commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/merges","archive_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/downloads","issues_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/releases{/id}","created_at":"2013-05-21T15:53:37Z","updated_at":"2015-06-10T00:11:28Z","pushed_at":"2015-06-10T13:28:49Z","git_url":"git://github.com/CenterForOpenScience/osf.io.git","ssh_url":"git@github.com:CenterForOpenScience/osf.io.git","clone_url":"https://github.com/CenterForOpenScience/osf.io.git","svn_url":"https://github.com/CenterForOpenScience/osf.io","homepage":"http://osf.io","size":207127,"stargazers_count":110,"watchers_count":110,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":97,"mirror_url":null,"open_issues_count":435,"forks":97,"open_issues":435,"watchers":110,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2772"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/2772"},"issue":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2772"},"comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2772/comments"},"review_comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2772/comments"},"review_comment":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2772/commits"},"statuses":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/e7a0584ceae7ca62fb76b3f8264180d299e3ec8d"}}}}