diff options
author | hellekin <hellekin@cepheide.org> | 2020-10-09 12:47:31 +0200 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2020-10-09 12:47:31 +0200 |
commit | dd9e0691acae3eb63bdfbc8665eb3f8ce516536d (patch) | |
tree | 41d5889f2a0882b4f4356ed60683e908abf0b208 /app/views/resources/_resource.html.erb | |
parent | fd9e9c4679ea36bed60acf01a43dda307db203e4 (diff) | |
download | incommon-map-dd9e0691acae3eb63bdfbc8665eb3f8ce516536d.tar.gz |
Fix Resource edition
Diffstat (limited to 'app/views/resources/_resource.html.erb')
-rw-r--r-- | app/views/resources/_resource.html.erb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/resources/_resource.html.erb b/app/views/resources/_resource.html.erb index f013523..585bed8 100644 --- a/app/views/resources/_resource.html.erb +++ b/app/views/resources/_resource.html.erb @@ -1,9 +1,9 @@ <section id="resource-<%= resource.uuid %>"> <header> - <h2><%= h resource.name %></h2> + <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> + <time datetime="<%= h resource.updated_at %>" class="updated_at"> + <p class="identifier"><%= resource_url(resource) %></p> </header> <div><%= h resource.description %></div> <hr> @@ -13,8 +13,8 @@ <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> + <li><%= link_to 'edit', edit_resource_url(resource) %></li> + <li><span class="disabled">delete</span></li> <% end %></ul> </nav> </section> |