aboutsummaryrefslogtreecommitdiff
path: root/app/views/welcome/index.html.erb
blob: 2a154ae63bd3646fab2ad42484df3d55547f013d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<h1>Bienvenue à l'atelier carto d'IN COMMON</h1>

<%= map_container %>

<% content_for :aside do %>
    <div data-controller="taxonomy" data-taxonomy-uuid="<%= @taxonomy.to_param %>">
        <div class="leaflet-bar leaftlet-control" id="taxonomy-toggle">
            <button data-action="taxonomy#toggle" data-target="taxonomy.toggle"></button>
        </div>
        <div data-target="taxonomy.filter"></div>
    </div>
<% end %>

<% content_for :debug do %>
    <% if current_user.present? %>
        <p>Premier élément de la liste:</p>
        <% res = @resources.first %>
        <p><%= res.feature["properties"]["name"] %></p>
        <p><%= res.feature["geometry"]["coordinates"] %></p>
    <% end %><%# ensure it does not break when we don't have a record... %>
<% end %>