Sha256: db605f5f7ab49353da1d10dcce60182029ab7f0558f52ab4808d5b525e102d1d

Contents?: true

Size: 468 Bytes

Versions: 39

Compression:

Stored size: 468 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

39 entries across 39 versions & 1 rubygems

Version Path
alchemy_cms-2.9.0 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-2.8.3 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-2.7.5 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-2.6.3 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-3.0.0.rc7 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-3.0.0.rc6 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-2.7.4 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-2.8.2 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-2.8.1 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-2.7.3 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-3.0.0.rc5 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-2.7.2 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-2.7.1 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-2.7.0 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-2.6.2.1 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-2.6.2 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-2.6.1 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-2.6.0 app/views/alchemy/breadcrumb/_page.html.erb
alchemy_cms-2.6.0.rc5 app/views/alchemy/breadcrumb/_page.html.erb