Sha256: f95b4b72eba16562b702b4168bc3ecf6baa74cc0156400c45f4b96ef33091c76

Contents?: true

Size: 1.17 KB

Versions: 7

Compression:

Stored size: 1.17 KB

Contents

<% add_decidim_page_title(t(".title")) %>

<%
edit_link(
  decidim_admin.static_pages_path,
  :read,
  :static_page
)
%>

<main class="wrapper">
  <div class="row column">
    <h1 class="heading1 page-title"><%= t ".title" %></h1>
  </div>
  <div class="row">
    <div class="columns large-8">
      <div class="card card--list">
        <% @pages.each do |page| %>
          <div class="card--list__item">
            <div class="card--list__text">
              <div>
                <%= link_to page_path(page), class: "card__link" do %>
                  <h6 class="card--list__heading heading6">
                    <%= translated_attribute page.title %>
                  </h6>
                  <span class="text-small">
                    <%= truncate strip_tags(translated_attribute(page.content)), length: 100 %>
                  </span>
                <% end %>
              </div>
            </div>
            <div class="card--list__data">
              <%= link_to page_path(page), class: "card--list__data__icon" do %>
                <%= icon "chevron-right" %>
              <% end %>
            </div>
          </div>
        <% end %>
      </div>
    </div>
  </div>
</main>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-core-0.15.2 app/views/decidim/pages/index.html.erb
decidim-core-0.15.1 app/views/decidim/pages/index.html.erb
decidim-core-0.15.0 app/views/decidim/pages/index.html.erb
decidim-core-0.14.4 app/views/decidim/pages/index.html.erb
decidim-core-0.14.3 app/views/decidim/pages/index.html.erb
decidim-core-0.14.2 app/views/decidim/pages/index.html.erb
decidim-core-0.14.1 app/views/decidim/pages/index.html.erb