ScienceCommons / api

API for interacting with Curate Science model
http://curatescience.org
MIT License
2 stars 4 forks source link

Activate blue version of study component icons for articles on homepage #222

Closed eplebel closed 9 years ago

eplebel commented 9 years ago

Activate the blue version of the study component icons if a recently added/updated article contains a study that has ANY of those components (except for disclosure icon, given that one hasn't yet been implemented anywhere on the site).

For instance, if a study has at least 1 study with available data/syntax, then the data/syntax icon would be blue on the homepage. For example, the Donnellan et al. (2015 , https://www.curatescience.org/beta/#/articles/60045) would have the first two icons activated in blue because it has at least one study with availabel data/syntax and materials.

Mockup: basic-homepage-enhancements

alexkyllo commented 9 years ago

Done, deployed to staging and pull requests opened: https://github.com/ScienceCommons/www/pull/46 https://github.com/ScienceCommons/api/pull/228

eplebel commented 9 years ago

Sweet, that's so awesome!!