the carousel uses the bootstrap carousel and overrides the styles to match the gigadb colors and to make it look better
the logic was tweaked to cover a handful of use cases:
the carousel is responsive and reactive to the screen width
mobile shows one item
medium screen shows two items
desktop shows three items
if the number of items to display is less than the maximum, for example, for desktop, if there are just two news items, rather than showing a blank space, the two news items fill all the space
if there are less news items than the maximum that can be displayed at any given time (e.g. 3 for desktop) then the carousel controls are hidden
Any issues with implementation?
--
Any changes to automated tests?
tests pass. As far as I have seen, there are no acceptance tests covering this case
Pull request for issue: #208
This is a pull request for the following functionalities:
How to test?
Visit the home page and verify the following:
alternatively you can create more news items from the admin page http://gigadb.gigasciencejournal.com/news/admin and they should show up in the home page
How have functionalities been implemented?
Any issues with implementation?
--
Any changes to automated tests?
tests pass. As far as I have seen, there are no acceptance tests covering this case