<commit_before>h1 Stories
.right
  a.button.small*(current_user ? {'href' => new_story_url} : { 'href' => '#', 'data-reveal-id' => 'register-login' })
    | New Story
- @stories.each do |story|
  .large-12.columns.story-list-item
    h4 = link_to story.title, story_path(story)
    br
    == story.fragments.first.content
    ul
      li
        | Creator: #{link_to story.creator.username, user_path(story.creator)}
      li = "Contributors: #{story.authors.count}"
      li = "Created on: #{story.created_at.to_date}"
      li = "Last updated: #{story.updated_at.to_date}"
  - if story != @stories.last
    hr

.large-12.columns
  br
  = paginate @stories
      
== render 'shared/register_or_login'<commit_msg>Use story listing partial when displaying story list<commit_after>h1 Stories
.right
  a.button.small*(current_user ? {'href' => new_story_url} : { 'href' => '#', 'data-reveal-id' => 'register-login' })
    | New Story
== render partial: 'shared/story_list_item', locals: { stories: @stories }

.large-12.columns
  br
  = paginate @stories
      
== render 'shared/register_or_login'
{'fraction_non_alphanumeric': 0.1552511415525114, 'fraction_numerical': 0.00821917808219178, 'mean_word_length': 3.437246963562753, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2865948', 'n_tokens_mistral': 389, 'n_tokens_neox': 379, 'n_words': 77}