summaryrefslogtreecommitdiff
path: root/web/views/layout.erb
blob: 144e7e25e0143ebefce772a5031a43ece4739073 (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
<!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="top">
            <div id="right">
                <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>
            </div>
            <div id="middle">
                <form action="/search">
                    <input type="text" id="search" name="q" value=""/>
                </form>
            </div>
            <div id="left">
                <a id="instance" href="#"><img src="<%= TaginfoConfig.get('instance.icon', '/img/instance.png') %>" alt="" height="24" style="padding: 2px 6px 0 0;"/></a>
                <div id="instance_description" style="display: none;" class="ui-widget-content ui-corner-all">
                    <p><%= TaginfoConfig.get('instance.description') %></p>
                    <p><%= t.taginfo.instance.other %></p>
                </div>
                <a href="/"><img src="/img/taginfo.48.png" alt="Taginfo" width="48" height="24" style="padding-top: 2px;"/></a>
                <span class="breadcrumbs"><%= breadcrumbs %></span>
            </div>
        </div>
        <div id="date">
            <%= t.taginfo.data_from %>: <%= @data_until %> UTC <span class="button"><a href="/sources"><%= t.taginfo.sources %></a></span>
            <span class="button"><a href="/download"><%= t.taginfo.download %></a></span>
            <span class="button"><a href="/about"><%= t.taginfo.about %></a></span>
            <span class="button"><img src="/img/link-extern.gif" alt="" width="14" height="10"/><a href="http://wiki.openstreetmap.org/wiki/Taginfo"><%= t.taginfo.wiki %></a></span>
        </div>
        <div id="main">
<%= yield %>
        </div>
    </body>
</html>