aboutsummaryrefslogtreecommitdiff
path: root/app/views/resources/index.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/index.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/index.html.erb')
-rw-r--r--app/views/resources/index.html.erb8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/views/resources/index.html.erb b/app/views/resources/index.html.erb
index 320849a..473bcbb 100644
--- a/app/views/resources/index.html.erb
+++ b/app/views/resources/index.html.erb
@@ -1,2 +1,6 @@
-<h1>Resources#index</h1>
-<p>Find me in app/views/resources/index.html.erb</p>
+<h1>Listing Resources</h1>
+
+<%= paginate @resources %>
+
+<%= render partial: 'resource', collection: @resources %>
+