GitHub PullRequestReviewCommentEvent at 2014-02-11 16:30:56
Repository: Potee
Actor: dapi
Payload: {"comment":{"url":"https://api.github.com/repos/BrandyMint/Potee/pulls/comments/9630623","id":9630623,"diff_hunk":"@@ -0,0 +1,33 @@\n+class Potee.Controllers.EntireProject extends Marionette.Controller\n+\n+  initialize: (options) ->\n+    { @scaller, @$viewport, @projects_view, @dashboard, @projects } = options\n+\n+    PoteeApp.vent.on \"project:current:focus\", @showEntireProject\n+\n+  showEntireProject: (@project, indents = 100, speed = 1000) =>\n+    $project_view = project.view.$el\n+    @_scrollToProjectStart $project_view, indents, speed\n+\n+  _scrollToProjectStart: (projectView, indents, speed) ->\n+    # Первоначальное значение отступа Проекта, до изменения масштаба\n+    startProjectBar = parseInt( projectView.css(\"margin-left\") ) - indents\n+    projectStartDate = moment(@project.get(\"started_at\"))\n+    projectEndDate = moment(@project.get(\"finish_at\"))\n+    projectDuration = projectEndDate.diff(projectStartDate, 'days') + 1\n+\n+    initialProjectWidth = projectView.width()\n+    finalProjectWidth = @$viewport.width() - indents * 2\n+\n+    # centerOfViewport = startProjectBar + projectView.width() - @$viewport.width() / 2\n+    # if initialProjectWidth < @dashboard.get('pixels_per_day') * 6\n+    #   @$viewport.animate \n+    #     scrollLeft: centerOfViewport, speed\n+    \n+    unless startProjectBar is @$viewport.scrollLeft()","path":"app/assets/javascripts/potee/controllers/entire_project.js.coffee","position":27,"original_position":27,"commit_id":"9bf745e0b347307e1828ad3da069ca8b0ddb1f85","original_commit_id":"9bf745e0b347307e1828ad3da069ca8b0ddb1f85","user":{"login":"dapi","id":31139,"avatar_url":"https://gravatar.com/avatar/2acd6312f73d16ce507b6e7cb7a3d548?d=https%3A%2F%2Fidenticons.github.com%2Fc06debb249d4e75425c7f2c2c9e96a5c.png&r=x","gravatar_id":"2acd6312f73d16ce507b6e7cb7a3d548","url":"https://api.github.com/users/dapi","html_url":"https://github.com/dapi","followers_url":"https://api.github.com/users/dapi/followers","following_url":"https://api.github.com/users/dapi/following{/other_user}","gists_url":"https://api.github.com/users/dapi/gists{/gist_id}","starred_url":"https://api.github.com/users/dapi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dapi/subscriptions","organizations_url":"https://api.github.com/users/dapi/orgs","repos_url":"https://api.github.com/users/dapi/repos","events_url":"https://api.github.com/users/dapi/events{/privacy}","received_events_url":"https://api.github.com/users/dapi/received_events","type":"User","site_admin":false},"body":"вот это не понимаю. Разве тут не == должно быть?","created_at":"2014-02-11T16:30:56Z","updated_at":"2014-02-11T16:30:56Z","html_url":"https://github.com/BrandyMint/Potee/pull/174#discussion_r9630623","pull_request_url":"https://api.github.com/repos/BrandyMint/Potee/pulls/174","_links":{"self":{"href":"https://api.github.com/repos/BrandyMint/Potee/pulls/comments/9630623"},"html":{"href":"https://github.com/BrandyMint/Potee/pull/174#discussion_r9630623"},"pull_request":{"href":"https://api.github.com/repos/BrandyMint/Potee/pulls/174"}}}}