<commit_before>:javascript
  $(function() {
    $('#member_tabs').tabs({
      cookie: { expires: 30 },
      cache: true,
      ajaxOptions: { success: JuggLF.tablesorter.init }
    });
  });

- page_title @member.name
- breadcrumb link_to('Members', members_path), link_to_armory(@member)
%div.category_block.block_wrap
  #member_stats
    %h3
      = member_attendance_colored(@member.attendance_30)
      %span.small 30-day attendance
    %h3
      = member_attendance_colored(@member.attendance_90)
      %span.small 90-day
    %h3
      = member_attendance_colored(@member.attendance_lifetime)
      %span.small Lifetime
    %br
    %h3
      = loot_factor(@member.lf)
      %span.small Loot Factor
    %h3
      = loot_factor(@member.bislf)
      %span.small Best in Slot
    %h3
      = loot_factor(@member.sitlf)
      %span.small Situational

%div.category_block.block_wrap
  #member_tabs
    %ul.tab_bar.no_title.mini
      %li.tab_toggle= link_to(content_tag(:span, 'Raids'),        member_raids_path(@member))
      %li.tab_toggle= link_to(content_tag(:span, 'Loots'),        member_loots_path(@member))
      %li.tab_toggle= link_to(content_tag(:span, 'Wishlist'),     member_wishlists_path(@member))
      %li.tab_toggle= link_to(content_tag(:span, 'Achievements'), member_achievements_path(@member))
      %li.tab_toggle= link_to(content_tag(:span, 'Punishments'),  member_punishments_path(@member))
      -# %li.tab_toggle= link_to(content_tag(:span, 'Achievements'), member_achievements_path(@member))
    #t-raids
    #t-loots
    #t-wishlist
    #t-achievements
    #t-punishments<commit_msg>Don't show Punishment tab to members if they don't have any<commit_after>:javascript
  $(function() {
    $('#member_tabs').tabs({
      cookie: { expires: 30 },
      cache: true,
      ajaxOptions: { success: JuggLF.tablesorter.init }
    });
  });

- page_title @member.name
- breadcrumb link_to('Members', members_path), link_to_armory(@member)
%div.category_block.block_wrap
  #member_stats
    %h3
      = member_attendance_colored(@member.attendance_30)
      %span.small 30-day attendance
    %h3
      = member_attendance_colored(@member.attendance_90)
      %span.small 90-day
    %h3
      = member_attendance_colored(@member.attendance_lifetime)
      %span.small Lifetime
    %br
    %h3
      = loot_factor(@member.lf)
      %span.small Loot Factor
    %h3
      = loot_factor(@member.bislf)
      %span.small Best in Slot
    %h3
      = loot_factor(@member.sitlf)
      %span.small Situational

%div.category_block.block_wrap
  #member_tabs
    %ul.tab_bar.no_title.mini
      %li.tab_toggle= link_to(content_tag(:span, 'Raids'),        member_raids_path(@member))
      %li.tab_toggle= link_to(content_tag(:span, 'Loots'),        member_loots_path(@member))
      %li.tab_toggle= link_to(content_tag(:span, 'Wishlist'),     member_wishlists_path(@member))
      -# %li.tab_toggle= link_to(content_tag(:span, 'Achievements'), member_achievements_path(@member))
      - if current_user.is_admin? or @member.punishments.size > 0
        %li.tab_toggle= link_to(content_tag(:span, 'Punishments'),  member_punishments_path(@member))
    #t-raids
    #t-loots
    #t-wishlist
    #t-achievements
    #t-punishments
{'fraction_non_alphanumeric': 0.13098548038307076, 'fraction_numerical': 0.010194624652455977, 'mean_word_length': 3.5160390516039053, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1762203', 'n_tokens_mistral': 1190, 'n_tokens_neox': 1159, 'n_words': 170}