opinkerfi / adagios

Adagios - Web Based Nagios Configuration
GNU Affero General Public License v3.0
330 stars 75 forks source link

frontpage does not print "latest version" correctly #56

Closed palli closed 12 years ago

palli commented 12 years ago

instead there is only the text http://adagios.opensource.is/rest/adagios/txt/version

Instead we need a javascript that loads this url.

palli commented 12 years ago

Það sem ég meina er að ég commitaði útgáfu sem segir "current version = XXXX" og síðan "latest version=XXX"

Latest version ætti að vera javascript sem loadar frá adagios.opensource.is en currently er það bara raw texti.

tomas-edwardsson commented 12 years ago

Page not found (404) Request Method: GET Request URL: http://adagios.opensource.is/rest/adagios/txt/version

palli commented 12 years ago

Demo site updated

tomas-edwardsson commented 12 years ago

ok, this doesn't quite work.

See http://en.wikipedia.org/wiki/Same_origin_policy

So in order to do this we must fetch the version using python code

palli commented 12 years ago

So... iframe ?

palli commented 12 years ago

Either that or we need /rest/adagios/png/version : )

tomas-edwardsson commented 12 years ago

png? I'll just create /rest/adagios/*/version which allows you to check local and upstream versions, without image support btw.. ;-)