Sha256: 646841fd51ecfc0fa6b598b78a146dae6a0675020cdae774c2436406c8c31b03

Contents?: true

Size: 1.12 KB

Versions: 5

Compression:

Stored size: 1.12 KB

Contents

<% unless @categories_with_blogposts.present? %>

  <div class="Vlt-callout Vlt-callout--warning">
    <i></i>
    <div class="Vlt-callout__content">
      No Blogpost available
    </div>
  </div>

<% else %>


  <div class="max-w-screen-xl mx-auto">

    <div class="header-separator hr--tall Vlt-text-separator Vlt-text-separator--big">
      <span>LATEST POSTS</span>
    </div>

    <div class="my-2col-grid">
        <%= render partial: 'blog/blogpost/blogpost_with_image', collection: @latest_blogposts, as: :blogpost %>
    </div>


  <% @categories_with_blogposts.each do |category| %>

    <div class="header-separator hr--tall Vlt-text-separator Vlt-text-separator--big">
      <span>< <%= category.plural.upcase %> /></span>
    </div>

    <div class="my-3col-grid">
      <% category.blogposts.compact.in_groups(3) do |blogposts| %>
        <%# cache blogpost do %>
        <%= render partial: 'blog/blogpost/blogpost', collection: blogposts, as: :blogpost, locals: { show_category_label: false, show_author: true } %>
        <%# end %>
      <% end %>
    </div>

  <% end # @categories_with_blogposts.each %>

  </div>


<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
station-0.1.7 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb
station-0.1.6 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb
station-0.1.5 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb
station-0.1.4 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb
station-0.1.3 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb