diff options
author | Jochen Topf <jochen@topf.org> | 2015-08-08 17:51:27 +0200 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2015-08-08 17:51:27 +0200 |
commit | 20873ba66a39a337cb5cca45f3353199c909ed71 (patch) | |
tree | 6b8494ea32718123717633e18bdf59b6dd1dce6f /web/views | |
parent | 1479460a13885a5f28f5bed7003fd974dca496fa (diff) | |
download | taginfo-20873ba66a39a337cb5cca45f3353199c909ed71.tar taginfo-20873ba66a39a337cb5cca45f3353199c909ed71.tar.gz |
experiments using taginfo on mobile
Diffstat (limited to 'web/views')
-rw-r--r-- | web/views/layout.erb | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/web/views/layout.erb b/web/views/layout.erb index 3320c15..f09f543 100644 --- a/web/views/layout.erb +++ b/web/views/layout.erb @@ -4,9 +4,11 @@ <title><%= h(title) %></title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="content-language" content="<%= r18n.locale.code %>" /> + <meta name="viewport" content="width=device-width, initial-scale=1"/> <link rel="stylesheet" type="text/css" href="/css/taginfo.css" /> <link rel="stylesheet" type="text/css" href="/css/smoothness/jquery-ui-1.8.10.custom-minified.css" /> <link rel="stylesheet" type="text/css" href="/css/flexigrid/flexigrid-minified.css" /> + <link rel="stylesheet" type="text/css" href="/css/slicknav.min.css" /> <link rel="search" type="application/opensearchdescription+xml" href="/search/opensearch.xml" title="<%= TaginfoConfig.get('opensearch.shortname') %>" /> <% if @css %> <style type="text/css"><!-- @@ -41,6 +43,16 @@ <% end %> </div> </div> +<% unless @nosearch %> + <ul id="menu"> + <li><a href="/keys"><%= h(t.osm.keys) %></a></li> + <li><a href="/tags"><%= h(t.osm.tags) %></a></li> + <li><a href="/relations"><%= h(t.osm.relations) %></a></li> + <li><a href="/projects"><%= h(t.taginfo.projects) %></a></li> + <li><a href="/reports"><%= h(t.taginfo.reports) %></a></li> + <li><a href="/about"><%= h(t.taginfo.about) %></a></li> + </ul> +<% end %> <div id="main"> <%= yield %> </div> @@ -48,12 +60,7 @@ <div id="footer_left"><a class="extlink" href="//www.openstreetmap.org/"><b>OpenStreetMap</b></a> · <a href="//www.openstreetmap.org/copyright">Data © OSM contributors (ODbL)</a></div> <div id="footer_right"> - <a href="/keys"><%= h(t.osm.keys) %></a> · - <a href="/tags"><%= h(t.osm.tags) %></a> · - <a href="/relations"><%= h(t.osm.relations) %></a> · - <a href="/reports"><%= h(t.taginfo.reports) %></a> · <a href="/sources"><%= h(t.taginfo.sources) %></a> · - <a href="/projects"><%= h(t.taginfo.projects) %></a> · <a href="/download"><%= h(t.taginfo.download) %></a> · <a href="/taginfo/apidoc">API</a> · <a href="/about"><%= h(t.taginfo.about) %></a> · |