Sha256: 751a13fa0486e228923f1ff607a9559a946f5077c8b998221bc535af82e0201a
Contents?: true
Size: 1.33 KB
Versions: 2
Compression:
Stored size: 1.33 KB
Contents
<p id="notice"><%= notice %></p> <h1>Listing Users</h1> <table> <thead> <tr> <th colspan="3"></th> </tr> </thead> <tbody> <% User.all.each do |user| %> <tr> <td><%= user.email %></td> <td><%= user.name %></td> <td><%= link_to 'Notifications', user_notifications_path(user) %></td> </tr> <% end %> </tbody> </table> <h1>Listing Admins</h1> <table> <thead> <tr> <th colspan="3"></th> </tr> </thead> <tbody> <% Admin.all.each do |admin| %> <tr> <td><%= admin.user.email %></td> <td><%= admin.user.name %></td> <td><%= link_to 'Notifications', admin_notifications_path(admin) %></td> </tr> <% end %> </tbody> </table> <h1>Listing Articles</h1> <table> <thead> <tr> <th colspan="5"></th> </tr> </thead> <tbody> <% @articles.each do |article| %> <tr> <td><%= article.user.name %></td> <td><%= article.title %></td> <td><%= link_to 'Show', article %></td> <td><%= link_to 'Edit', edit_article_path(article) if user_signed_in? and current_user == article.user %></td> <td><%= link_to 'Destroy', article, method: :delete, data: { confirm: 'Are you sure?' } %></td> </tr> <% end %> </tbody> </table> <br> <%= link_to 'New Article', new_article_path %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activity_notification-0.0.10 | spec/rails_app/app/views/articles/index.html.erb |
activity_notification-0.0.9 | spec/rails_app/app/views/articles/index.html.erb |