Sha256: ef8329cdf174fd4f64dcfe2edfcfd38c1b8b583ab2407c15860fa8a84fb4c0d3

Contents?: true

Size: 606 Bytes

Versions: 5

Compression:

Stored size: 606 Bytes

Contents

<% if page.redirects_to_external? %>
  <%= link_to(
    h(page.name),
    page.external_urlname,
    title: options[:show_title] == true ? page.title : nil,
    target: configuration(:open_external_links_in_new_tab) ? '_blank' : nil,
    class: external_page_css_class(page)
  ) %>
<% else %>
  <%= link_to(
    h(page.name),
    @preview_mode ? 'javascript: void(0)' : show_alchemy_page_path(page),
    {
      class: (page_active?(page) ? 'active' : nil),
      title: (options[:show_title] ? page.title : nil),
      locale: page.language_code,
      data: {'page-id' => page.id}
    }
  ) %>
<% end %>

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
alchemy_cms-3.2.1 app/views/alchemy/navigation/_link.html.erb
lc_alchemy_cms-3.2.1 app/views/alchemy/navigation/_link.html.erb
lc_alchemy_cms-3.2.0 app/views/alchemy/navigation/_link.html.erb
alchemy_cms-3.2.0 app/views/alchemy/navigation/_link.html.erb
alchemy_cms-3.2.0.rc1 app/views/alchemy/navigation/_link.html.erb