<commit_before>- title t('title.sessions')
- show_actions!

%ul
  - if params[:tagged_with]
    %li= t('text.tagged_with', :tag => h(params[:tagged_with])).html_safe
  - if params[:user_id]
    %li= t('text.for_user', :name => h(@user.try(:full_name))).html_safe

%table.sessions
  %thead
    %tr
      %th.session_id ID
      %th.title= t('formtastic.labels.session.title')
      %th.author= t('formtastic.labels.session.author_id')
      %th.author= t('formtastic.labels.session.second_author_id')
      - if @user == current_user
        %th.reviews= t('formtastic.labels.session.reviews')
      %th.created_at= t('formtastic.labels.session.created_at')
  %tbody
    - @sessions.each do |session|
      = content_tag_for(:tr, session, :class => cycle(:odd, :even)) do
        %td.session_id= session.id
        %td.title
          = link_to h(session.try(:title)), session_path(session)
          - if session.lightning_talk?
            = image_tag("lightning-talk.png")
          - if session.comments.size > 0
            .commentCount= session.comments.size
        %td.author= link_to h(session.author.full_name), user_path(session.author)
        %td.author
          - if session.second_author
            = link_to h(session.second_author.full_name), user_path(session.second_author)
        - if @user == current_user
          %td.reviews
            - if can?(:index, Review, session) && session.reviews_count > 0
              = link_to t('formtastic.labels.session.reviews'), session_reviews_path(session)
        %td.created_at
          = time_ago_in_words(session.created_at)
          = t('generic.ago')

- if @sessions.total_pages > 1
  #pagination= will_paginate(@sessions)<commit_msg>Adding alt text to the lightning talk icon. Hugo<commit_after>- title t('title.sessions')
- show_actions!

%ul
  - if params[:tagged_with]
    %li= t('text.tagged_with', :tag => h(params[:tagged_with])).html_safe
  - if params[:user_id]
    %li= t('text.for_user', :name => h(@user.try(:full_name))).html_safe

%table.sessions
  %thead
    %tr
      %th.session_id ID
      %th.title= t('formtastic.labels.session.title')
      %th.author= t('formtastic.labels.session.author_id')
      %th.author= t('formtastic.labels.session.second_author_id')
      - if @user == current_user
        %th.reviews= t('formtastic.labels.session.reviews')
      %th.created_at= t('formtastic.labels.session.created_at')
  %tbody
    - @sessions.each do |session|
      = content_tag_for(:tr, session, :class => cycle(:odd, :even)) do
        %td.session_id= session.id
        %td.title
          = link_to h(session.try(:title)), session_path(session)
          - if session.lightning_talk?
            = image_tag("lightning-talk.png", :alt => t('session_types.lightning_talk.title'))
          - if session.comments.size > 0
            .commentCount= session.comments.size
        %td.author= link_to h(session.author.full_name), user_path(session.author)
        %td.author
          - if session.second_author
            = link_to h(session.second_author.full_name), user_path(session.second_author)
        - if @user == current_user
          %td.reviews
            - if can?(:index, Review, session) && session.reviews_count > 0
              = link_to t('formtastic.labels.session.reviews'), session_reviews_path(session)
        %td.created_at
          = time_ago_in_words(session.created_at)
          = t('generic.ago')

- if @sessions.total_pages > 1
  #pagination= will_paginate(@sessions)
{'fraction_non_alphanumeric': 0.14208118925100058, 'fraction_numerical': 0.0017152658662092624, 'mean_word_length': 2.8577728776185225, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 16, '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': '3609288', 'n_tokens_mistral': 1181, 'n_tokens_neox': 1160, 'n_words': 189}