Closed eggls6 closed 3 years ago
This is amazing, I love it! I have only very minor requests!
Perfection. Of course I found another typo, the landing page says "WELCOME TO THE GALERY" with one L (should be GALLERY) 😄 @DinoBektesevic, what do we need to do to get this wonderful html-fest django-ified?
Thanks @eggls6 this is great! I'll look into translating this to jinja templates as soon as I finish with getting all of the astrometadata
test data to the point where we can ingest them. It's incredible how non-standard the "standards" are. Regardless, this is great effort and will make our lives easier.
Re: lack of content, there are example images that will be produced by the processing in trailblazer/trail/media
. This is subject to a bit of change in the future where instead of a single image, each frame will have 2 - one small, for displaying many on the same page, that is easy on the download side and one large - that is the same size as the original frame to which we can link the small gallery preview to. Maybe that helps?
I lifted the HTML pages and moved them to Django's templates. It's going to look a bit messy in the code diff view because I had to add the assets and images to the trail app so now they'll be duplicated. It should be a bit to see the trees from the forest once we delete html dir. But hopefully if you clone it you can see the following files:
trail/templates
files base.html
and about.html
upload/templates/upload.html
query/templates/query.html
And how to use the Jinja templating engine to create HTML on the fly. Check, specifically, the gallery template.
This can be improved, mainly by not being so ad-hoc about the layout in the base.html
template and making better block layouts and block naming.
Added a little html5 front. Did not use and templates/actual images yet. Open index.html to test.