Sha256: d9462c06afa63b4765a778b2befae2428ed1185e0f46cad1ea34b04afe84f5f4

Contents?: true

Size: 1.99 KB

Versions: 10

Compression:

Stored size: 1.99 KB

Contents

<div class="process-header">
  <div class="process-header__inner">
    <div class="row column process-header__main"
        style="background-image:url(<%= current_participatory_space.type.attached_uploader(:banner_image).path %>);">
    </div>
    <div class="process-header__container row collapse column">
      <div class="columns mediumlarge-8 process-header__info">
        <div>
          <h1 class="text-highlight heading2">
            <%= participatory_space_helpers.translated_attribute(current_participatory_space.title) %>
          </h1>
        </div>
        <div>
          <h2 class="text-highlight heading-small">
            <% if current_participatory_space.hashtag.present? %>
              <span class="process-header__hashtag">
                <%= link_to "##{current_participatory_space.hashtag}", "https://twitter.com/hashtag/#{current_participatory_space.hashtag}" %>
              </span>
            <% end %>
            <%= strip_tags participatory_space_helpers.translated_attribute(current_participatory_space.type.title) %>
          </h2>
        </div>
      </div>
      <%= render partial: "layouts/decidim/initiative_header_steps", locals: { initiative: current_participatory_space } %>
    </div>
  </div>
  <%
    components = current_participatory_space.components.published.or(Decidim::Component.where(id: self.try(:current_component)))
  %>

  <%=
    extended_navigation_bar([
      {
        name: t(".initiative_menu_item"),
        url: decidim_initiatives.initiative_path(current_participatory_space),
        active: is_active_link?(decidim_initiatives.initiative_path(current_participatory_space), :exclusive) ||
                is_active_link?(decidim_initiatives.initiative_versions_path(current_participatory_space), :inclusive)
      }
    ] + components.map do |component|
      {
        name: translated_attribute(component.name),
        url: main_component_path(component),
        active: is_active_link?(main_component_path(component), :inclusive)
      }
    end)
  %>
</div>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
decidim-initiatives-0.26.0 app/views/layouts/decidim/_initiative_header.html.erb
decidim-initiatives-0.26.0.rc2 app/views/layouts/decidim/_initiative_header.html.erb
decidim-initiatives-0.26.0.rc1 app/views/layouts/decidim/_initiative_header.html.erb
decidim-initiatives-0.25.2 app/views/layouts/decidim/_initiative_header.html.erb
decidim-initiatives-0.25.1 app/views/layouts/decidim/_initiative_header.html.erb
decidim-initiatives-0.25.0 app/views/layouts/decidim/_initiative_header.html.erb
decidim-initiatives-0.25.0.rc4 app/views/layouts/decidim/_initiative_header.html.erb
decidim-initiatives-0.25.0.rc3 app/views/layouts/decidim/_initiative_header.html.erb
decidim-initiatives-0.25.0.rc2 app/views/layouts/decidim/_initiative_header.html.erb
decidim-initiatives-0.25.0.rc1 app/views/layouts/decidim/_initiative_header.html.erb