summaryrefslogtreecommitdiff
path: root/web/views/search.erb
blob: b6bf5ce330ed137c665664dd3576e2297ef54468 (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><%= t.pages.search.you_were_searching_for %>:</b> <%= escape_html(@query) %></p>
</div>
<div id="tabs">
    <ul>
        <li><a href="#keys"><%= t.osm.keys %></a></li>
        <li><a href="#values"><%= t.osm.values %></a></li>
        <li><a href="#relations"><%= t.osm.relation_types %></a></li>
        <li><a href="#roles"><%= t.osm.relation_member_roles %></a></li>
        <li><a href="#fulltext"><%= t.pages.search.fulltext %></a></li>
    </ul>
    <div id="keys">
        <h2><%= t.osm.keys %></h2>
        <table id="grid-keys">
        </table>
    </div>
    <div id="values">
        <h2><%= t.osm.values %></h2>
        <table id="grid-values">
        </table>
    </div>
    <div id="relations">
        <h2><%= t.osm.relation_types %></h2>
        <table id="grid-relations">
        </table>
    </div>
    <div id="roles">
        <h2><%= t.osm.relation_member_roles %></h2>
        <table id="grid-roles">
        </table>
    </div>
    <div id="fulltext">
        <h2><%= 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
%>