Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 34
- Log:
Updated to look and feel of RISC OS Open site. Fixed bugs related to
unterminated entities ("&187" and " " in various places). RSS links
based on url_for() output rather than on an assumed host document root.
- Author:
- adh
- Date:
- Sat Jul 29 16:30:03 +0100 2006
- Size:
- 2409 Bytes
1 | <% @page_title = 'Users' %> |
2 | |
3 | <div id="content"> |
4 | <div class="breadcrumbs"> |
5 | <ul> |
6 | <li><%= link_to 'Administration', :controller => 'dashboard' -%></li> |
7 | <li>» Users</li> |
8 | </ul> |
9 | </div> |
10 | |
11 | <h2>Current Users:</h2> |
12 | |
13 | <table class="listing" id="user_list"> |
14 | <thead> |
15 | <th>User</th> |
16 | <th>View Changesets</th> |
17 | <th>View Code</th> |
18 | <th>View Milestones</th> |
19 | <th>View Tickets</th> |
20 | <th>Create Tickets</th> |
21 | <th>Admin Area</th> |
22 | <th>Actions</th> |
23 | </thead> |
24 | <% @users.cycle do |user, css| %> |
25 | <tr class="<%= css -%>"> |
26 | <td><%= user.login %></td> |
27 | <td><%= (user.view_changesets?) ? 'Y' : 'N' %></td> |
28 | <td><%= (user.view_code?) ? 'Y' : 'N' %></td> |
29 | <td><%= (user.view_milestones?) ? 'Y' : 'N' %></td> |
30 | <td><%= (user.view_tickets?) ? 'Y' : 'N' %></td> |
31 | <td><%= (user.create_tickets?) ? 'Y' : 'N' %></td> |
32 | <td><%= (user.admin?) ? 'Y' : 'N' %></td> |
33 | <td><%= link_to 'Edit', { :action => 'edit', :id => user.id }, :style => 'display: inline;' -%> <%= link_to('Delete', {:action => 'delete', :id => user.id}, :style => 'display: inline;', :confirm => 'Really delete user?') unless user.login == 'Public' %></td> |
34 | </tr> |
35 | <% end %> |
36 | </table> |
37 | |
38 | <%= error_messages_for 'user' %> |
39 | |
40 | <%= form_tag %> |
41 | <fieldset> |
42 | <legend>Create new user</legend> |
43 | |
44 | <label class="first">Login for user: |
45 | <%= text_field 'user', 'login' -%></label> |
46 | |
47 | <label class="first">Password: |
48 | <%= password_field 'user', 'password' -%></label> |
49 | |
50 | <label class="first">Password Again: |
51 | <%= password_field 'user', 'password_confirmation' -%></label> |
52 | |
53 | <h4>Permissions</h4> |
54 | <ul> |
55 | <li><%= check_box 'user', 'view_changesets', :style => 'width:auto;display:inline;' %> View Changesets</li> |
56 | <li><%= check_box 'user', 'view_code', :style => 'width:auto;display:inline;' %> View Code</li> |
57 | <li><%= check_box 'user', 'view_milestones', :style => 'width:auto;display:inline;' %> View Milestones</li> |
58 | <li><%= check_box 'user', 'view_tickets', :style => 'width:auto;display:inline;' %> View Tickets</li> |
59 | <li><%= check_box 'user', 'create_tickets', :style => 'width:auto;display:inline;' %> Create Tickets</li> |
60 | <li><%= check_box 'user', 'admin', :style => 'width:auto;display:inline;' %> Admin</li> |
61 | </ul> |
62 | |
63 | <%= submit_tag 'Create User' %> |
64 | </fieldset> |
65 | |
66 | <%= end_form_tag %> |
67 | |
68 | </div> |