<commit_before>h1 =t('dashboard.collaborator')

.columns
  article.maincol
    p Projects you have contributed to -- by transcribing, editing, or commenting on -- will be listed here with their most recent activity so you can stay up to date with what's going on.
    -unless @collections.empty?
      -@collections.each do |c|
        -if c.show_to?(current_user)
          h4 =link_to c.title, collection_path(c.owner, c), class: 'nodecor'
          -c.deeds.includes(:page, :user, :work).limit(5).each do |d|
            //- Hide collection link
            -d.collection = nil
            .user-bubble
              =link_to(user_profile_path(d.user), class: 'userpic')
                =gravatar_image_tag d.user.email, :alt => d.user.display_name
              .user-bubble_content
                =time_tag d.created_at
                  ="#{time_ago_in_words d.created_at} ago"
                p =render(:partial => 'deed/deed.html', :locals => { :deed => d, :long_view => true })
    -else
      -unless @page.nil?
        ="You haven't participated in any projects yet.  You might want to try transcribing a page of "
        =link_to @page.work.title, {:controller => 'transcribe', :action => 'display_page', :page_id => @page.id}
        ="."
      -else
        ="You haven't participated in any projects yet.  Try transcribing a page from one of these "
        =link_to "collections", dashboard_path
        ="."

    h3 Everyone's Activity
    =deeds_for({ :not_user_id => current_user.id, :limit => 15 })

  aside.sidecol
    h3 Your Activity
    =deeds_for({ :user_id => current_user.id, :limit => 10 })<commit_msg>dashboard: use prefix in link_to<commit_after>h1 =t('dashboard.collaborator')

.columns
  article.maincol
    p Projects you have contributed to -- by transcribing, editing, or commenting on -- will be listed here with their most recent activity so you can stay up to date with what's going on.
    -unless @collections.empty?
      -@collections.each do |c|
        -if c.show_to?(current_user)
          h4 =link_to c.title, collection_path(c.owner, c), class: 'nodecor'
          -c.deeds.includes(:page, :user, :work).limit(5).each do |d|
            //- Hide collection link
            -d.collection = nil
            .user-bubble
              =link_to(user_profile_path(d.user), class: 'userpic')
                =gravatar_image_tag d.user.email, :alt => d.user.display_name
              .user-bubble_content
                =time_tag d.created_at
                  ="#{time_ago_in_words d.created_at} ago"
                p =render(:partial => 'deed/deed.html', :locals => { :deed => d, :long_view => true })
    -else
      -unless @page.nil?
        ="You haven't participated in any projects yet.  You might want to try transcribing a page of "
        =link_to @page.work.title, transcribe_display_page_path(:page_id => @page.id)
        ="."
      -else
        ="You haven't participated in any projects yet.  Try transcribing a page from one of these "
        =link_to "collections", dashboard_path
        ="."

    h3 Everyone's Activity
    =deeds_for({ :not_user_id => current_user.id, :limit => 15 })

  aside.sidecol
    h3 Your Activity
    =deeds_for({ :user_id => current_user.id, :limit => 10 })
{'fraction_non_alphanumeric': 0.12012288786482335, 'fraction_numerical': 0.005529953917050691, 'mean_word_length': 2.381100726895119, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 25, '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': '5381299', 'n_tokens_mistral': 1053, 'n_tokens_neox': 993, 'n_words': 290}