blob: f01352336c0d75712ee101de73f6cfa8ce09282e (
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><%= h resource.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>
<div><%= h resource.description %></div>
<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>
|