Note: This is just a first implementation, so will just be a duplicate of the stats we currently show on the campaign page. We can improve if time permits, or leave this as a hackathon task.
We can increase the number of rows displayed to top 20 on the new page to differentiate it immediately from the campaign page. The new page will be in addition to the summaries we already display, so don't remove any stats currently on the campaign page.
New stats page
Create route for stats page and new template based on existing stats we display on the campaign/<id> route
- Create new route: campaigns/<id>/stats, passing the same stats data to the template as we do on the campaign/<id> route
- Create new template: campaign_stats.html with HTML copied directly from stats section in campaign.html
- Add single "download all contribution data" button to new stats page
Campaign page changes
- Remove both download buttons (download is now on the stats page)
- Add new "More stats" button in same location as old download buttons (links to the stats route)