<commit_before>=render({ :partial => 'owner_header', :locals => { :selected => 1 } })

.columns
  article.maincol
    -unless current_user.all_owner_collections.empty?
      .collections
        -current_user.all_owner_collections.includes(:works).each do |c|
          .collection
            h4.collection_title
              =link_to c.title, collection_path(c.owner, c) unless c.owner.nil?
              -collection_list(c)
            ol.collection_works
            -unless @works.empty?
              -@works.each do |w|
                li =link_to w.title, edit_collection_work_path(c.owner, c, w.id)
              -more_works = link_to t('.see_all_works'), collection_works_list_path(c.owner, c)
              -start_project = link_to t('.start_a_project'), dashboard_startproject_path(:collection_id => c.id)
              p.nodata_text = t('.total_work_count', count: @count)
                  -if @count > 15
                    i &nbsp; #{more_works}
                    br
              p.nodata_text = t('.you_can_add_another_work', start_project: start_project).html_safe
            -else
              -start_project = link_to t('.start_a_project'), dashboard_startproject_path(:collection_id => c.id)
              .nodata
                h5.nodata_title =t('.there_are_no_works')
                p.nodata_text =t('.you_can_upload_documents', start_project: start_project).html_safe
      -unless current_user.document_sets.empty?
        h3 =t('.document_sets')
        -current_user.document_sets.each do |s|
          .collection
            h4.collection_title
              =link_to s.title, collection_path(s.owner, s)
            ol.collection_works
            -unless s.works.empty?
              -(s.works.sort_by { |work| work.title }).each do |w|
                li =link_to w.title, collection_read_work_path(s.owner, s, w)

    -else
      -new_collection = link_to t('.create_a_collection'), collection_new_path
      -start_project = link_to t('.start_a_project'), dashboard_startproject_path
      .nodata
        h5.nodata_title =t('.you_dont_have_any_collections')
        p.nodata_text =t('.you_can_new_collection', new_collection: new_collection).html_safe


  aside.sidecol
    h3 =t('.your_activity')
    =deeds_for({ :user_id => current_user.id, :limit => 10 })

-if (defined? INTERCOM_APP_ID) && !INTERCOM_APP_ID.blank?
  =render partial: 'shared/intercom'
<commit_msg>added project description to owner work tab<commit_after>=render({ :partial => 'owner_header', :locals => { :selected => 1 } })

.columns
  article.maincol
    -unless current_user.all_owner_collections.empty?
      .collections
        -current_user.all_owner_collections.includes(:works).each do |c|
          .collection
            h4.collection_title
              =link_to c.title, collection_path(c.owner, c) unless c.owner.nil?
              -collection_list(c)
            ol.collection_works
            =c.intro_block
            -unless @works.empty?
              -@works.each do |w|
                li =link_to w.title, edit_collection_work_path(c.owner, c, w.id)
              -more_works = link_to t('.see_all_works'), collection_works_list_path(c.owner, c)
              -start_project = link_to t('.start_a_project'), dashboard_startproject_path(:collection_id => c.id)
              p.nodata_text = t('.total_work_count', count: @count)
                  -if @count > 15
                    i &nbsp; #{more_works}
                    br
              p.nodata_text = t('.you_can_add_another_work', start_project: start_project).html_safe
            -else
              -start_project = link_to t('.start_a_project'), dashboard_startproject_path(:collection_id => c.id)
              .nodata
                h5.nodata_title =t('.there_are_no_works')
                p.nodata_text =t('.you_can_upload_documents', start_project: start_project).html_safe
      -unless current_user.document_sets.empty?
        h3 =t('.document_sets')
        -current_user.document_sets.each do |s|
          .collection
            h4.collection_title
              =link_to s.title, collection_path(s.owner, s)
            ol.collection_works
            -unless s.works.empty?
              -(s.works.sort_by { |work| work.title }).each do |w|
                li =link_to w.title, collection_read_work_path(s.owner, s, w)

    -else
      -new_collection = link_to t('.create_a_collection'), collection_new_path
      -start_project = link_to t('.start_a_project'), dashboard_startproject_path
      .nodata
        h5.nodata_title =t('.you_dont_have_any_collections')
        p.nodata_text =t('.you_can_new_collection', new_collection: new_collection).html_safe


  aside.sidecol
    h3 =t('.your_activity')
    =deeds_for({ :user_id => current_user.id, :limit => 10 })

-if (defined? INTERCOM_APP_ID) && !INTERCOM_APP_ID.blank?
  =render partial: 'shared/intercom'

{'fraction_non_alphanumeric': 0.11427401187794389, 'fraction_numerical': 0.004505426991603522, 'mean_word_length': 2.361321403991741, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '5306236', 'n_tokens_mistral': 1568, 'n_tokens_neox': 1514, 'n_words': 271}