summaryrefslogtreecommitdiff
path: root/web/views/layout.erb
blob: 72f25037b7ca0e92eb7cefcf709b29c34665b35d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head profile="http://a9.com/-/spec/opensearch/1.1/">
    <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"><!--
<%= @css %>
--></style>
<% end %>
<%= javascript_tags %>
</head>
<body>
    <div id="header">
        <div id="header_logo">
            <a href="/"><img width="49" height="49" src="<%= TaginfoConfig.get('instance.icon', '/img/logo/world.png') %>" alt="taginfo"/></a>
<% if @section %>
            <a href="/"><img width="136" height="49" src="/img/logo/taginfo_with_bar.png" alt="taginfo"/></a>
            <a class="section" href="/<%= @section %>"><%= @section_title %></a>
<% else %>
            <a href="/"><img width="129" height="49" src="/img/logo/taginfo.png" alt="taginfo"/></a>
<% end %>
        </div>
        <div id="header_date" title="<%= h(t.taginfo.data_from_description) %>" tipsy="ne"><%= h(t.taginfo.data_from) %>: <%= @data_until %> UTC</div>
        <div id="header_forms" class="no-print">
            <form id="set_language" action="/switch_locale">
                <input type="hidden" id="url" name="url" value="<%= request.path %>"/>
                <select id="locale" name="locale">
<% r18n.available_locales.sort{ |a,b| a.title <=> b.title }.each do |locale| %>
                    <option value="<%= locale.code %>"<%= locale.code == r18n.locale.code ? ' selected="selected"' : ''%>><%= h(::Language[locale.code].native_name) %></option>
<% end %>
                </select>
            </form>
<% unless @nosearch %>
            <form id="search_form" action="/search"><input type="text" id="search" name="q" value="<%= h(params[:q]) %>"/></form>
<% end %>
        </div>
    </div>
<% unless @nosearch %>
    <div id="menu-div">
    <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>
    </div>
<% end %>
    <div id="main">
<%= yield %>
    </div>
    <div id="footer" class="no-print">
        <div id="footer_left"><a class="extlink" href="//www.openstreetmap.org/"><b>OpenStreetMap</b></a> &middot;
            <a href="//www.openstreetmap.org/copyright">Data &copy; OSM contributors (ODbL)</a></div>
        <div id="footer_right">
            <a href="/sources"><%= h(t.taginfo.sources) %></a> &middot;
            <a href="/download"><%= h(t.taginfo.download) %></a> &middot;
            <a href="/taginfo/apidoc">API</a> &middot;
            <a href="/about"><%= h(t.taginfo.about) %></a> &middot;
            <a id="help_link" href="#help"><%= h(t.misc.help) %></a> &middot;
            <a class="extlink" href="//wiki.openstreetmap.org/wiki/Taginfo"><%= h(t.taginfo.wiki) %></a>
        </div>
    </div>
    <div id="javascriptmsg">This website only works with Javascript! Please enable Javascript in your browser.</div>
    <div id="help"><div id="help_tabs">
        <ul>
            <li><a href="/help/search"><%= h(t.help.search.title) %></a></li>
            <li><a href="/help/keyboard"><%= h(t.help.keyboard.title) %></a></li>
        </ul>
    </div></div>
</body>
</html>