aboutsummaryrefslogtreecommitdiff
path: root/app/views/resources/_resource.html.erb
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2020-10-06 19:29:04 +0200
committerhellekin <hellekin@cepheide.org>2020-10-06 19:29:04 +0200
commit1564af069472e32ed322bf9acedc9c487bce1a15 (patch)
treed3bd0061dd08b4d236b02f1cf978466873ecc83d /app/views/resources/_resource.html.erb
parentb5052d4beeb7fd0bc14db21336588bb0483f7d09 (diff)
downloadincommon-map-1564af069472e32ed322bf9acedc9c487bce1a15.tar.gz
First pass at listing Resources
This implements resource listing and pagination. See /resources
Diffstat (limited to 'app/views/resources/_resource.html.erb')
-rw-r--r--app/views/resources/_resource.html.erb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/resources/_resource.html.erb b/app/views/resources/_resource.html.erb
new file mode 100644
index 0000000..39997ef
--- /dev/null
+++ b/app/views/resources/_resource.html.erb
@@ -0,0 +1,10 @@
+<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>
+ <code><%= h resource.feature.as_json %></code>
+</section>