Sha256: 5f1bee546ac8a4fd03f4796fe491a03cd343babf26ebe07f5f8573b8bea5b34d

Contents?: true

Size: 471 Bytes

Versions: 210

Compression:

Stored size: 471 Bytes

Contents

<% css_classes = [options[:page] == page ? "active" : nil] %>
<% if page == pages.first %>
  <% css_classes << "first" %>
<% elsif page == pages.last %>
  <% css_classes << "last" %>
<% end %>

<%= link_to_unless(
  !options[:link_active_page] && options[:page] == page,
  h(page.name),
  show_alchemy_page_path(page),
  class: css_classes.compact.join(" "),
  title: page.title
) do |name, _url, html_options| %>
  <%= content_tag :span, name, html_options %>
<% end %>

Version data entries

210 entries across 210 versions & 2 rubygems

Version Path
alchemy_cms-7.4.2 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-7.3.6 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-7.2.9 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-7.4.1 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-7.4.0 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-7.3.5 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-7.2.8 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-7.1.13 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-7.0.16 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-7.3.4 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-7.3.3 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-7.3.2 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-7.2.7 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-7.3.1 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-7.3.0 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-7.2.6 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-7.2.5 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-7.1.12 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-7.0.15 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-6.1.10 app/views/alchemy/breadcrumb/_page.html.erb