Sha256: 039069e354f0efeec030a3638559e4346a4c3ddf7ff26d441f11b9546dfd357a
Contents?: true
Size: 1.9 KB
Versions: 6
Compression:
Stored size: 1.9 KB
Contents
<section class="section"> <div class="container"> <h1 class="title"><%= Stenographer.app_name %></h1> <% if @change_count.positive? %> <% date_groups = @changes.group_by_week { |change| change.created_at } %> <% date_groups.sort { |group1, group2| group2[0] <=> group1[0] }.each do |date_group| %> <article> <% date_group_date = date_group[0] %> <% date_group_results = date_group[1] %> <p class="title is-4 has-text-centered">Week of <%= date_group_date %></p> <div> <% change_type_groups = date_group_results.group_by(&:change_type) %> <% all_groups = [nil] + Stenographer.change_types %> <% all_groups.each do |group_type| %> <% if change_type_groups[group_type].present? %> <% group = change_type_groups[group_type] %> <% group_name = group_type.nil? ? 'General' : group_type.titleize %> <br /> <h4 class="subtitle is-5 has-text-weight-semibold"><%= group_name %></h4> <ul class="changes"> <% group.each do |change| %> <li class="change"> <%= change.to_markdown %> <div> <%= render partial: 'stenographer/shared/tags', locals: { tags: change.environments_to_tags } %> <%= link_to('(more)', change_path(change.id), class: 'change-link') %> </div> </li> <% end %> </ul> <% end %> <% end %> </div> </article> <% end %> <div class="changes-pagination"> <%= will_paginate @changes, renderer: BulmaPagination::Rails %> </div> <% else %> <div class="changes-none">Nothing to see here yet, time to get to changing.</div> <% end %> </div> </section>
Version data entries
6 entries across 6 versions & 1 rubygems