Exemple #1
0
    def _getNavigationDrawer(self):
        if self._rh._getUser().isAdmin():
            return WSimpleNavigationDrawer(
                _('Room Booking Admin'),
                lambda: url_for('rooms_admin.settings'),
                bgColor='white')

        return WSimpleNavigationDrawer(_('Room Booking Admin'),
                                       urlHandlers.UHRoomBookingAdmin.getURL,
                                       bgColor="white")
Exemple #2
0
    def _getNavigationDrawer(self):
        if self._rh._getUser().isAdmin():
            return WSimpleNavigationDrawer(
                _('Room Booking Admin'),
                urlHandlers.UHRoomBookingPluginAdmin.getURL,
                bgColor='white')

        return WSimpleNavigationDrawer(_('Room Booking Admin'),
                                       urlHandlers.UHRoomBookingAdmin.getURL,
                                       bgColor="white")
Exemple #3
0
 def _getNavigationDrawer(self):
     if 'user_id' in request.view_args:
         user = User.get(request.view_args['user_id'])
         profile_breadcrumb = _('Profile of {name}').format(name=user.full_name)
     else:
         profile_breadcrumb = _('My Profile')
     return WSimpleNavigationDrawer(profile_breadcrumb)
Exemple #4
0
 def _getNavigationDrawer(self):
     return WSimpleNavigationDrawer(self._target.getName(),
                                    type='Statistics')
Exemple #5
0
 def _getNavigationDrawer(self):
     return WSimpleNavigationDrawer('Videoconference',
                                    lambda: url_for('.vc_room_list'))
Exemple #6
0
 def _getNavigationDrawer(self):
     return WSimpleNavigationDrawer(_('My Profile'))