<commit_before>- id = domain_item[:id]
- domain = domain_item[:identity]
.btn-group
  %button.btn.btn-default.btn-sm.dropdown-toggle{ type: "button", data: { toggle: "dropdown"}, aria: { expanded: true } }
    %span.fa.fa-cog
  %ul.dropdown-menu.dropdown-menu-right{ role:"menu" }
    %li= link_to 'Show details', plugin('email_service').domain_verification_path(id: id, identity: domain, action_from_show: show_view), data: {modal: true}
    - if domain_item[:dkim_verification_status] != ("Success" || "Pending")
      %li= link_to 'Verify DKIM', plugin('email_service').verify_dkim_path(id: id, identity: domain, action_from_show: show_view), method: :post
    - if domain_item[:dkim_enabled]
      %li= link_to 'Disable DKIM', plugin('email_service').deactivate_dkim_path(id: id, identity: domain, action_from_show: show_view), method: :post
    - else
      %li= link_to 'Enable DKIM', plugin('email_service').activate_dkim_path(id: id, identity: domain, action_from_show: show_view), method: :post
    - if current_user.is_allowed?("email_service:verified_email_delete", {target: { project: @active_project, scoped_domain_name: @scoped_domain_name}})
      %li= link_to 'Delete', plugin('email_service').domain_verification_path(id: id, identity: domain, action_from_show: show_view), method: :delete, data: { confirm: "Are you sure you want to remove this domain '#{domain}'?", ok: "Yes, remove it", confirmed: :loading_status}<commit_msg>fix domain_verications view paths as per updated routes (#1036)<commit_after>- id = domain_item[:id]
- domain = domain_item[:identity]
.btn-group
  %button.btn.btn-default.btn-sm.dropdown-toggle{ type: "button", data: { toggle: "dropdown"}, aria: { expanded: true } }
    %span.fa.fa-cog
  %ul.dropdown-menu.dropdown-menu-right{ role:"menu" }
    %li= link_to 'Show details', plugin('email_service').domain_verification_path(id: id, identity: domain, action_from_show: show_view), data: {modal: true}
    - if domain_item[:dkim_verification_status] != ("Success" || "Pending")
      %li= link_to 'Verify DKIM', plugin('email_service').verify_dkim_domain_verification_path(id: id, identity: domain, action_from_show: show_view), method: :post
    - if domain_item[:dkim_enabled]
      %li= link_to 'Disable DKIM', plugin('email_service').deactivate_dkim_domain_verification_path(id: id, identity: domain, action_from_show: show_view), method: :post
    - else
      %li= link_to 'Enable DKIM', plugin('email_service').activate_dkim_domain_verification_path(id: id, identity: domain, action_from_show: show_view), method: :post
    - if current_user.is_allowed?("email_service:verified_email_delete", {target: { project: @active_project, scoped_domain_name: @scoped_domain_name}})
      %li= link_to 'Delete', plugin('email_service').domain_verification_path(id: id, identity: domain, action_from_show: show_view), method: :delete, data: { confirm: "Are you sure you want to remove this domain '#{domain}'?", ok: "Yes, remove it", confirmed: :loading_status}
{'fraction_non_alphanumeric': 0.14490339773484343, 'fraction_numerical': 0.0013324450366422385, 'mean_word_length': 6.133016627078385, 'pattern_counts': {'":': 0, '<': 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': '5836841', 'n_tokens_mistral': 983, 'n_tokens_neox': 977, 'n_words': 227}