diff options
author | hellekin <hellekin@cepheide.org> | 2020-10-06 20:34:48 +0200 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2020-10-06 20:34:48 +0200 |
commit | 8c7c0501e49871765d6ac971e4027dac0ea20407 (patch) | |
tree | 7642357fc3e4c1cce6330f9aaae08bf128f6aebe /app/views/resources/_resource.html.erb | |
parent | 1564af069472e32ed322bf9acedc9c487bce1a15 (diff) | |
download | incommon-map-8c7c0501e49871765d6ac971e4027dac0ea20407.tar.gz |
First pass at Resources...
Diffstat (limited to 'app/views/resources/_resource.html.erb')
-rw-r--r-- | app/views/resources/_resource.html.erb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/app/views/resources/_resource.html.erb b/app/views/resources/_resource.html.erb index 39997ef..f013523 100644 --- a/app/views/resources/_resource.html.erb +++ b/app/views/resources/_resource.html.erb @@ -6,5 +6,15 @@ <p class="identifier"><%= resource_url(resource) %></p> </header> <div><%= h resource.description %></div> - <code><%= h resource.feature.as_json %></code> + <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> |