aboutsummaryrefslogtreecommitdiff
path: root/app/views/resources/_resource.html.erb
blob: 2debec2c57893dec4ee54f5dd0503f62459e995f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<section id="resource-<%= resource.uuid %>">
    <header>
        <h2><%= resource.properties['name'] %></h2>
        <time datetime="<%= h resource.created_at %>" class="created_at">
            <time datetime="<%= h resource.updated_at %>" class="updated_at">
                <p class="identifier"><%= resource_url(resource) %></p>
    </header>
    <%= m resource.description %>
    <hr>
    <code><pre><%= h JSON.pretty_generate(resource.feature.as_json) %></pre></code>
    <p>... <%= session[:current_agent] %>...</p>
    <nav>
        <ul>
            <li><%= link_to('show', resource_url(resource)) %></li>
            <% if session[:current_agent] == resource.source %>
                <li><%= link_to 'edit', edit_resource_url(resource) %></li>
                <li><span class="disabled">delete</span></li>
            <% end %></ul>
    </nav>
</section>