Refactor the project clone panel
Created by: rspeicher
- Updates the projects.js file to coffee
- Refactors the actual JS code to:
- Remove the function, just do it automatically when the element exists.
- Works on both
aandbuttonelements.
- Removes the various
:javascriptblocks that were calling the method. - Removes some duplication in the
projects/emptyview and renders theclone_panelpartial instead. - Adds an
empty_repo?method to Repository role and adds specs for it. - Removes a random
projects/_showpartial that I couldn't find actually being used anywhere. Please correct me if I'm wrong about that one and I'll revert before you merge.