Exemplo n.º 1
0
    def register_default_usercp_pages(self):
        def show_signature_cp(request):
            return request.user.acl['can_have_signature']

        usercp.add_section(
            link='misago:usercp_change_forum_options',
            name=_('Change forum options'),
            icon='fa fa-check-square-o')

        usercp.add_section(
            link='misago:usercp_change_avatar',
            name=_('Change avatar'),
            icon='fa fa-image')

        usercp.add_section(
            link='misago:usercp_edit_signature',
            name=_('Edit your signature'),
                        icon='fa fa-pencil',
            visible_if=show_signature_cp)

        usercp.add_section(
            link='misago:usercp_change_username',
            name=_('Change username'),
            icon='fa fa-credit-card')

        usercp.add_section(
            link='misago:usercp_change_email_password',
            name=_('Change email or password'),
            icon='fa fa-ticket')
Exemplo n.º 2
0
    def register_default_usercp_pages(self):
        def show_signature_cp(request):
            return request.user.acl['can_have_signature']

        usercp.add_section(link='misago:usercp_change_forum_options',
                           name=_('Change forum options'),
                           icon='fa fa-check-square-o')

        usercp.add_section(link='misago:usercp_change_avatar',
                           name=_('Change avatar'),
                           icon='fa fa-image')

        usercp.add_section(link='misago:usercp_edit_signature',
                           name=_('Edit your signature'),
                           icon='fa fa-pencil',
                           visible_if=show_signature_cp)

        usercp.add_section(link='misago:usercp_change_username',
                           name=_('Change username'),
                           icon='fa fa-credit-card')

        usercp.add_section(link='misago:usercp_change_email_password',
                           name=_('Change email or password'),
                           icon='fa fa-ticket')
Exemplo n.º 3
0
    def register_default_usercp_pages(self):
        def show_signature_cp(request):
            return request.user.acl['can_have_signature']

        usercp.add_section(
            link='misago:usercp_change_forum_options',
            name=_('Forum options'),
            component='forum-options',
            icon='settings')

        usercp.add_section(
            link='misago:usercp_change_username',
            name=_('Change username'),
            component='change-username',
            icon='card_membership')

        usercp.add_section(
            link='misago:usercp_change_email_password',
            name=_('Change email or password'),
            component='sign-in-credentials',
            icon='vpn_key')
Exemplo n.º 4
0
    def register_default_usercp_pages(self):
        def show_signature_cp(request):
            return request.user.acl['can_have_signature']

        usercp.add_section(
            link='misago:usercp-change-forum-options',
            name=_('Forum options'),
            component='forum-options',
            icon='settings',
        )
        usercp.add_section(
            link='misago:usercp-change-username',
            name=_('Change username'),
            component='change-username',
            icon='card_membership',
        )
        usercp.add_section(
            link='misago:usercp-change-email-password',
            name=_('Change email or password'),
            component='sign-in-credentials',
            icon='vpn_key',
        )