]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user_roles/index.html.erb
First version of blocking feature. Allows both time-based (for map protection) and...
[rails.git] / app / views / user_roles / index.html.erb
diff --git a/app/views/user_roles/index.html.erb b/app/views/user_roles/index.html.erb
new file mode 100644 (file)
index 0000000..e245d68
--- /dev/null
@@ -0,0 +1,22 @@
+<h1>Listing user_roles</h1>
+
+<table>
+  <tr>
+    <th>User</th>
+    <th>Role</th>
+  </tr>
+
+<% @user_roles.each do |user_role| %>
+  <tr>
+    <td><%=h user_role.user_id %></td>
+    <td><%=h user_role.role %></td>
+    <td><%= link_to 'Show', user_role %></td>
+    <td><%= link_to 'Edit', edit_user_role_path(user_role) %></td>
+    <td><%= link_to 'Destroy', user_role, :confirm => 'Are you sure?', :method => :delete %></td>
+  </tr>
+<% end %>
+</table>
+
+<br />
+
+<%= link_to 'New user_role', new_user_role_path %>
\ No newline at end of file