list.rhtml

teensyweb/app/views/account/list.rhtml · 485 B

From the archive teensyweb.tar.gz

Download the archive   « Back to the archive contents

<div class="app">
  <div class="forum">
  <table>
  <% @users.each do |user| %>
  <tr>
    <td><%= user.login %></td>
    <td><%= ftime user.created_at %></td>
    <td><%= user.admin == 1 ? "admin" : "user" %></td>
    <% if admin? %>
      <td><%= user.email %></td>
      <td><%= link_to 'Edit', :action => 'edit', :id => user.login %></td>
      <td><%= link_to 'Delete', :action => 'delete', :id => user.login %></td>
    <% end %>  
  </tr>
  <% end %>
  </table>
  </div>
</div>

Site Stats

Snippets: 1791
Codebases: 571