Sha256: 5439ec5cf814e3dd9ca5a9e67efe49227f7ea2f24df2064023b1fd4ba55deb36
Contents?: true
Size: 1.16 KB
Versions: 2
Compression:
Stored size: 1.16 KB
Contents
<h1>Users</h1> <table id="users" class="index" cellpadding="0" cellspacing="0" border="0"> <thead> <tr> <th class="user">Name / Login</th> <th class="roles">Roles</th> <th class="modify">Modify</th> </tr> </thead> <tbody> <% unless @users.empty? -%> <% for user in @users -%> <tr class="node level-1"> <td class="user"> <%= link_to user.name, user_edit_url(:id => user) %> <small class="login"><%= user.login %></small> </td> <td class="roles"> <%= roles = [] roles << 'Administrator' if user.admin? roles << 'Developer' if user.developer? roles.join(', ') %> </td> <td class="remove"><%= user.id != session[:user].id ? link_to(image_tag('remove', :alt => 'Remove User'), user_remove_url(:id => user)) : image_tag('remove-disabled', :alt => 'Remove') %></td> </tr> <% end -%> <% else -%> <tr> <td colspan="3" class="note">No Users</td> </tr> <% end -%> </tbody> </table> <script type="text/javascript"> // <![CDATA[ new RuledTable('users'); // ]]> </script> <p><%= link_to image_tag('new-user', :alt => 'New User'), user_new_url %></p>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
radiant-0.5.1 | app/views/admin/user/index.rhtml |
radiant-0.5.2 | app/views/admin/user/index.rhtml |