summaryrefslogtreecommitdiff
path: root/web/views/search.erb
blob: 40fdb20e7b664b84f8108dcf6d034cac6f1cbbf7 (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
<div class="pre">
    <h1 class="section"><%= @title %></h1>
    <p><b><%= h(t.pages.search.you_were_searching_for) %>:</b> <%= escape_html(@query) %></p>
</div>
<div id="tabs">
    <ul>
        <li><a href="#keys"><%= h(t.osm.keys) %></a></li>
        <li><a href="#values"><%= h(t.osm.values) %></a></li>
        <li><a href="#relations"><%= h(t.osm.relation_types) %></a></li>
        <li><a href="#roles"><%= h(t.osm.relation_member_roles) %></a></li>
        <li><a href="#fulltext"><%= h(t.pages.search.fulltext) %></a></li>
    </ul>
    <div id="keys">
        <h2><%= h(t.osm.keys) %></h2>
        <table id="grid-keys">
        </table>
    </div>
    <div id="values">
        <h2><%= h(t.osm.values) %></h2>
        <table id="grid-values">
        </table>
    </div>
    <div id="relations">
        <h2><%= h(t.osm.relation_types) %></h2>
        <table id="grid-relations">
        </table>
    </div>
    <div id="roles">
        <h2><%= h(t.osm.relation_member_roles) %></h2>
        <table id="grid-roles">
        </table>
    </div>
    <div id="fulltext">
        <h2><%= h(t.pages.search.fulltext) %></h2>
        <p class="boxpre" style="color: #f00000;">This search is experimental. It shows keys and tags that might be related to the word you searched for. This doesn't work if there are several words.</p>
        <table id="grid-fulltext">
        </table>
    </div>
</div>
<% javascript do
    JS.raw(%Q{
function page_init2() {
    init_tabs([#{ @query.to_json }]);
}
    })
end
%>