<commit_before>= render :partial => 'layouts/admin_nav'
%header.page-header
  - if check_privilege(Privilege::VIEW, User)
    .obj_actions
      .return_to
        =t'return_to'
        = link_to t('users.users'), users_path

%section.content-section.user
  .content
    #user_card.user_stats_card
      %header.user-card-header
        %h2= @title
      .user-card-content
        %dl
          %dt=t'users.show.e-mail'
          %dd= @user.email
          %dt=t'users.show.username'
          %dd= @user.login
        .button-group
          = link_to "#{t('users.show.edit')}", edit_user_path(@user), :class => 'button'
          - unless @user.id == current_user.id
            = button_to "#{t('users.show.delete')}", user_path(@user), :method => :delete, :confirm => t('users.confirm_delete'), :class => "button danger"
    %dl.user_stats
      %ul
        %div
          %li
            %dt=t'users.show.created'
            %dd= l(@user.created_at.to_date, :format => :long) if @user.created_at
          %li
            %dt=t'users.show.number_of_logins'
            %dd= @user.login_count
          %li
            %dt=t'users.show.last_login'
            %dd= l(@user.last_login_at, :format => :long) if @user.last_login_at
        %div
          %li
            %dt=t'users.show.last_updated'
            %dd= l(@user.updated_at, :format => :long) if @user.updated_at
          %li
            %dt=t'users.show.failed_logins'
            %dd= @user.failed_login_count
          %li
            %dt=t'users.show.last_login_ip'
            %dd= @user.last_login_ip

%section.content-section.groups
  %header
    %h2.groups=t'users.groups'
= filter_table(@groups_header, @user_groups) do |user_group|
  %tr{:class => cycle('nostripe','stripe')}
    %td= link_to user_group.name, user_group_path(user_group)
    %td= t("user_groups.#{user_group.membership_source.downcase}")
%section.content-section.permissions
  %header
    %h2.permissions=t'permissions.index.permissions'
  .content
    = render :partial => 'permissions/objects'
/%section.content-section.user
/  %header
/    %h2.activity Activity
/
/  .content
/    Unimplemented.<commit_msg>minor haml tweak to fix styling for group list on profile page.<commit_after>= render :partial => 'layouts/admin_nav'
%header.page-header
  - if check_privilege(Privilege::VIEW, User)
    .obj_actions
      .return_to
        =t'return_to'
        = link_to t('users.users'), users_path

%section.content-section.user
  .content
    #user_card.user_stats_card
      %header.user-card-header
        %h2= @title
      .user-card-content
        %dl
          %dt=t'users.show.e-mail'
          %dd= @user.email
          %dt=t'users.show.username'
          %dd= @user.login
        .button-group
          = link_to "#{t('users.show.edit')}", edit_user_path(@user), :class => 'button'
          - unless @user.id == current_user.id
            = button_to "#{t('users.show.delete')}", user_path(@user), :method => :delete, :confirm => t('users.confirm_delete'), :class => "button danger"
    %dl.user_stats
      %ul
        %div
          %li
            %dt=t'users.show.created'
            %dd= l(@user.created_at.to_date, :format => :long) if @user.created_at
          %li
            %dt=t'users.show.number_of_logins'
            %dd= @user.login_count
          %li
            %dt=t'users.show.last_login'
            %dd= l(@user.last_login_at, :format => :long) if @user.last_login_at
        %div
          %li
            %dt=t'users.show.last_updated'
            %dd= l(@user.updated_at, :format => :long) if @user.updated_at
          %li
            %dt=t'users.show.failed_logins'
            %dd= @user.failed_login_count
          %li
            %dt=t'users.show.last_login_ip'
            %dd= @user.last_login_ip

%section.content-section.groups
  %header
    %h2.groups=t'users.groups'
  .content
    = filter_table(@groups_header, @user_groups) do |user_group|
      %tr{:class => cycle('nostripe','stripe')}
        %td= link_to user_group.name, user_group_path(user_group)
        %td= t("user_groups.#{user_group.membership_source.downcase}")
%section.content-section.permissions
  %header
    %h2.permissions=t'permissions.index.permissions'
  .content
    = render :partial => 'permissions/objects'
/%section.content-section.user
/  %header
/    %h2.activity Activity
/
/  .content
/    Unimplemented.
{'fraction_non_alphanumeric': 0.14634146341463414, 'fraction_numerical': 0.0018235696375655346, 'mean_word_length': 2.3727901614142968, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '5267362', 'n_tokens_mistral': 1508, 'n_tokens_neox': 1512, 'n_words': 241}