summaryrefslogtreecommitdiff
path: root/web/views/layout.erb
blob: cd6ce97f18055a57c0091a25ad643d529165b074 (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
<!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 %>" />
        <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.css" />
        <link rel="stylesheet" type="text/css" href="/css/flexigrid/flexigrid.css" />
        <link rel="search" type="application/opensearchdescription+xml" href="/search/opensearch.xml" title="<%= TaginfoConfig.get('opensearch.shortname') %>" />
<%= javascript_tags %>
    </head>
    <body>
        <div id="header">
            <div id="header_date" title="<%= t.taginfo.data_from_description %>">
                <%= t.taginfo.data_from %>: <%= @data_until %> UTC
            </div>
            <div id="header_forms">
                <form id="set_language" action="/switch_locale">
                    <input type="hidden" 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"' : ''%>><%= locale.title %>&nbsp;</option>
<% end %>
                    </select>
                </form>
                <form action="/search">
                    <input type="text" id="search" name="q" value=""/>
                </form>
            </div>
            <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>
        <div id="main">
<%= yield %>
        </div>
        <div id="footer">
            <div id="footer_left">
                <a href="http://www.openstreetmap.org/"><b style="font-style: smallcaps;">OpenStreetMap</b> - The Free Wiki World Map</a>
            </div>
            <div id="footer_right">
                <a href="/keys"><%= t.taginfo.keys %></a> &middot;
                <a href="/tags"><%= t.taginfo.tags %></a> &middot;
                <a href="/reports"><%= t.taginfo.reports %></a> &middot;
                <a href="/sources"><%= t.taginfo.sources %></a> &middot;
                <a href="/download"><%= t.taginfo.download %></a> &middot;
                <a href="/about"><%= t.taginfo.about %></a> &middot;
                <img src="/img/link-extern.gif" alt="" width="14" height="10"/><a href="http://wiki.openstreetmap.org/wiki/Taginfo"><%= t.taginfo.wiki %></a>
            </div>
        </div>
    </body>
</html>