Sha256: 10855b142dd22c3317ea376879b8cef19b0e474b3db89da4eeb01160bbe1285f

Contents?: true

Size: 882 Bytes

Versions: 13

Compression:

Stored size: 882 Bytes

Contents

<% add_decidim_page_title(translated_attribute(@page.title)) %>
<% add_decidim_meta_tags({
                           description: translated_attribute(@page.body)
                         }) %>

<%= render layout:"layouts/decidim/shared/layout_center" do %>
  <div class="py-12 space-y-12">

    <div class="text-center">
      <h1 class="h1 decorator inline-block text-left">
        <%= translated_attribute(@page.title) %>
      </h1>
    </div>

    <%= render partial: "decidim/shared/component_announcement" %>

    <div class="editor-content">
      <% if translated_attribute(@page.body).empty? || translated_attribute(@page.body) == "<p></p>" %>
        <%= cell("decidim/announcement", t("empty", scope: "decidim.pages.show")) %>
      <% else %>
        <%= decidim_sanitize_editor_admin translated_attribute(@page.body) %>
      <% end %>
    </div>
  </div>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-pages-0.29.1 app/views/decidim/pages/application/show.html.erb
decidim-pages-0.28.4 app/views/decidim/pages/application/show.html.erb
decidim-pages-0.29.0 app/views/decidim/pages/application/show.html.erb
decidim-pages-0.28.3 app/views/decidim/pages/application/show.html.erb
decidim-pages-0.29.0.rc4 app/views/decidim/pages/application/show.html.erb
decidim-pages-0.29.0.rc3 app/views/decidim/pages/application/show.html.erb
decidim-pages-0.29.0.rc2 app/views/decidim/pages/application/show.html.erb
decidim-pages-0.29.0.rc1 app/views/decidim/pages/application/show.html.erb
decidim-pages-0.28.2 app/views/decidim/pages/application/show.html.erb
decidim-pages-0.28.1 app/views/decidim/pages/application/show.html.erb
decidim-pages-0.28.0 app/views/decidim/pages/application/show.html.erb
decidim-pages-0.28.0.rc5 app/views/decidim/pages/application/show.html.erb
decidim-pages-0.28.0.rc4 app/views/decidim/pages/application/show.html.erb