<commit_before>- if logged_in?
  .modal.fade#profile{ tabindex: "-1", role: "dialog" }
    .modal-dialog.modal-lg{ role: "document" }
      .modal-content
        .modal-header
          %button.close{type: "button", "data-dismiss": "modal", "aria-label": "Close"}
            %span{ "aria-hidden": "true"} &times;

          %h4.modal-title My Profile
        .modal-body
          %table.table.no-borders
            %tbody
              %tr
                %th.text-nobreak Name
                %td= current_user.name
              %tr
                %th.text-nobreak Full Name
                %td= current_user.full_name
              %tr
                %th.text-nobreak Current Scope
                %td
                  %b Domain:
                  = current_user.project_domain_name || current_user.domain_name
                  %br
                  %b Project:
                  = current_user.project_name
                  %br
                  %b Assigned Roles:
                  = current_user.role_names.join(', ')
                  - if @scoped_project_id && current_user.is_allowed?('identity:project_member_list')
                    %br
                    = link_to 'edit role assignments', plugin('identity').projects_members_path
              %tr
                %th.text-nobreak Sync password
                %td
                  %p
                    If your global SAP password has changed you can sync it with the dashboard here.
                    Mostly this is needed if you access your machines via jump server.
                    Please click on the button below and enter the new password.
                  %p
                    = link_to "Sync password", monsoon_openstack_auth.login_path(domain_fid: @scoped_domain_fid || params[:domain_id],
                      domain_name: @scoped_domain_name,
                      after_login: (request.base_url + request.original_fullpath),
                      password_sync: true), class: 'btn btn-primary'


        .modal-footer
          %button.btn.btn-default{ type: "button", "data-dismiss": "modal"} Close<commit_msg>fixes #345, fix the link to role assignments.<commit_after>- if logged_in?
  .modal.fade#profile{ tabindex: "-1", role: "dialog" }
    .modal-dialog.modal-lg{ role: "document" }
      .modal-content
        .modal-header
          %button.close{type: "button", "data-dismiss": "modal", "aria-label": "Close"}
            %span{ "aria-hidden": "true"} &times;

          %h4.modal-title My Profile
        .modal-body
          %table.table.no-borders
            %tbody
              %tr
                %th.text-nobreak Name
                %td= current_user.name
              %tr
                %th.text-nobreak Full Name
                %td= current_user.full_name
              %tr
                %th.text-nobreak Current Scope
                %td
                  %b Domain:
                  = current_user.project_domain_name || current_user.domain_name
                  %br
                  %b Project:
                  = current_user.project_name
                  %br
                  %b Assigned Roles:
                  = current_user.role_names.join(', ')
                  - if @scoped_project_id && current_user.is_allowed?('identity:project_member_list')
                    %br
                    = link_to 'edit role assignments', plugin('identity').projects_role_assignments_path
              %tr
                %th.text-nobreak Sync password
                %td
                  %p
                    If your global SAP password has changed you can sync it with the dashboard here.
                    Mostly this is needed if you access your machines via jump server.
                    Please click on the button below and enter the new password.
                  %p
                    = link_to "Sync password", monsoon_openstack_auth.login_path(domain_fid: @scoped_domain_fid || params[:domain_id],
                      domain_name: @scoped_domain_name,
                      after_login: (request.base_url + request.original_fullpath),
                      password_sync: true), class: 'btn btn-primary'


        .modal-footer
          %button.btn.btn-default{ type: "button", "data-dismiss": "modal"} Close
{'fraction_non_alphanumeric': 0.09218859957776214, 'fraction_numerical': 0.0016420361247947454, 'mean_word_length': 1.432401597261837, 'pattern_counts': {'":': 8, '<': 3, '<?xml version=': 0, '>': 3, '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': '6977632', 'n_tokens_mistral': 1166, 'n_tokens_neox': 1093, 'n_words': 276}