<commit_before>%section.stripe.reverse
  .row
    .large-12.columns
      %h1= @chapter.name
  .row
    .large-7.columns
      - if @chapter.description
        %p.lead= @chapter.description
      - else
        %p.lead= t('chapters.intro_html')
.panel
  .row
    .small-12.medium-6.columns
      = t('chapters.info', email: h(@chapter.email)).html_safe
    .small-12.medium-6.columns.text-center
      - if logged_in?
        = render partial: 'subscriptions'
      - else
        =link_to 'Sign up', new_member_path, class: 'button small radius'

%section.stripe.reverse#chapter
  .row
    .large-8.columns
      - if @upcoming_workshops.any?
        - @upcoming_workshops.each do |date, workshops|
          .row.grouped-events
            .medium-12.columns
              %h4= date
            = render workshops

      - if @latest_workshops.any?
        %h3 Latest events<commit_msg>Displays chapter image on individual chapter pages<commit_after>%section
  .row.chapter-header
    .medium-6.columns.chapter-header-text
      %h1= @chapter.name
      - if @chapter.description
        %p.lead= @chapter.description
      - else
        %p.lead= t('chapters.intro_html')
    - if @chapter.image.present?
      .medium-6.columns.chapter-header-image
        = image_tag @chapter.image.bg, alt: "#{@chapter.name} chapter"

.panel
  .row
    .medium-6.columns
      = t('chapters.info', email: h(@chapter.email)).html_safe
    .medium-6.columns.text-center
      - if logged_in?
        = render partial: 'subscriptions'
      - else
        =link_to 'Sign up', new_member_path, class: 'button small radius'

%section.stripe.reverse#chapter
  .row
    .large-8.columns
      - if @upcoming_workshops.any?
        - @upcoming_workshops.each do |date, workshops|
          .row.grouped-events
            .medium-12.columns
              %h4= date
            = render workshops

      - if @latest_workshops.any?
        %h3 Latest events
{'fraction_non_alphanumeric': 0.1222279525528623, 'fraction_numerical': 0.012893243940175348, 'mean_word_length': 2.1239935587761676, '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': '4111206', 'n_tokens_mistral': 653, 'n_tokens_neox': 624, 'n_words': 121}