ColoradoSchoolOfMines / mozzarella

Mozzarella is a web application made to help student computing clubs better collaborate and organize their projects, presentations, and even mailing list messages.
https://acm.mines.edu
GNU General Public License v3.0
7 stars 3 forks source link

Configurable random images on home page #26

Closed jackrosenthal closed 6 years ago

jackrosenthal commented 7 years ago

Need to provide a database model for home page images (via depot) & descriptions

Select randomly when the page is loaded

edwargix commented 7 years ago

Will the image be random for each visitor of the site or will the image change on a time basis (eg day-by-day)?

sumnerevans commented 7 years ago

@edwargix , maybe that should be a configuration option. Something like randomization_strategy.

CC: @jackrosenthal

jackrosenthal commented 7 years ago

Random per page load. No need to over-complicate.

sumnerevans commented 7 years ago

@edwargix, To specify which images are used, we could just add a config option (something like homepage_image_dir) which will contain the images that we use for the randomization. I don't think this needs to be an entire DB table.

CC: @jackrosenthal

jackrosenthal commented 7 years ago

To specify which images are used, we could just add a config option (something like homepage_image_dir) which will contain the images that we use for the randomization. I don't think this needs to be an entire DB table.

Disagree. This would fit very elegantly as a database table with the images stored as Depot files. It allows for descriptions to be stored side by side with the images (how do you plan on doing this with the FS?), as well as allows for easy addition of images from admin panel. Using the file system would just be nasty!

sumnerevans commented 7 years ago

It allows for descriptions to be stored side by side with the images (how do you plan on doing this with the FS?)

Ah, yes. Didn't consider the descriptions. Database table with Depot it is.