Sha256: 76fc66ba1b96a95f2a8daa47831b4c8a2434510d49758210e5626cbb83caa1ad

Contents?: true

Size: 772 Bytes

Versions: 1

Compression:

Stored size: 772 Bytes

Contents

<%
  visible_content = component[:attributes][:visible_content].to_s
  collapsed_content = component[:attributes][:collapsed_content].to_s
  open_label = component[:attributes][:open_label].to_s
  open_label_position = component[:attributes][:open_label_position].to_s
%>

<aside class="<%= promethee_class_for component %> aside">
  <%= visible_content.html_safe %>

  <% if collapsed_content.present? %>

      <div class="collapse aside__collapse" id="aside-collapse-<%= component[:id] %>">
        <%= collapsed_content.html_safe %>
      </div>

      <div class="aside__button">
        <a href="#aside-collapse-<%= component[:id] %>" data-toggle="collapse" class="aside__button--<%= open_label_position %>"><%= open_label %></a>
      </div>

  <% end %>

</aside>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
promethee-1.6.14 app/views/promethee/components/aside/_show.html.erb