freifunkks / freifunkks.github.com

Old website. Was replaced by a moinmoin wiki.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Put an Image Chooser on the Website

Gottox opened this issue · comments

Hi!

The website still misses a download section for choosing and downloading the right image. There's #1 with a prototype, but I didn't want increase the bus factor of freifunkks any further. So please could you guys take over this work or throw away my work and start over?

kind regards

Enno

commented

How about something like this?
ffks_downloads_mockup

I think I can do something with that mockup. I'll attach a screenshot here once I have something done, as I know not everyone here can already build the site locally.

Alright, here is the first screenshot. I'll commit this when I'm done adding all the devices from the js file @Gottox created. (this one)

screenshot

Commit done and pushed! I pushed to master so I can simply link to the new page here now. It shouldn't be a problem since the new page is not linked to anywhere. Apart from here.

There is no functionality yet, but that is because I would like to avoid JavaScript altogether here. @Gottox, would it be possible to have a script on the server select the right image from some form data (e.g. http://dl.ffks.de/images/dl.scriptExt?channel=stable&vendor=dlink&device=dir-825&version=rev-b1 would redirect to http://dl.ffks.de/images/stable/factory/gluon-ffks-2015.02.07.11-d-link-dir-825-rev-b1.bin)

I'd like to avoid server side code on the gateway. (that's where the images are hosted too)

Well, I don't really care which server this script would be on, but I can understand that you don't want it to be on the gateway. Would there be another option or do you think we have to do the download url concatenation with JS?

We have a server-side script that is starting to work now: 7937754. The whole firmware page doesn't yet support selecting a hardware version which is needed for some routers, and the build date is still hardcoded, but if these problems are fixed, we can finally "release" (link to) the firmware download page.