Open jsatt opened 10 years ago
Super interesting and really similar to whats been coming up at Code for San Francisco.
/geeks/civicissues/embed
when you select an organization, it should bring you to the page /geeks/civicissues/embed/<organization>
using js/main.js
.app.py
add a new route /geeks/civicissues/embed/<organization>
. This route will make a request to http://codeforamerica.org/api/organizations/<organization>/projects
and hand off all the projects to the embed template.templates/embed.html
&projects=
parameter. Use js/main.js
/geeks/civicissues/widget
route in app.py
should accept the projects parameter and use to add &project_name=project 1, project 2, project 3
to the CfAPI request.
Some brigades may have their site organized with a dedicated page for each project. It would be much more useful to have a filter option, similar to labels, that would allow them to specify which repositories they would like to include in their embed. Allowing multiple repositories would still allow for projects spread out accross multiple repos (infrastructure, backend, frontend, mobile app) to could still allow for one embed dedicated to a single project.