Sha256: 6c17464fb4102d361ac965a513b317301a2ac93133f93503de8ae6c2fc3f25b6

Contents?: true

Size: 1.19 KB

Versions: 38

Compression:

Stored size: 1.19 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">
      <a href="<%= blog_category_path(category.slug)%>">
        <span>< <%= category.plural.upcase %> /></span>
      </a>
    </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

38 entries across 38 versions & 1 rubygems

Version Path
station-0.5.16 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb
station-0.5.15 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb
station-0.5.14 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb
station-0.5.13 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb
station-0.5.12 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb
station-0.5.11 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb
station-0.5.10 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb
station-0.5.9 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb
station-0.5.8 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb
station-0.5.7 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb
station-0.5.6 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb
station-0.5.5 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb
station-0.5.4 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb
station-0.5.3 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb
station-0.5.2 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb
station-0.5.1 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb
station-0.5.0 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb
station-0.4.9 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb
station-0.4.8 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb
station-0.4.7 lib/nexmo_developer/app/views/blog/blogpost/index.html.erb