Network graph fix (#909)
Created by: veprbl
Fixes #909 (closed). to be short: this patch turns this http://rghost.net/38755422/image.png into this http://rghost.net/38755441/image.png
In the ruby part it is just a new algorithm which properly places branches. I'm not a big ruby programmer, so this code may require some style fixing.
Javascript part replaces original lines placing with more practical github-like. This part may require some aesthetic revision.
All in all this patch still makes a good boost for gitlab's network graph usability.
Created by: veprbl
I haven't changed it much since my post in #909 (closed).
The whole idea is to set "space" (which is later converted to y coord) value properly. Original algorithm didn't take into account space values of other branchings, thus failed to determine right space value.
See the difference: http://tau.rghost.ru/38598991/image.png http://tau.rghost.ru/38598999/image.png
After that JavaScript comes into play and tweaks the rest.
By Administrator on 2012-06-19T14:21:48 (imported from GitLab project)
Created by: vsizov
https://github.com/gitlabhq/gitlabhq/issues/957
By Administrator on 2012-06-22T07:34:37 (imported from GitLab project)
Created by: dzaporozhets
@veprbl can you review #957 (closed)? If its connected with your PR it will be great you fix it in 1-2 days
By Administrator on 2012-06-22T07:53:28 (imported from GitLab project)
Created by: veprbl
@randx Yes I saw this problem before and confirm that this was broken long before my PR. I also found one simular problem: #941 (closed)
By Administrator on 2012-06-22T09:12:01 (imported from GitLab project)