diff options
author | hellekin <hellekin@cepheide.org> | 2021-01-22 05:32:15 +0100 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2021-01-22 05:32:15 +0100 |
commit | b54a8458d5029b3494165b7430e21b3ae34ecc0c (patch) | |
tree | 32ea6fc6b8774f672325fec52f0ffc97229a9568 /app/views/users | |
parent | 1c1aead78192982e221179de6688b944e5b01bf6 (diff) | |
download | incommon-map-b54a8458d5029b3494165b7430e21b3ae34ecc0c.tar.gz |
Upgrade Rails and add StimulusJS support
Diffstat (limited to 'app/views/users')
-rw-r--r-- | app/views/users/_user.html.erb | 3 | ||||
-rw-r--r-- | app/views/users/index.html.erb | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/app/views/users/_user.html.erb b/app/views/users/_user.html.erb new file mode 100644 index 0000000..2da5239 --- /dev/null +++ b/app/views/users/_user.html.erb @@ -0,0 +1,3 @@ +<div class="member"> + <span class="name"><%= user.name %></span> +</div> diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb index 0d53728..3451981 100644 --- a/app/views/users/index.html.erb +++ b/app/views/users/index.html.erb @@ -1,4 +1,4 @@ -<h1>Users#index</h1> -<p>Find me in app/views/users/index.html.erb</p> +<h1>Agent <%= current_agent %> Members</h1> +<p>This agent counts (<%= pluralize(@users.count, "member") %>)</p> -<p>Show a table with Agent <%= current_agent %> members (<%= pluralize(@users.count, "user") %>), their roles, and ways to change them.</p> +<%= render partial: 'user', collection: @users %> |