<commit_before>h2 Supervisor Dashboard
p Alpha Version

div.clearfix
  - supervised_teams.each do |t|
    div.dashboard-box
      section.team-title
        h3 = link_to "Team " + t.name, t
      section.dashboard
        h4 Checks
        - if t.comments.any?
          p = "Your latest check was #{ time_ago_in_words(t.comments.recent.first.created_at) } ago."
        - else
          p You didn't check upon them yet.
        - if can?(:supervise, t)
          = simple_form_for Comment.new(team_id: t.id), url: supervisor_comments_path do |f|
            == render 'supervisor/comments/form', f: f
          - if t.comments.any?
            p = render t.comments.recent
            p = link_to 'View history', supervisor_comments_path(team_id: t.id)
      section.dashboard
        - if t.activities.any?
          h4 Activity
          p = "Their latest update is from #{ time_ago_in_words(t.last_activity.created_at) } ago."
          h5 = t.last_activity.title
          p = render_markdown(t.last_activity.content).html_safe
        - else
          p No activities.<commit_msg>adjusts wording of no activities yet<commit_after>h2 Supervisor Dashboard
p Alpha Version

div.clearfix
  - supervised_teams.each do |t|
    div.dashboard-box
      section.team-title
        h3 = link_to "Team " + t.name, t
      section.dashboard
        h4 Checks
        - if t.comments.any?
          p = "Your latest check was #{ time_ago_in_words(t.comments.recent.first.created_at) } ago."
        - else
          p You didn't check upon them yet.
        - if can?(:supervise, t)
          = simple_form_for Comment.new(team_id: t.id), url: supervisor_comments_path do |f|
            == render 'supervisor/comments/form', f: f
          - if t.comments.any?
            p = render t.comments.recent
            p = link_to 'View history', supervisor_comments_path(team_id: t.id)
      section.dashboard
        - if t.activities.any?
          h4 Activity
          p = "Their latest update is from #{ time_ago_in_words(t.last_activity.created_at) } ago."
          h5 = t.last_activity.title
          p = render_markdown(t.last_activity.content).html_safe
        - else
          p Your team hasn't written any status updates yet.
          
{'fraction_non_alphanumeric': 0.09411239964317573, 'fraction_numerical': 0.0044603033006244425, 'mean_word_length': 2.060027285129604, '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': '3217265', 'n_tokens_mistral': 703, 'n_tokens_neox': 690, 'n_words': 176}