diff options
author | Jochen Topf <jochen@topf.org> | 2010-11-05 22:10:43 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2010-11-05 22:10:43 +0100 |
commit | eeb36719b664f8732a4adee0e5af47427aeb2666 (patch) | |
tree | 9f4285d1be5173dcaa2ebc4d04cd96d3dbfb221d /web | |
parent | 9956130b31e5377763361cca07b1653dee59ceef (diff) | |
download | taginfo-eeb36719b664f8732a4adee0e5af47427aeb2666.tar taginfo-eeb36719b664f8732a4adee0e5af47427aeb2666.tar.gz |
Moved links from bottom of page to upper right. Removed API page.
Diffstat (limited to 'web')
-rw-r--r-- | web/public/css/taginfo.css | 24 | ||||
-rwxr-xr-x | web/taginfo.rb | 6 | ||||
-rw-r--r-- | web/views/about.erb | 14 | ||||
-rw-r--r-- | web/views/api.erb | 13 | ||||
-rw-r--r-- | web/views/download.erb | 2 | ||||
-rw-r--r-- | web/views/layout.erb | 8 |
6 files changed, 41 insertions, 26 deletions
diff --git a/web/public/css/taginfo.css b/web/public/css/taginfo.css index 1ef4fe8..5e02728 100644 --- a/web/public/css/taginfo.css +++ b/web/public/css/taginfo.css @@ -126,6 +126,7 @@ div#date { color: #606060; } +/* div#bottom { position: fixed; bottom: 2px; @@ -148,7 +149,7 @@ div#bottom span { -chrome-border-radius: 8px; -o-border-radius: 8px; } - +*/ div#main { margin: 20px; } @@ -390,3 +391,24 @@ table.drilldown td#feature { } /* ========== */ + +a.button { + background-color: #f0f0f0; + color: #303030; + border: 1px solid #e8e8e8; + padding: 0 2px; + -moz-border-radius: 3px; + -khtml-border-radius: 3px; + -webkit-border-radius: 3px; + -chrome-border-radius: 3px; + -o-border-radius: 3px; +} + +a.button:hover { + background-color: #f2f2f2; + color: #606060; + border: 1px solid #eaeaea; + text-decoration: none; +} + +/* ========== */ diff --git a/web/taginfo.rb b/web/taginfo.rb index 98f9bbb..81a2b6e 100755 --- a/web/taginfo.rb +++ b/web/taginfo.rb @@ -121,12 +121,6 @@ class Taginfo < Sinatra::Base erb :'sources/index' end - get '/api' do - @title = 'API' - @breadcrumbs << @title - erb :api - end - get! '/keys' do @title = 'Keys' @breadcrumbs << ['Keys'] diff --git a/web/views/about.erb b/web/views/about.erb index a3dba16..bdaac9d 100644 --- a/web/views/about.erb +++ b/web/views/about.erb @@ -30,13 +30,25 @@ href="http://wiki.openstreetmap.org/wiki/Taginfo">Taginfo wiki page</a> for more information.</p> <p>If you want to access the databases behind Taginfo, you can use our API. -Access is through a RESTful HTTP interface. See the <a href="/api">API</a> +Access is through a RESTful HTTP interface. See the API section for more information.</p> <p>If you want to play around with the data itself, you can download the regularly updated databases used by Taginfo. All the preprocessing is done for you. See the <a href="/download">download</a> section for more information.</p> +<h2>API</h2> + +<p>Taginfo data can be accessed through a REST API. The documentation should +appear here, but isn't done yet. Please look at the source code for Taginfo +or ask if you are interested.</p> + +<h3>Terms of Use</h3> + +<p>The server running the Taginfo API does not have unlimited resources. +Please use the API responsibly. Do not create huge amounts of requests to +get the whole database or large chunks of it, instead use the +<a href="/download">database downloads</a> provided.</p> <h2>Similar tools</h2> diff --git a/web/views/api.erb b/web/views/api.erb deleted file mode 100644 index 21742bc..0000000 --- a/web/views/api.erb +++ /dev/null @@ -1,13 +0,0 @@ -<h1>API</h1> - -<p>Taginfo data can be accessed through a REST API. The documentation should -appear here, but isn't done yet. Please look at the source code for Taginfo -or ask Jochen Topf (jochen@remote.org) if you are interested.</p> - -<h2>Terms of Use</h2> - -<p>The server running the Taginfo API does not have unlimited resources. -Please use the API responsibly. Do not create huge amounts of requests to -get the whole database or large chunks of it, instead use the -<a href="/download">database downloads</a> provided.</p> - diff --git a/web/views/download.erb b/web/views/download.erb index 842c045..d66d776 100644 --- a/web/views/download.erb +++ b/web/views/download.erb @@ -17,4 +17,4 @@ <dd>Some aggregate statistics and miscellaneous data needed for the Taginfo user interface.</dd> </dl> -<p>If you don't want to download these databases, but need automated access to the data, you can also use our <a href="/api">API</a>. +<p>If you don't want to download these databases, but need automated access to the data, you can also use our <a href="/about">API</a>. diff --git a/web/views/layout.erb b/web/views/layout.erb index a0e9d28..c469aca 100644 --- a/web/views/layout.erb +++ b/web/views/layout.erb @@ -32,13 +32,13 @@ </div> </div> <div id="date"> - Data from: <%= @data_until %> UTC [<a href="/sources">Details...</a>] + Data from: <%= @data_until %> UTC <a class="button" href="/sources">Sources</a> + <a class="button" href="/download">Download</a> + <a class="button" href="/about">About</a> + <a class="button" href="http://wiki.openstreetmap.org/wiki/Taginfo">Wiki</a> </div> <div id="main"> <%= yield %> </div> - <div id="bottom"> - <span><a href="/about">About</a> • <a href="/sources">Sources</a> • <a href="/api">API</a> • <a href="/download">Download</a></span> - </div> </body> </html> |