{"action":"created","comment":{"url":"https://api.github.com/repos/haiwen/seahub/pulls/comments/43342860","id":43342860,"diff_hunk":"@@ -146,6 +146,8 @@\n             <% } %>\n             <a class=\"op-link sf2-icon-history\" href=\"<%= site_root %>repo/history/<%- repo_id %>/\" title=\"{% trans 'History' %}\"></a>\n         </div>\n+    <% } else { %>\n+        <a class=\"op-link sf2-icon-trash fright\" href=\"<%= site_root %>dir/recycle/<%- repo_id %>/?dir_path=<% print(encodeURIComponent(path)); %>\" title=\"{% trans 'Trash' %}\"></a>","path":"seahub/templates/js/templates.html","position":5,"original_position":5,"commit_id":"72738ddc20134b9ccd643c3c17fb916ef2df4f05","original_commit_id":"72738ddc20134b9ccd643c3c17fb916ef2df4f05","user":{"login":"llj","id":2093566,"avatar_url":"https://avatars.githubusercontent.com/u/2093566?v=3","gravatar_id":"","url":"https://api.github.com/users/llj","html_url":"https://github.com/llj","followers_url":"https://api.github.com/users/llj/followers","following_url":"https://api.github.com/users/llj/following{/other_user}","gists_url":"https://api.github.com/users/llj/gists{/gist_id}","starred_url":"https://api.github.com/users/llj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llj/subscriptions","organizations_url":"https://api.github.com/users/llj/orgs","repos_url":"https://api.github.com/users/llj/repos","events_url":"https://api.github.com/users/llj/events{/privacy}","received_events_url":"https://api.github.com/users/llj/received_events","type":"User","site_admin":false},"body":"user_perm 的判断还是要加上。","created_at":"2015-10-29T02:27:55Z","updated_at":"2015-10-29T02:27:55Z","html_url":"https://github.com/haiwen/seahub/pull/872#discussion_r43342860","pull_request_url":"https://api.github.com/repos/haiwen/seahub/pulls/872","_links":{"self":{"href":"https://api.github.com/repos/haiwen/seahub/pulls/comments/43342860"},"html":{"href":"https://github.com/haiwen/seahub/pull/872#discussion_r43342860"},"pull_request":{"href":"https://api.github.com/repos/haiwen/seahub/pulls/872"}}},"pull_request":{"url":"https://api.github.com/repos/haiwen/seahub/pulls/872","id":48826198,"html_url":"https://github.com/haiwen/seahub/pull/872","diff_url":"https://github.com/haiwen/seahub/pull/872.diff","patch_url":"https://github.com/haiwen/seahub/pull/872.patch","issue_url":"https://api.github.com/repos/haiwen/seahub/issues/872","number":872,"state":"open","locked":false,"title":"add trash page for folder & update indentation","user":{"login":"imwhatiam","id":3793639,"avatar_url":"https://avatars.githubusercontent.com/u/3793639?v=3","gravatar_id":"","url":"https://api.github.com/users/imwhatiam","html_url":"https://github.com/imwhatiam","followers_url":"https://api.github.com/users/imwhatiam/followers","following_url":"https://api.github.com/users/imwhatiam/following{/other_user}","gists_url":"https://api.github.com/users/imwhatiam/gists{/gist_id}","starred_url":"https://api.github.com/users/imwhatiam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imwhatiam/subscriptions","organizations_url":"https://api.github.com/users/imwhatiam/orgs","repos_url":"https://api.github.com/users/imwhatiam/repos","events_url":"https://api.github.com/users/imwhatiam/events{/privacy}","received_events_url":"https://api.github.com/users/imwhatiam/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-27T03:52:24Z","updated_at":"2015-10-29T02:27:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"08794cb08eba95bd4e53c1da1a4186c562b26403","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/haiwen/seahub/pulls/872/commits","review_comments_url":"https://api.github.com/repos/haiwen/seahub/pulls/872/comments","review_comment_url":"https://api.github.com/repos/haiwen/seahub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/haiwen/seahub/issues/872/comments","statuses_url":"https://api.github.com/repos/haiwen/seahub/statuses/72738ddc20134b9ccd643c3c17fb916ef2df4f05","head":{"label":"haiwen:trash","ref":"trash","sha":"72738ddc20134b9ccd643c3c17fb916ef2df4f05","user":{"login":"haiwen","id":1948782,"avatar_url":"https://avatars.githubusercontent.com/u/1948782?v=3","gravatar_id":"","url":"https://api.github.com/users/haiwen","html_url":"https://github.com/haiwen","followers_url":"https://api.github.com/users/haiwen/followers","following_url":"https://api.github.com/users/haiwen/following{/other_user}","gists_url":"https://api.github.com/users/haiwen/gists{/gist_id}","starred_url":"https://api.github.com/users/haiwen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haiwen/subscriptions","organizations_url":"https://api.github.com/users/haiwen/orgs","repos_url":"https://api.github.com/users/haiwen/repos","events_url":"https://api.github.com/users/haiwen/events{/privacy}","received_events_url":"https://api.github.com/users/haiwen/received_events","type":"Organization","site_admin":false},"repo":{"id":6556815,"name":"seahub","full_name":"haiwen/seahub","owner":{"login":"haiwen","id":1948782,"avatar_url":"https://avatars.githubusercontent.com/u/1948782?v=3","gravatar_id":"","url":"https://api.github.com/users/haiwen","html_url":"https://github.com/haiwen","followers_url":"https://api.github.com/users/haiwen/followers","following_url":"https://api.github.com/users/haiwen/following{/other_user}","gists_url":"https://api.github.com/users/haiwen/gists{/gist_id}","starred_url":"https://api.github.com/users/haiwen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haiwen/subscriptions","organizations_url":"https://api.github.com/users/haiwen/orgs","repos_url":"https://api.github.com/users/haiwen/repos","events_url":"https://api.github.com/users/haiwen/events{/privacy}","received_events_url":"https://api.github.com/users/haiwen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/haiwen/seahub","description":"The web end of seafile server.","fork":false,"url":"https://api.github.com/repos/haiwen/seahub","forks_url":"https://api.github.com/repos/haiwen/seahub/forks","keys_url":"https://api.github.com/repos/haiwen/seahub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/haiwen/seahub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/haiwen/seahub/teams","hooks_url":"https://api.github.com/repos/haiwen/seahub/hooks","issue_events_url":"https://api.github.com/repos/haiwen/seahub/issues/events{/number}","events_url":"https://api.github.com/repos/haiwen/seahub/events","assignees_url":"https://api.github.com/repos/haiwen/seahub/assignees{/user}","branches_url":"https://api.github.com/repos/haiwen/seahub/branches{/branch}","tags_url":"https://api.github.com/repos/haiwen/seahub/tags","blobs_url":"https://api.github.com/repos/haiwen/seahub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/haiwen/seahub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/haiwen/seahub/git/refs{/sha}","trees_url":"https://api.github.com/repos/haiwen/seahub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/haiwen/seahub/statuses/{sha}","languages_url":"https://api.github.com/repos/haiwen/seahub/languages","stargazers_url":"https://api.github.com/repos/haiwen/seahub/stargazers","contributors_url":"https://api.github.com/repos/haiwen/seahub/contributors","subscribers_url":"https://api.github.com/repos/haiwen/seahub/subscribers","subscription_url":"https://api.github.com/repos/haiwen/seahub/subscription","commits_url":"https://api.github.com/repos/haiwen/seahub/commits{/sha}","git_commits_url":"https://api.github.com/repos/haiwen/seahub/git/commits{/sha}","comments_url":"https://api.github.com/repos/haiwen/seahub/comments{/number}","issue_comment_url":"https://api.github.com/repos/haiwen/seahub/issues/comments{/number}","contents_url":"https://api.github.com/repos/haiwen/seahub/contents/{+path}","compare_url":"https://api.github.com/repos/haiwen/seahub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/haiwen/seahub/merges","archive_url":"https://api.github.com/repos/haiwen/seahub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/haiwen/seahub/downloads","issues_url":"https://api.github.com/repos/haiwen/seahub/issues{/number}","pulls_url":"https://api.github.com/repos/haiwen/seahub/pulls{/number}","milestones_url":"https://api.github.com/repos/haiwen/seahub/milestones{/number}","notifications_url":"https://api.github.com/repos/haiwen/seahub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/haiwen/seahub/labels{/name}","releases_url":"https://api.github.com/repos/haiwen/seahub/releases{/id}","created_at":"2012-11-06T05:07:24Z","updated_at":"2015-10-28T12:12:48Z","pushed_at":"2015-10-29T02:18:32Z","git_url":"git://github.com/haiwen/seahub.git","ssh_url":"git@github.com:haiwen/seahub.git","clone_url":"https://github.com/haiwen/seahub.git","svn_url":"https://github.com/haiwen/seahub","homepage":"seafile.com","size":54679,"stargazers_count":161,"watchers_count":161,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":125,"mirror_url":null,"open_issues_count":115,"forks":125,"open_issues":115,"watchers":161,"default_branch":"master"}},"base":{"label":"haiwen:master","ref":"master","sha":"501fa793b124fe2a3ee12aae33d216642a7c2ea0","user":{"login":"haiwen","id":1948782,"avatar_url":"https://avatars.githubusercontent.com/u/1948782?v=3","gravatar_id":"","url":"https://api.github.com/users/haiwen","html_url":"https://github.com/haiwen","followers_url":"https://api.github.com/users/haiwen/followers","following_url":"https://api.github.com/users/haiwen/following{/other_user}","gists_url":"https://api.github.com/users/haiwen/gists{/gist_id}","starred_url":"https://api.github.com/users/haiwen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haiwen/subscriptions","organizations_url":"https://api.github.com/users/haiwen/orgs","repos_url":"https://api.github.com/users/haiwen/repos","events_url":"https://api.github.com/users/haiwen/events{/privacy}","received_events_url":"https://api.github.com/users/haiwen/received_events","type":"Organization","site_admin":false},"repo":{"id":6556815,"name":"seahub","full_name":"haiwen/seahub","owner":{"login":"haiwen","id":1948782,"avatar_url":"https://avatars.githubusercontent.com/u/1948782?v=3","gravatar_id":"","url":"https://api.github.com/users/haiwen","html_url":"https://github.com/haiwen","followers_url":"https://api.github.com/users/haiwen/followers","following_url":"https://api.github.com/users/haiwen/following{/other_user}","gists_url":"https://api.github.com/users/haiwen/gists{/gist_id}","starred_url":"https://api.github.com/users/haiwen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haiwen/subscriptions","organizations_url":"https://api.github.com/users/haiwen/orgs","repos_url":"https://api.github.com/users/haiwen/repos","events_url":"https://api.github.com/users/haiwen/events{/privacy}","received_events_url":"https://api.github.com/users/haiwen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/haiwen/seahub","description":"The web end of seafile server.","fork":false,"url":"https://api.github.com/repos/haiwen/seahub","forks_url":"https://api.github.com/repos/haiwen/seahub/forks","keys_url":"https://api.github.com/repos/haiwen/seahub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/haiwen/seahub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/haiwen/seahub/teams","hooks_url":"https://api.github.com/repos/haiwen/seahub/hooks","issue_events_url":"https://api.github.com/repos/haiwen/seahub/issues/events{/number}","events_url":"https://api.github.com/repos/haiwen/seahub/events","assignees_url":"https://api.github.com/repos/haiwen/seahub/assignees{/user}","branches_url":"https://api.github.com/repos/haiwen/seahub/branches{/branch}","tags_url":"https://api.github.com/repos/haiwen/seahub/tags","blobs_url":"https://api.github.com/repos/haiwen/seahub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/haiwen/seahub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/haiwen/seahub/git/refs{/sha}","trees_url":"https://api.github.com/repos/haiwen/seahub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/haiwen/seahub/statuses/{sha}","languages_url":"https://api.github.com/repos/haiwen/seahub/languages","stargazers_url":"https://api.github.com/repos/haiwen/seahub/stargazers","contributors_url":"https://api.github.com/repos/haiwen/seahub/contributors","subscribers_url":"https://api.github.com/repos/haiwen/seahub/subscribers","subscription_url":"https://api.github.com/repos/haiwen/seahub/subscription","commits_url":"https://api.github.com/repos/haiwen/seahub/commits{/sha}","git_commits_url":"https://api.github.com/repos/haiwen/seahub/git/commits{/sha}","comments_url":"https://api.github.com/repos/haiwen/seahub/comments{/number}","issue_comment_url":"https://api.github.com/repos/haiwen/seahub/issues/comments{/number}","contents_url":"https://api.github.com/repos/haiwen/seahub/contents/{+path}","compare_url":"https://api.github.com/repos/haiwen/seahub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/haiwen/seahub/merges","archive_url":"https://api.github.com/repos/haiwen/seahub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/haiwen/seahub/downloads","issues_url":"https://api.github.com/repos/haiwen/seahub/issues{/number}","pulls_url":"https://api.github.com/repos/haiwen/seahub/pulls{/number}","milestones_url":"https://api.github.com/repos/haiwen/seahub/milestones{/number}","notifications_url":"https://api.github.com/repos/haiwen/seahub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/haiwen/seahub/labels{/name}","releases_url":"https://api.github.com/repos/haiwen/seahub/releases{/id}","created_at":"2012-11-06T05:07:24Z","updated_at":"2015-10-28T12:12:48Z","pushed_at":"2015-10-29T02:18:32Z","git_url":"git://github.com/haiwen/seahub.git","ssh_url":"git@github.com:haiwen/seahub.git","clone_url":"https://github.com/haiwen/seahub.git","svn_url":"https://github.com/haiwen/seahub","homepage":"seafile.com","size":54679,"stargazers_count":161,"watchers_count":161,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":125,"mirror_url":null,"open_issues_count":115,"forks":125,"open_issues":115,"watchers":161,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/haiwen/seahub/pulls/872"},"html":{"href":"https://github.com/haiwen/seahub/pull/872"},"issue":{"href":"https://api.github.com/repos/haiwen/seahub/issues/872"},"comments":{"href":"https://api.github.com/repos/haiwen/seahub/issues/872/comments"},"review_comments":{"href":"https://api.github.com/repos/haiwen/seahub/pulls/872/comments"},"review_comment":{"href":"https://api.github.com/repos/haiwen/seahub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/haiwen/seahub/pulls/872/commits"},"statuses":{"href":"https://api.github.com/repos/haiwen/seahub/statuses/72738ddc20134b9ccd643c3c17fb916ef2df4f05"}}}}