<commit_before>extends ../layout/default.jade

block title
    | Rights Management
    
block pageheader
    | Rights
    
block content
    .panel.panel-primary
        .panel-heading
            | Users
        table.table
            thead
                th #
                th Name
                th Permissions
                th Groups
            tbody
                each user in users
                    tr
                        td= user.id
                        td
                            a(href='/rights/user/#{user.id}')= user.username
                        if user.permissions.length > 0
                            td= user.permissions.join(' - ')
                        else
                            td None
                            
                        if user.groups.length > 0
                            td= user.groups.join(', ')
                        else
                            td None
            
    .panel.panel-primary
        .panel-heading
            | Groups
        table.table
            thead
                th #
                th Name
                th Permissions
                th # Users
            tbody
                each group in groups
                    tr
                        td= group.id
                        td= group.name
                        if group.permissions.length > 0
                            td= group.permissions.join(', ')
                        else
                            td None
                            
                        td= group.users<commit_msg>Add a link for groups in index too.<commit_after>extends ../layout/default.jade

block title
    | Rights Management
    
block pageheader
    | Rights
    
block content
    .panel.panel-primary
        .panel-heading
            | Users
        table.table
            thead
                th #
                th Name
                th Permissions
                th Groups
            tbody
                each user in users
                    tr
                        td= user.id
                        td
                            a(href='/rights/user/#{user.id}')= user.username
                        if user.permissions.length > 0
                            td= user.permissions.join(' - ')
                        else
                            td None
                            
                        if user.groups.length > 0
                            td= user.groups.join(', ')
                        else
                            td None
            
    .panel.panel-primary
        .panel-heading
            | Groups
        table.table
            thead
                th #
                th Name
                th Permissions
                th # Users
            tbody
                each group in groups
                    tr
                        td= group.id
                        td
                            a(href='/rights/group/#{group.id}')= group.name
                        if group.permissions.length > 0
                            td= group.permissions.join(', ')
                        else
                            td None
                            
                        td= group.users
{'fraction_non_alphanumeric': 0.054528650646950096, 'fraction_numerical': 0.0018484288354898336, 'mean_word_length': 0.5963618485742379, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '778078', 'n_tokens_mistral': 715, 'n_tokens_neox': 645, 'n_words': 171}