EbookFoundation / regluit

webapp for unglue.it
http://unglue.it
Other
50 stars 17 forks source link

reader button issues #81

Open eshellman opened 6 years ago

eshellman commented 6 years ago

CORS has been set for ebook files in S3, (and it works!) but we need to show the reader button only when an ebook in our s3 is available.

We also need to figure out a behavior for the "Read It Now" button on the bookpanel. Seems to me it should be the reader when available.

eshellman commented 6 years ago

I like to put the logic for reader availability on the work object (in bibmodels)

eshellman commented 6 years ago

I think you can just use {% if work.epubfiles %}