Search over contributors #115

This needs some refactoring, but please take a look.  
Not sure the precise definition of a collection, but the data in the “two” collections is the same, just fetched by a different query.
On Aug 27, 2014, at 9:09 PM, Tom Dooner <notifications@github.com> wrote:

> In assets/js/collections/contributions.js:
> 
> >    url: function() {
> > -    return '/api/contributor/' + this.options.contributor;
> > +    if (this.options.contributor) {
> > +      return '/api/contributor/' + this.options.contributor;
> > +    } else {
> > +      return '/api/contributorName/' + this.options.search;
> > +    }
> Having a conditional URL for a collection is a smell that it should actually be two collections entirely, but we can refactor it later.
> 
> —
> Reply to this email directly or view it on GitHub.
>