openmodelingfoundation.github.io icon indicating copy to clipboard operation
openmodelingfoundation.github.io copied to clipboard

Can attached files be viewed in a separate browser window instead of just downloading?

Open cmbarton opened this issue 4 years ago • 4 comments

Minor usability issue but one that can make life better for people behind firewalls or with slow internet. Currently, files attached to documents (e.g., standards workflow schematic attached to Standards WG text) simply download. Am I missing a markdown code to get them to open in a new browser window instead?

cmbarton avatar May 31 '21 21:05 cmbarton

With respect to download speeds it doesn't really matter if you're downloading the file or viewing it directly in your browser but I agree the usability aspect of being able to see it in the browser does make it easier to view. How were these files uploaded in the first place though? I see them in

https://openmodelingfoundation.github.io/governance/working-groups/ -> https://github.com/openmodelingfoundation/openmodelingfoundation.github.io/files/6481459/standards_workflow.pdf

and

https://openmodelingfoundation.github.io/governance/charter/ -> https://github.com/openmodelingfoundation/openmodelingfoundation.github.io/files/6462528/OMF_org.pdf

but don't see where / how they were added to the repository...

https://webapps.stackexchange.com/questions/48061/can-i-trick-github-into-displaying-the-pdf-in-the-browser-instead-of-downloading

alee avatar May 31 '21 23:05 alee

I added some commits that open the diagram pdf files to a google docs preview in a new tab in the most recent commits

https://openmodelingfoundation.github.io/governance/charter/ https://openmodelingfoundation.github.io/governance/working-groups/

chrstngyn avatar Nov 16 '21 00:11 chrstngyn

That's really nice. It will make it easier for people to see

cmbarton avatar Nov 16 '21 00:11 cmbarton

Those mysterious floating files should probably be tracked. Default behavior for static files in hugo should be to open in a new tab e.g. https://www.openmodelingfoundation.org/about/history/#planning-workshops so we'd be able to get rid of the google redirect

Also with some relevance to openmodelingfoundation/openmodelingfoundation.github.io#431, we should decide on where to keep static files (static/<section> vs. in with content/<section>)

sgfost avatar Feb 20 '23 22:02 sgfost