<commit_before>%h1 Dashboard

-if current_organisation
  %h2 Organisations

  %h3 Your organisations

  %ul
    - current_user.organisation_resources.each do |org|
      %li
        = org.name
        - if org.uri == current_organisation.uri
          (current)
          = link_to "Edit", edit_organisation_path(org.guid)
        - else
          = link_to "switch", user_path(:org_id => org.guid)

  %h3 Organisations you've requested to join

  - if current_user.pending_join_org_requests.any?
    %ul
      - current_user.pending_join_org_requests.each do |r|
        %li
          = r.requestable.name

  - else
    %ul
      %li
        [none]

  = link_to "Add/Join another organisation", organisations_build_new_organisation_path

  %hr

  %h2 Activities

  %h3 #{current_organisation.name}'s Activities

  %ul
    - current_organisation.projects.resources.each do |proj|
      %li
        = proj.name
        = link_to "Edit", edit_project_path(proj.guid)


  %h3 Pending invites for you to join an activity

  - if current_organisation.has_respondable_project_invites?
    %ul
      - current_organisation.respondable_project_invites.each do |inv|
        %li
          You've been invited to #{inv.requestable.name} by #{inv.requestor}.
        = link_to "accept", "#"

  - else
    %ul
      %li
        [none]

  %h3 Pending requests by others to join one of your activities

  - if current_organisation.has_respondable_project_requests?
    %ul
      - current_organisation.respondable_project_requests.each do |req|<commit_msg>minor wording change on dashboard<commit_after>%h1 Dashboard

-if current_organisation
  %h2 Organisations

  %h3 Your organisations

  %ul
    - current_user.organisation_resources.each do |org|
      %li
        = org.name
        - if org.uri == current_organisation.uri
          (current)
          = link_to "Edit", edit_organisation_path(org.guid)
        - else
          = link_to "switch", user_path(:org_id => org.guid)

  %h3 Organisations you've requested to join

  - if current_user.pending_join_org_requests.any?
    %ul
      - current_user.pending_join_org_requests.each do |r|
        %li
          = r.requestable.name

  - else
    %ul
      %li
        [none]

  = link_to "Add/Join another organisation", organisations_build_new_organisation_path

  %hr

  %h2 Activities

  %h3 #{current_organisation.name}'s Activities

  %ul
    - current_organisation.projects.resources.each do |proj|
      %li
        = proj.name
        = link_to "Edit", edit_project_path(proj.guid)


  %h3 Pending invites for #{current_organisation.name} to join an activity

  - if current_organisation.has_respondable_project_invites?
    %ul
      - current_organisation.respondable_project_invites.each do |inv|
        %li
          You've been invited to #{inv.requestable.name} by #{inv.requestor}.
        = link_to "accept", "#"

  - else
    %ul
      %li
        [none]

  %h3 Pending requests by others to join one of #{current_organisation.name}'s activities

  - if current_organisation.has_respondable_project_requests?
    %ul
      - current_organisation.respondable_project_requests.each do |req|
{'fraction_non_alphanumeric': 0.08906497622820919, 'fraction_numerical': 0.005071315372424723, 'mean_word_length': 2.6826137689614935, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3371949', 'n_tokens_mistral': 1037, 'n_tokens_neox': 984, 'n_words': 225}