Show only a sample or a prep metadata summary

The metadata summary handler is now capable of rendering only a sample template
or a prep template. Additionally I've fixed a bug with the wording of the
summary results.

@antgonza, I am not plugging this with the GUI, but you should be able to do go
to the following URL if you want to look at a sample template:

http://localhost:8888/metadata_summary/?study_id=10000&sample_template=10000

And to this URL if you want to look at the prep template:

http://localhost:8888/metadata_summary/?study_id=10000&prep_template=1
Thanks, I agree, but don't think I can make those changes through my phone, PEP8/flake8 changes were tough :P 💥

Yoshiki Vázquez-Baeza

> On Oct 30, 2014, at 3:25 PM, josenavas <notifications@github.com> wrote:
> 
> In qiita_pet/handlers/study_handlers.py:
> 
> >  
> >          self.render('metadata_summary.html', user=self.current_user,
> > -                    study_title=Study(st.id).title, stats=stats,
> > +                    study_title=Study(study_id).title, stats=stats,
> If you need the study instance multiple times, is better to instantiate it only one at the beginning so less db calls are done.
> 
> —
> Reply to this email directly or view it on GitHub.