<commit_before>- unless team.description.empty?
  .markdown= team_p.description

%hr

- unless upcoming_matches.empty?
  %h5 Upcoming Matches
  %ul.list-group.list-group-flush.mb-3
    - present_collection(upcoming_matches).each do |match|
      %li.list-group-item
        = match.link

- unless active_rosters.empty?
  %h5 Active Rosters
  %ul.list-group.list-group-flush.mb-3
    - present_collection(active_rosters).each do |roster|
      %li.list-group-item
        = roster.team_listing

        = link_to edit_roster_path(roster.id), class: 'btn btn-secondary pull-right' do
          Manage
          = inline_svg_tag 'open_iconic/cog.svg', class: 'icon ml-1'

<commit_msg>Fix Manage buttons showing for rosters regardless of permissions<commit_after>- unless team.description.empty?
  .markdown= team_p.description

%hr

- unless upcoming_matches.empty?
  %h5 Upcoming Matches
  %ul.list-group.list-group-flush.mb-3
    - present_collection(upcoming_matches).each do |match|
      %li.list-group-item
        = match.link

- unless active_rosters.empty?
  %h5 Active Rosters
  %ul.list-group.list-group-flush.mb-3
    - present_collection(active_rosters).each do |roster|
      %li.list-group-item
        = roster.team_listing

        - if user_can_manage_transfers?(roster)
          = link_to edit_roster_path(roster.id), class: 'btn btn-secondary pull-right' do
            Manage
            = inline_svg_tag 'open_iconic/cog.svg', class: 'icon ml-1'


{'fraction_non_alphanumeric': 0.11042944785276074, 'fraction_numerical': 0.006816632583503749, 'mean_word_length': 3.021917808219178, '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': '1063976', 'n_tokens_mistral': 510, 'n_tokens_neox': 498, 'n_words': 92}