Sha256: 34345cfb0ca82cf6acb5648926471770506707d12d22f14cdb7a310241787f43

Contents?: true

Size: 1.81 KB

Versions: 2

Compression:

Stored size: 1.81 KB

Contents

<% add_decidim_meta_tags({
                           image_url: current_initiative.type.attached_uploader(:banner_image).url,
                           description: translated_attribute(current_initiative.description),
                           title: translated_attribute(current_initiative.title),
                           url: initiative_url(current_initiative.id),
                           twitter_handler: current_organization.twitter_handler
                         }) %>

<% add_decidim_page_title(translated_attribute(current_initiative.title)) %>
<% provide :meta_image_url, current_initiative.type.attached_uploader(:banner_image).url %>

<%= render layout: "layouts/decidim/shared/layout_center" do %>
  <div class="text-center py-10">
    <h2 class="title-decorator inline-block text-left"><%= translated_attribute(current_initiative.title) %></h2>
  </div>

  <%= cell "decidim/coauthorships", OpenStruct.new(identities: current_initiative.committee_members.excluding_author.approved.map(&:user).reject(&:deleted?).prepend(current_initiative.author) ) %>

  <div class="form__wrapper">

    <span class="text-gray-2"><%= l current_initiative.published_at || current_initiative.created_at, format: :decidim_short %></span>

    <div class="editor-content">
      <%= decidim_sanitize_editor translated_attribute(current_initiative.description) %>
    </div>

    <%= cell("decidim/announcement", t("decidim.initiatives.committee_requests.new.help_text"), callout_class: "secondary") %>

    <div class="form__wrapper-block">
      <%= logged_link_to t("continue", scope: "decidim.initiatives.committee_requests.new"), spawn_initiative_committee_requests_path(current_initiative), class: "button button__sm md:button__lg button__secondary", data: current_user.blank? ? { dialog_open: "loginModal" } : {} %>
    </div>
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
decidim-initiatives-0.28.4 app/views/decidim/initiatives/committee_requests/new.html.erb
decidim-initiatives-0.28.3 app/views/decidim/initiatives/committee_requests/new.html.erb