~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/user.py

  • Committer: Matt Giuca
  • Date: 2010-02-11 04:20:42 UTC
  • Revision ID: matt.giuca@gmail.com-20100211042042-j7ivbq41aky9b2cp
Added Users tab to drop-down menu, for admins only.
Users view has new icon.
ivle/webapp/base/xhtml.py: Added 7th field to 'tabs' tuple -- admin. If true,
    restricts the tab to showing only for admins.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
class UsersView(XHTMLView):
36
36
    """A list of all IVLE users."""
37
37
    template = 'templates/users.html'
 
38
    tab = 'users'
38
39
    breadcrumb_text = 'Users'
39
40
 
40
41
    def authorize(self, req):
232
233
             (ivle.database.User, '+index', UserRESTView, 'api'),
233
234
             ]
234
235
 
 
236
    tabs = [
 
237
        ('users', 'Users', 'Display and edit all users',
 
238
         'users.png', 'users', 0, True)
 
239
    ]
 
240
 
235
241
    public_forward_routes = forward_routes
236
242
    public_reverse_routes = reverse_routes
237
243